[wp-hackers] text domain different from 'default'
Nikolay Bachiyski
nbachiyski at developer.bg
Tue Apr 5 07:42:59 GMT 2005
Ryan Boren wrote:
> On Tue, 2005-04-05 at 09:17 +0300, Nikolay Bachiyski wrote:
>
>>Yesterday I started translating the internationalized default theme.
>>However, when trying to deploy the .mo file I came across a serious
>>problem. In order to add .mo file different from the default one I had
>>to specify a different text domain under which the tranlation to be
>>loaded. But when using another text domain all calls to the __()/_e()
>>funcions should have the domain name as their second parameter. At first
>>glance I cannot see an easy way to localize the kubrick theme (or any
>>other theme/plugin) without adding a domain to the translation funcion
>>calls.
>
> Yes. A domain is necessary. All themes and plugins that want to load
> translations must specify a domain.
OK, we will add domain parameter to __()/_() calls in the theme.
However I see another problem. In many template functions there are
internationalized strings. Any plugin or theme, which uses them will use
the default domain translations, regardless of its will to use those
translations.
Nikolay
More information about the wp-hackers
mailing list