Adding A New Language

You can create a new .po file for any language by renaming the “something.pot” to “XX.po” where XX is your language code. Would the .pot file be missing you could create it with the following command:

 $ cd po
 $ gmake update-po

This should produce the new file “Something.pot”. Make sure you change your XX.po file header properly before submitting. Take a look at the other po files headers to be sure.

If you’re using gettext 0.11 (Jan. 2002) or above, we recommend:

$ ./autogen.sh
$ cd po
$ gmake update-po
$ msginit --locale=nl
$ iconv -f ISO-8859-1 -t UTF-8 nl.po > nl.po.utf8
$ sed 's/ISO-8859-1/UTF-8/' < nl.po.utf8 > nl.po
$ rm nl.po.utf8

And if you’re kind enough, you’ll modify initial copyright strings following the others, however note that, poEdit doesn’t allow initial comment edits, you’ll have to use a text editor. It is important to do this because if the headers are broken the program will not build.

 
new_language.txt · Last modified: 2007/08/13 15:04 by 88.172.125.130
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki