Just a minor glitch...

Drupal 5.7.
On the right top side of the client, there's a header text saying "Translate to", but that should be "Translate to {lang}", according to

$translation_label = '<h2>'.t('Translation to %language', array('%language' => $language->native)).'</h2>';

Comments

jpoesen’s picture

I guess this was caused by the fact that it's a backport from D6. The $language object is called, but that was only introduced in D6.

I suggest something like this to fix it (which works):

  $l10n_languages = locale_supported_languages(); 

  $translation_label = '<h2>'.t('Translation to %language', array('%language' => $l10n_languages['name'][$locale])).'</h2>';

I'm not rolling a patch yet because I've got some other modifications I'd like to discuss first. Or should I apply a patch for this anyway?

jpoesen’s picture

Status: Active » Closed (fixed)

Hm. Just noticed this is already fixed in dev (the same way). Sorry.