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 svn repository (at least with UFOpedia, intros, mail client, ... working properly).
+
This must be done in order to play a bleeding edge version from the repository.
*get poEdit.[http://sourceforge.net/projects/poedit/]
+
* Get poEdit.[http://sourceforge.net/projects/poedit/]
*find the *.po file for your chosen language. eg <tt>\trunk\src\po\fr.po</tt> for French.
+
* 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.  
+
* Save. poEdit defaults to compiling the po and saving a mo.  
*move and rename the mo to something like <tt>\trunk\base\i18n\fr\LC_MESSAGES\ufoai.mo</tt>. Again the <tt>fr</tt> directory here means this example is specific to French.
+
* 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