Download & Extend

Language name not shown in "Translate to" header

Project:Localization client
Version:5.x-1.0
Component:User interface
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#1

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?

#2

Status:active» closed (fixed)

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