[wp-polyglots] Localizing a theme

Txopi txopi at sindominio.net
Sun Jun 26 11:17:09 GMT 2005


Firas D.(e)k dio:
> Firas D. wrote:
> 
>> Txopi wrote:
>>
>>> It doesn't work so as Fira explained in that mail I have added this line
>>> to the index.php file of the theme where the string I want to 
>>> translate is
>>> used:
>>>
>>> <?php load_theme_textdomain(); ?>
>>>
>>> It returns to me and error in the wp-i10n.php file where that 
>>> function is
>>> defined, because as you can see, it needs a parameter with something
>>> called domain:
>>>  
>>>
>> Yup, that's the name of your mo file minus the extension. 
>> load_theme_textdomain('themename').
> 
> 
> http://boren.nu/archives/2004/11/01/localizing-plugins-and-themes/

Great! I achieved to use the theme's localization strings. Thanks!

Txopi.



More information about the wp-polyglots mailing list