may i suggest a modification to the xml files? It's about all xml files, it is a minor change, but there would be a big advantage.
Generally: Currently anything is an attribute. Suggestion: Move all attributes with translatable text to child nodes.
Example for items.xml.
Currently:
Code: Select all
<item id="501"
image="use/potions/a.png|G:#22ff22"
name="Cactus Drink"
description="A fresh drink."
effect="+15 HP"
type="usable"
hp="15"
weight="4"
max-per-slot="10"/>
Code: Select all
<item id="501"
image="use/potions/a.png|G:#22ff22"
effect="+15 HP"
type="usable"
hp="15"
weight="4"
max-per-slot="10">
<name>Cactus Drink</name>
<description>A fresh drink</description>
</item>
Code: Select all
<item id="501"
image="use/potions/a.png|G:#22ff22"
effect="+15 HP"
type="usable"
hp="15"
weight="4"
max-per-slot="10">
<name xml:lang="en">Cactus Drink</name>
<description xml:lang="en">A fresh drink</description>
<description xml:lang="de">Ein erfrischendes Getränk</description>
<name xml:lang="de">Kaktus Getränk</name>
</item>
There may be a "default" language, if you add this attribute to f.ex. the root element. If you add
Code: Select all
<items xml:lang="en">
...
</items>
Code: Select all
<item id="501"
image="use/potions/a.png|G:#22ff22"
effect="+15 HP"
type="usable"
hp="15"
weight="4"
max-per-slot="10">
<name>Cactus Drink</name>
<description>A fresh drink</description>
<description xml:lang="de">Ein erfrischendes Getränk</description>
<name xml:lang="de">Kaktus Getränk</name>
</item>