Howto:Translate FlightGear: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
Line 1: Line 1:
How to '''translate [[FlightGear]]''''s menus and messages to your language.
How to '''translate [[FlightGear]]''''s menus and messages to your language.


# Check whether your language already has a subdirectory below <tt> [[$FG_ROOT]]/translations/</tt>. Also check the master repository [https://www.gitorious.org/fg/fgdata/trees/master/Translations fgdata/Translations] - maybe someone has just recently created the language resources.
# Check whether your language already has a subdirectory below <tt>[[$FG_ROOT]]/translations/</tt>. Also check the master repository [https://www.gitorious.org/fg/fgdata/trees/master/Translations fgdata/Translations] - maybe someone has just recently created the language resources. If so, please download the files from the repository, as the ones on your system might be outdated.
#* 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:
#* 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.
## Create an empty directory with your language's code.
Line 9: Line 9:
#* '''Do not''' translate the filenames!
#* '''Do not''' translate the filenames!
#* Please do not change the order, structure or indentation of the XML files - only translate the English text content itself. This helps with future maintenance when the language resource need to be updated for another FG version, since the files can more easily be compared with the default English resource.
#* Please do not change the order, structure or indentation of the XML files - only translate the English text content itself. This helps with future maintenance when the language resource need to be updated for another FG version, since the files can more easily be compared with the default English resource.
# Edit the file <tt>[[$FG_ROOT]]/Translations/locale.xml</tt> and add the section for your language.
# Edit the file <tt>[[$FG_ROOT]]/Translations/locale.xml</tt> and add the section for your language if it's not already there.
# Start FlightGear
# Start FlightGear
#* FlightGear selects the language resource based on your computer's main language setting (operations system's locale).
#* FlightGear selects the language resource based on your computer's main language setting (operations system's locale).

Navigation menu