Problem/Motivation
The Drupal infrastructure can extract translatable user interface strings from modules. However, the module code needs to identify these strings with a t() function. Currently not all such strings are correctly identified as translatable strings.
Proposed resolution
Render all text presented in the user interface in a translatable fashion.
Remaining tasks
- Write a patch
- Review
- Commit
User interface changes
All interface text can be translated through the interface translation.
API changes
None.
Data model changes
None.
Original report by wturrell
This, in both validation plugins:
- $message .= '<br/>Can not access your account? Use one of your recovery codes.';
+ $message .= '<br/>'.t("Can't access your account? Use one of your recovery codes.");
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | interdiff-1-2.txt | 13.78 KB | idebr |
| #2 | 2998854-2.patch | 13.77 KB | idebr |
Comments
Comment #2
idebr commentedThanks for the patch, wturrell!
I have expanded the issue summary and the attached patch to include all interface translations used in the module.
Comment #3
jcnventuraComment #5
jcnventura