Difference between revisions of "GUI translation"

From GIMX
Jump to: navigation, search
(Created page with "It's very easy to translate the GUI using [http://www.poedit.net/ poEdit]. To install it in Ubuntu: sudo apt-get install poedit To install it in Windows, download [http://p...")
 
Line 20: Line 20:
 
  msgfmt -o /usr/share/locale/<lang_id>/LC_MESSAGES/gimx.mo <lang_id>.po
 
  msgfmt -o /usr/share/locale/<lang_id>/LC_MESSAGES/gimx.mo <lang_id>.po
  
And start gimx-serial, gimx-bluetooth, gimx-fpsconfig or gimx-config.
+
and start gimx-serial, gimx-bluetooth, gimx-fpsconfig or gimx-config.

Revision as of 20:31, 24 August 2012

It's very easy to translate the GUI using poEdit.

To install it in Ubuntu:

sudo apt-get install poedit

To install it in Windows, download the installer and launch it.

To create a translation file, download gimx.pot.

Start poEdit, and click on "File > New Catalog from POT File...".

Select gimx.pot, fill the fields (don't edit the other tabs), validate, and save the .po file (name it <lang_id>.po). To see what your language id is, type "locale" in a terminal (without quotes). Example for the french language id: the result is "LANG=fr_FR.UTF-8", the language id is "fr".

Translate the messages that are not translated, and save.

To test it, execute the following commands:

mkdir -p /usr/share/locale/<lang_id>/LC_MESSAGES
msgfmt -o /usr/share/locale/<lang_id>/LC_MESSAGES/gimx.mo <lang_id>.po

and start gimx-serial, gimx-bluetooth, gimx-fpsconfig or gimx-config.