Difference between revisions of "Po"
From UFO:AI
(um might be wrong but at least it gives me en on linux..) |
(→via gui) |
||
Line 9: | Line 9: | ||
== via gui == | == via gui == | ||
− | This must be done in order to play a bleeding edge version from the | + | This must be done in order to play a bleeding edge version from the repository. |
− | * | + | * Get poEdit.[http://sourceforge.net/projects/poedit/] |
− | * | + | * Find the *.po file for your chosen language. eg {{path|src/po/fr.po}} for French. |
− | * | + | * Save. poEdit defaults to compiling the po and saving a mo. |
− | * | + | * Move and rename the mo to something like {{path|base/i18n/fr/LC_MESSAGES/ufoai.mo}}. Again the <tt>fr</tt> directory here means this example is specific to French. |
+ | |||
=reference= | =reference= | ||
*GNU gettext [http://www.gnu.org/software/gettext/manual/html_node/gettext_9.html#SEC9]. | *GNU gettext [http://www.gnu.org/software/gettext/manual/html_node/gettext_9.html#SEC9]. |
Latest revision as of 05:47, 30 July 2013
po files
These are used in UFO:AI to let people play the game in their own language. The number of languages available can be seen as a measure of the game's success.
compiling po files
via command-line
make lang
via gui
This must be done in order to play a bleeding edge version from the repository.
- Get poEdit.[1]
- Find the *.po file for your chosen language. eg src/po/fr.po for French.
- Save. poEdit defaults to compiling the po and saving a mo.
- Move and rename the mo to something like base/i18n/fr/LC_MESSAGES/ufoai.mo. Again the fr directory here means this example is specific to French.
reference
- GNU gettext [2].
- more on preparing po files: contributing translation.