Unable to translate field descriptions in other languages. Looks like t() function is not used where required.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | unable-to-translate-2875247-2.patch | 689 bytes | jadhavdevendra |
Unable to translate field descriptions in other languages. Looks like t() function is not used where required.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | unable-to-translate-2875247-2.patch | 689 bytes | jadhavdevendra |
Comments
Comment #2
jadhavdevendra commentedThis fixed the problem.
Comment #3
yogeshmpawarChecking above mentioned patch.
Comment #5
yogeshmpawarCommitted & pushed to 7.x-1.x branch.
Comment #6
odegard commentedI'm afraid this must be reverted. You can't use the t function to translate variables.
This is how I solve this particular problem in local projects:
With this, $label and $description is translated via the i18n module. I'm not sure if this is relevant if i18n is not used, but I'm sure some people use this module on monolingual sites, so the i18n_string_translate should be wrapped in module_exist('i18n_string') I guess.
I'm extremely busy but my ambition is to go over the module during the summer.
Feel free to test this out of course :)
I can't provide code right now, but I can help and guide if needed.
Comment #7
yogeshmpawarI think this solution is working fine for multilingual sites. tested this locally.
some reference links -