[wp-hackers] Localizing a theme
Ryan Boren
ryan at boren.nu
Sat May 21 18:14:23 GMT 2005
On Sat, 2005-05-21 at 18:26 +0200, Stefano wrote:
> I was unlucky about thi on polyglots ML, that looked the right place,
> so now i try here:
>
> Time ago I read on Forum that if a theme is "gettexted" and a .mo file
> named the same of the language specified in the config.php file is
> present the theme will show up using the .mo file translations.
>
> It talks about the load_theme_textdomain() funztion to be inserted at
> the top of the theme (I suppose index.php) to load the ranslation file
> if present.
>
> Now I have a user that made a theme and localized it generated the
> it_IT.mo file put it in the theme directory but the them show up still
> in english. I Inserted the load_theme_textdomain() funtion as first
> line of the index.php with same
load_theme_textdomain('atheme');
_e('Translate this!', 'atheme');
The domain identifier must be in every call to _e() and __().
Ryan
More information about the wp-hackers
mailing list