On the Translate tab for nodes, the source language is marked with "(source)". This string is not present in modules-translation.pot, nor can I find it in any other translation template.

The language names on this page are also displayed in English, even if a translated string is available.

Comments

Stephen Scholtz’s picture

Status: Active » Closed (fixed)

Just closing this as it seems to be fixed. The current version of modules-translation.pot has an entry for...

<strong>@language_name</strong> (source)

...so it can be translated in the "Translate Interface" screens.

As for the language name, that's a variable, so I assume it cannot be translated. Not sure what the solution would be to add in this functionality, I guess wrap the var in a t() function?

$language_name = t('<strong>@language_name</strong> (source)', array('@language_name' => t($language_name) ));

I know other multi-lingual modules do that in order to get user-supplied variables translated. (like the contact form, views, etc.)