Donate

Development

Translations

MAXR supports multiple languages. However we are going our own way here. The most important thing is the utf8-encoding used in the xml-languagefiles. For creating a new language file you just need the english masterfile lang_eng.xml within the folder languages. Open it with a simple texteditor (not word) and save it using the language code depending on the language you're going to create. For example lang_ger.xml for german.

Now it's getting tricky. The line for fontloading is good for an example:<Fonts ENG="Loading fonts..."/>

We change the entry like that:<Fonts ENG="Loading fonts..." localized="Lade Schriften..."/>

The catchword here is localized. The entry ENG is no longer needed but kept for reference. You may simply replace the string "ENG" (case sensitive) with "localized" and start translating.

Exception are the unit descriptions "Units" at the bottom of the file:<Unit ID="0 1" ENG="Air Transport">Air Transport\n\nHeavy aircraft capable of holding up to three ground units.</Unit>

Here is the description of the unit within the xml-block and the title is where we usually have our language snippets. Here is the appropriate example for the line above:<Unit ID="0 1" localized="Frachtflugzeug">Transportflugzeug\n\nSchweres Flugzeug, fähig bis zu drei Bodeneinheiten zu transportieren.</Unit>

The "\n" represent a line break.. "Normal" line breaks (by just hitting enter on your keyboard) are not allowed!

To test your new language file simply save the xml file into the folger languages from your MAXR installation. Now open your max.xml config located in the game's root directory and apply at Language Text your new language code:<Language Text="ger" />

Keep in mind that you have to write valid XML. Each block has to be closed, too. If you forget just one slash your file is broken and won't work.