[wp-hackers] text domain different from 'default'

Ryan Boren ryan at boren.nu
Tue Apr 5 07:25:31 GMT 2005


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.

Ryan



More information about the wp-hackers mailing list