Howto:Translate FlightGear: Difference between revisions

Jump to navigation Jump to search
m
fixed <tt>-tag issues
m (Robot: Cosmetic changes)
m (fixed <tt>-tag issues)
Line 6: Line 6:


== The How to ==
== The How to ==
# You need to have FlightGear installed on your computer ofcourse. For example: FlightGear on Windows is in the directory: <tt>C:\Program Files\FlightGear-1.0.0</tt>. Strings to translate are between the XML tags <label> and <legend>.
# You need to have FlightGear installed on your computer of course. For example: FlightGear on Windows is in the directory: <tt>C:\Program Files\FlightGear-1.0.0</tt>. Strings to translate are between the XML tags <label> and <legend>.
# You need to translate the english strings in the xml file <tt>C:\Program Files\FlightGear-1.0.0\data\gui\menubar.xml. For example, in the file menubar.xml, the english text string <label>Save</label> will become <label>Sauvegarder</label> in French.
# You need to translate the english strings in the xml file <tt>C:\Program Files\FlightGear-1.0.0\data\gui\menubar.xml</tt>. For example, in the file <tt>menubar.xml</tt>, the english text string <tt><label>Save</label></tt> will become <tt><label>Sauvegarder</label></tt> in French.
# You need to translate the english strings in the xml files that are in the directory <tt>C:\Program Files\FlightGear-1.0.0\data\gui\dialogs</tt>
# You need to translate the english strings in the xml files that are in the directory <tt>C:\Program Files\FlightGear-1.0.0\data\gui\dialogs</tt>
#* Create a copy of the file <tt>C:\Program Files\FlightGear-1.0.0\data\Translations\strings-default.xml</tt> in the directory <tt>C:\Program Files\FlightGear-1.0.0\data\Translations</tt>.
#* Create a copy of the file <tt>C:\Program Files\FlightGear-1.0.0\data\Translations\strings-default.xml</tt> in the directory <tt>C:\Program Files\FlightGear-1.0.0\data\Translations</tt>.
#* Rename the copy of the file strings-default.xml with a new name like strings-language_code.xml where language_code is the international code for your language. For example , fr for french or de for German.
#* Rename the copy of the file <tt>strings-default.xml</tt> with a new name like <tt>strings-language_code.xml</tt> where <tt>language_code</tt> is the international code for your language. For example, fr for french or de for German.
# Translate all the English text strings in your strings-language_code.xml file in your language.
# Translate all the English text strings in your strings-language_code.xml file in your language.
# Edit the file <tt>C:\Program Files\FlightGear-1.0.0\data\Translations\locale.xml</tt> and add the section for your language:
# Edit the file <tt>C:\Program Files\FlightGear-1.0.0\data\Translations\locale.xml</tt> and add the section for your language:
7

edits

Navigation menu