[wp-polyglots] Localizing a theme

Firas D. fd at firasd.org
Fri Jun 24 17:32:09 GMT 2005


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/


More information about the wp-polyglots mailing list