Howto:Translate FlightGear: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(Update) |
||
Line 1: | Line 1: | ||
This howto explains '''translating [[FlightGear]]''''s menus and messages to your language. | |||
The language option was broken in FlightGear 2.4.0 and 2.6.0. Menu translations are only supported as of 2.7.0 and later. | |||
# Check whether your language already has a subdirectory under <tt>[[$FG_ROOT]]/translations/</tt>. The two letter language code can be obtained from the [http://www.loc.gov/standards/iso639-2/php/code_list.php ISO 639 list]. If it does exist, skip to step 2, else do the following: | |||
## Create an empty directory with your language's code. | |||
## Copy the <tt>[[$FG_ROOT]]/translations/en/menu.xml</tt> and <tt>[[$FG_ROOT]]/translations/en/options.xml</tt> file to the directory of your language. | |||
# Translate the English strings in your language's xml files. '''Do not''' translate the filenames! | |||
# Edit the file <tt>[[$FG_ROOT]]/Translations/locale.xml</tt> and add the section for your language. | |||
# Start FlightGear with <code>--lang=your code</code> (can be set via <tt>Advanced > General</tt>, when using [[FGRun]]). | |||
'''WARNING:''' You can only use [http://en.wikipedia.org/w/index.php?title=American_Standard_Code_for_Information_Interchange§ion=5#ASCII_printable_characters ASCII] characters for translating strings in your language. | === Notes === | ||
* '''WARNING:''' You can only use [http://en.wikipedia.org/w/index.php?title=American_Standard_Code_for_Information_Interchange§ion=5#ASCII_printable_characters ASCII] characters for translating strings in your language. | |||
* FlightGear has bad I18N (internationalization) support. More information at: http://www.mail-archive.com/flightgear-users@lists.sourceforge.net/msg05761.html | |||
== Related content == | == Related content == |
Revision as of 12:57, 6 May 2012
This howto explains translating FlightGear's menus and messages to your language.
The language option was broken in FlightGear 2.4.0 and 2.6.0. Menu translations are only supported as of 2.7.0 and later.
- Check whether your language already has a subdirectory under $FG_ROOT/translations/. The two letter language code can be obtained from the ISO 639 list. If it does exist, skip to step 2, else do the following:
- Translate the English strings in your language's xml files. Do not translate the filenames!
- Edit the file $FG_ROOT/Translations/locale.xml and add the section for your language.
- Start FlightGear with
--lang=your code
(can be set via Advanced > General, when using FGRun).
Notes
- WARNING: You can only use ASCII characters for translating strings in your language.
- FlightGear has bad I18N (internationalization) support. More information at: http://www.mail-archive.com/flightgear-users@lists.sourceforge.net/msg05761.html