Difference between revisions of "GUI translation"
(→Windows) |
(→Windows) |
||
Line 38: | Line 38: | ||
Generate gimx.mo with poEdit (File>Preferences>Editor>Automatically compile .mo on save). | Generate gimx.mo with poEdit (File>Preferences>Editor>Automatically compile .mo on save). | ||
− | Copy | + | Copy-paste gimx.mo to: |
*Windows 32bits: C:\Program Files\GIMX\share\locale\<language_code>\LC_MESSAGES | *Windows 32bits: C:\Program Files\GIMX\share\locale\<language_code>\LC_MESSAGES | ||
*Windows 64bits: C:\Program Files (x86)\GIMX\share\locale\<language_code>\LC_MESSAGES | *Windows 64bits: C:\Program Files (x86)\GIMX\share\locale\<language_code>\LC_MESSAGES | ||
Start gimx-serial, gimx-fpsconfig or gimx-config, the GUI should be translated according to your system language. | Start gimx-serial, gimx-fpsconfig or gimx-config, the GUI should be translated according to your system language. |
Revision as of 10:34, 28 August 2012
It's very easy to translate the GUI using poEdit.
Contents
poEdit installation
Ubuntu
sudo apt-get install poedit
Windows
Download poEdit 1.5.2 and install it.
Creation of a translation file
Download gimx.pot.
Start poEdit, and click on "File > New Catalog from POT File...".
Select gimx.pot, fill the fields (Team, Team's email address, Language), validate, and save as <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.
Test the translation
Linux
mkdir -p /usr/share/locale/<language_code>/LC_MESSAGES msgfmt -o /usr/share/locale/<language_code>/LC_MESSAGES/gimx.mo <language_code>.po
Start gimx-serial, gimx-bluetooth, gimx-fpsconfig or gimx-config, the GUI should be translated according to your system language.
Windows
Generate gimx.mo with poEdit (File>Preferences>Editor>Automatically compile .mo on save).
Copy-paste gimx.mo to:
- Windows 32bits: C:\Program Files\GIMX\share\locale\<language_code>\LC_MESSAGES
- Windows 64bits: C:\Program Files (x86)\GIMX\share\locale\<language_code>\LC_MESSAGES
Start gimx-serial, gimx-fpsconfig or gimx-config, the GUI should be translated according to your system language.