Howto:Translate FlightGear

From FlightGear wiki
Revision as of 12:57, 6 May 2012 by Gijs (talk | contribs) (Update)
Jump to navigation Jump to search

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.

  1. 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:
    1. Create an empty directory with your language's code.
    2. Copy the $FG_ROOT/translations/en/menu.xml and $FG_ROOT/translations/en/options.xml file to the directory of your language.
  2. Translate the English strings in your language's xml files. Do not translate the filenames!
  3. Edit the file $FG_ROOT/Translations/locale.xml and add the section for your language.
  4. Start FlightGear with --lang=your code (can be set via Advanced > General, when using FGRun).

Notes

Related content