Skip to content

Localization instructions

pekman edited this page Feb 11, 2011 · 8 revisions

Translation files

Translated strings are located in the files locale/<locale_id>/aaltoapps.po. The files are Gettext po-files. They can be edited either with a text editor or with a specialized po editor. If editing with a text editor, msgid is the original English string and msgstr is the translation. Untranslated strings have an empty string in msgstr; fast_gettext will use the original English strings for these.

Updating the files

When new translatable strings are added or existing ones changed, the translation files should be updated with the following command: rake gettext:find

In order for this to work, Gettext binaries must be installed. In Ubuntu this can be done with the command apt-get install gettext.