Diff for "Documentation/Localization"

Not logged in - Log In / Register

Differences between revisions 1 and 2
Revision 1 as of 2010-07-22 10:30:36
Size: 516
Editor: apulido
Comment:
Revision 2 as of 2010-10-18 11:28:31
Size: 524
Editor: apulido
Comment: Fix path to translations
Deletions are marked like this. Additions are marked like this.
Line 13: Line 13:
$ cd po
$ mkdir -p <locale>/LC_MESSAGES
$ msgfmt --output-file=<locale>/LC_MESSAGES/mago.mo <locale>.po
$ mkdir -p bulild/mo/<locale>/LC_MESSAGES
$ msgfmt --output-file=build/mo/<locale>/LC_MESSAGES/mago.mo <locale>.po
Line 17: Line 16:

Mago is ready for localization. If you want to have the tests in your own language, follow these steps.

First, you need to generate the .po file for your particular locale. In the mago root folder:

$ cd po
$ msginit --input=mago.pot --locale=<locale>

Once the file has been translated, in order to run the tests, the .mo files need to be generated. In the mago root folder:

$ mkdir -p bulild/mo/<locale>/LC_MESSAGES
$ msgfmt --output-file=build/mo/<locale>/LC_MESSAGES/mago.mo <locale>.po

Documentation/Localization (last edited 2010-10-18 11:28:31 by apulido)