8,567
edits
m (cleanup) |
|||
Line 1: | Line 1: | ||
This howto explains translating [[FlightGear]]'s menus and messages to your language. | |||
This | |||
Flightgear has bad I18N (internationalization) support. | Flightgear has bad I18N (internationalization) support. More information at: http://www.mail-archive.com/flightgear-users@lists.sourceforge.net/msg05761.html | ||
More information | |||
http://www.mail-archive.com/flightgear-users@lists.sourceforge.net/msg05761.html | |||
WARNING : | '''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. | ||
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. | |||
== 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 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 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>. | |||
#* 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. | |||
# 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: | |||
<locale> | |||
<lang type="string">language_code</lang> | |||
<lang type="string">language_code.character_set</lang> | |||
<strings>Translations/strings-language_code.xml</strings> | |||
</locale> | |||
For example, in german, you have this : | |||
<locale> | |||
<lang type="string">de</lang> | |||
<lang type="string">de_AT</lang> | |||
<lang type="string">de_CH</lang> | |||
<lang type="string">de_AT.ISO8859-15</lang> | |||
<lang type="string">de_DE.ISO8859-15</lang> | |||
<lang type="string">de_CH.ISO8859-15</lang> | |||
<strings>Translations/strings-de.xml</strings> | |||
</locale> | |||
[[Category:Howto]] | |||