Mercurial > pyntnclick
diff README-i18n.txt @ 479:4ea237bbcef8 1.0.1
Tidy up the i18n changes
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Tue, 08 Mar 2011 13:25:20 +0200 |
parents | a9925aaf5f61 |
children | eafa66caedd2 |
line wrap: on
line diff
--- a/README-i18n.txt Tue Mar 08 12:29:14 2011 +0200 +++ b/README-i18n.txt Tue Mar 08 13:25:20 2011 +0200 @@ -17,11 +17,11 @@ this navigate to the `po/' directory in terminal and type command msginit -l <locale> - + where <locale> is two-letters-language-code you need. Then translate generated file using your preferred editor. -To get new translation worked you need to compile and install it by +To get new translation to work you need to compile and install it by executing `install-po.sh' script. @@ -29,14 +29,13 @@ Just surround it with _( and ) like "Hello, world" -> _("Hello, world!") - -_() is a function that I placed in `gamelib/i18n.py' file, so you -might want to import it first. + +_() is a function in `gamelib/i18n.py' file, so you might want to +import it first. from gamelib.i18n import _ And don't forget to update message catalogs with new strings. To do that just execute `update-po.sh' script. It collects all translatable -strings from files that are specified in `po/POTFILES'. Make sure file -you worked on is in there. - +strings from files that are specified in `po/POTFILES'. Make sure the +file you worked on is in there.