[wp-polyglots] Please help me get started with gettext

Simos Xenitellis simos74 at gmx.net
Sun Aug 7 00:40:39 GMT 2005


Richard M. Pavonarius wrote:

>I've read the codex and the gettext manual and I still
>don't understand. I would like to use a new theme in
>Japanese. 
>  
>
Which theme is that? No all themes support i18n and gettext.

>All I want to do is add to ja.po the files that are in
>the theme. I can figure out the rest, but I can't seem
>to figure out how to get started.
>
>I have the ja.po file from
>http://svn.automattic.com/wordpress-i18n/ja_JP/trunk/messages/
>  
>
This is the "catalog" file (translation file) for the WordPress program 
itself. If you want to have a translated theme, you need to do the 
translation of the theme.

>My guess is I need to create a new PO file then merge
>it with the above.
>  
>
Most (in fact, all) themes that I have seen, allow you to keep a 
separate .mo file just for the theme. You place the ja_JP.mo theme 
translation in the theme directory and you make sure that WP_LANG is set 
to ja_JP.

>I found a script that I think creates the file I need:
>http://wiki.wordpress.org/?pagename=POTscript I
>installed and did chmod +x, but there are no
>instructions on how to use it. My best guess is I run
>it on the directory containing wordpress like this:
>
>./wp-gettext.bin wordpress
>
>But I received the error "language `php' unknown"
>FWIW, I'm using Dreamhost.
>  
>
What does "uname -a" give you? This command tells you the operating 
system version.
My guess is that Dreamhost uses Solaris, which has a version of xgettext 
that does not understand PHP source files.

>I assume the trick to getting started is something not
>too difficult, but for the life of me I can't figure 
>it out.
>  
>
It took me some time myself to figure out how I18n works with wordpress. 
You need to search a lot..
For example, I sent an e-mail here last week announcing a new 
translation for WordPress so that it is added to 
http://svn.automattic.com/wordpress-i18n/ and I did not get any response 
from this list.
Anyone has a clue?

Simos



More information about the wp-polyglots mailing list