Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the code there are examples of t() being used like:
t('Override ' . $name . ' setting')
This really isn't all that good for translators. Instead it should be something like:
t('Override !name setting', array('!name' => $name))
This allows the translators to put the variable where ever it is appropriate in the text.
You can find more detail at http://api.drupal.org/api/function/t/6
Comment | File | Size | Author |
---|---|---|---|
#1 | 927856-wrap_t-1.patch | 13.25 KB | redndahead |
Comments
Comment #1
redndahead CreditAttribution: redndahead commentedHow does this look?
Comment #2
redndahead CreditAttribution: redndahead commentedcommitted