Hi i wonder how to translate the (required) text added to required fields.
Thx for a great module!
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | webform_hints-translate-required-setting-2287509.patch | 1.11 KB | guschilds |
Hi i wonder how to translate the (required) text added to required fields.
Thx for a great module!
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | webform_hints-translate-required-setting-2287509.patch | 1.11 KB | guschilds |
Comments
Comment #1
guschilds commentedHey Strutsagget,
The required text can be changed sitewide at admin/config/content/webform-hints.
To have different required text for different languages, I believe multilingual variables are needed to properly translate the setting.
It appears this would involve the Internationalization module. The documentation for Using the i18n API from other modules mentions using variable hooks to expose module settings for translation.
I don't have much experience with
hook_variable_info(), but let us know if you're able to get that working or if you need us to give it a shot.Gus
Comment #2
guschilds commentedStrutsagget,
I was able to pull it off.
You'll need to:
Hope that helps!
Gus
Comment #3
Strutsagget commentedOk thx ill give it a try! Thx for the feedback and a great module!
Comment #4
guschilds commentedAny luck with this, Strutsagget?
Comment #5
Strutsagget commentedHi, sorry for slow feedback. //started using a symbol * and forgot
Works like a charm. Needs a clear cache before step 6.
Thnx alot!
Comment #7
guschilds commentedGreat. Thanks for giving it a shot!
This has been added to the module and is now available in the latest dev release. Once we roll out 7.x-1.5, it'll be there too.
I'm going to edit the instructions in #2 for anyone that ends up here in the future.
Thanks again,
Gus