[wp-testers] i18n issue

Ryan Boren ryan at boren.nu
Fri Oct 13 03:33:28 GMT 2006


Mark Jaquith wrote:
> On Oct 12, 2006, at 6:12 AM, Stefano wrote:
> 
>> IN the new 2.1 the RTE and the quicktags editor are all i one and you
>> can switch from one to another using a coupl of tabs.
>>
>> The RTE tab is named Editor, but this string is used for a role too,
>> so the translation for both is unique, in Italian but i suppose in
>> other languages the role is translated in a different way than the
>> RTE's name.
>>
>> How to solve this? Giving to the tab another name i think cause the
>> translation for editor role is already coded into the Database for old
>> installation.
> 
> Couldn't we use an HTML comment to differentiate the two?
> 
> _e('Editor<!--Tab-->');

Maybe use a custom tag that is stripped by __() and _e().  Translators 
can leave the tag in the translated text or omit it.

_e('Editor<wp:i18n_context>Tab</wp:i18n_context>');

Ryan


More information about the wp-testers mailing list