The list title and description fields that appear at mailchimp/subscribe and user/register are not translatable via i18nstrings.

The main issue is with the following two function calls:

t('@name', array('@name' => $list->name))
t('!desc', array('!desc' => $list->description))

Those will never translate anything.

List name and description appear in a few other places where they are also not translated.

Members fund testing for the Drupal project. Drupal Association Learn more


petermallett’s picture

Status: Active » Needs review
1.5 KB

edit: oops! my patch file was backwards (/blush) corrected in next comment

Here's a patch where I've modified the areas where list titles and descriptions are added to forms.

I know _technically_ using t() with variable input is a "no-no", but in this case, there doesn't seem to be any other way to translate these strings. Also, they are input via a plain text form element, so they should be translatable text (no html, php, etc.)

I also removed an instance of t('')

If you do apply this patch, remember you must view the output in a language other than your site's default before the string will appear in the translation interface (see:

petermallett’s picture

1.5 KB

Corrected patch file.

bleedev’s picture

Component: Code » General
Status: Needs review » Closed (fixed)

Committed patch.

kopeboy’s picture

Issue summary: View changes

Can we have this ported to a drupal 7 version please?