Difference between revisions of "GUI translation"
| Line 10: | Line 10: | ||
Start poEdit, and click on "File > New Catalog from POT File...".  | 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 <  | + | Select gimx.pot, fill the fields (don't edit the other tabs), validate, and save the .po file (name it <language_code>.po).  | 
| − | To see what your language   | + | |
| − | Example for the   | + | To see what your language code is, check [http://www.gnu.org/software/gettext/manual/html_node/Usual-Language-Codes.html this page].  | 
| + | |||
| + | Example for the French language: fr.po.  | ||
Translate the messages that are '''not translated''', and save.  | Translate the messages that are '''not translated''', and save.  | ||
To test the translation in Linux, execute the following commands:  | To test the translation in Linux, execute the following commands:  | ||
| − |   mkdir -p /usr/share/locale/<  | + |   mkdir -p /usr/share/locale/<language_code>/LC_MESSAGES  | 
| − |   msgfmt -o /usr/share/locale/<  | + |   msgfmt -o /usr/share/locale/<language_code>/LC_MESSAGES/gimx.mo <language_code>.po  | 
| − | To test the translation in Windows, generate gimx.mo with poEdit, and put it in the GIMX installation directory, in a share/locale/<  | + | To test the translation in Windows, generate gimx.mo with poEdit, and put it in the GIMX installation directory, in a share/locale/<language_code>/LC_MESSAGES directory.  | 
Start gimx-serial, gimx-bluetooth, gimx-fpsconfig or gimx-config, the GUI should be translated.  | Start gimx-serial, gimx-bluetooth, gimx-fpsconfig or gimx-config, the GUI should be translated.  | ||
Revision as of 22:04, 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 <language_code>.po).
To see what your language code is, check this page.
Example for the French language: fr.po.
Translate the messages that are not translated, and save.
To test the translation in Linux, execute the following commands:
mkdir -p /usr/share/locale/<language_code>/LC_MESSAGES msgfmt -o /usr/share/locale/<language_code>/LC_MESSAGES/gimx.mo <language_code>.po
To test the translation in Windows, generate gimx.mo with poEdit, and put it in the GIMX installation directory, in a share/locale/<language_code>/LC_MESSAGES directory.
Start gimx-serial, gimx-bluetooth, gimx-fpsconfig or gimx-config, the GUI should be translated.