XML localization is very simple in Sisulizer because it is visual and safe. You just select what tags you want to localize. Sisulizer extracts the visual XML data and adds the translated tags to the project. When creating localized file Sisulizer creates an identical copy of the original XML file except it contains the selected tags in the target language.
Use the Tags sheet of XML Source Dialog to select what tags you want to translate and how to translate them. The following paragraphs describe more about your choices to configure how to interpret and localize certain kinds of XML elements.
In some case several XML tags should be translated as a single entiry. For example you might have text data that contains formatting tags. The following tag contains a plain text:
<text>Finland is the most northern country in the world</text>
If you want to underline the the word most you might store the data in the following way:
<text>Finland is the <u>most northern</u> country in the world</text>
This will break the sentance in three different parts: "Finland is the ", "most" and " country in the world". To translate them separately is impossible or at least very hard. A better choice is to treat the how stuff as a single translation unit.
If you select an XML tag that has sub tags Sisulizer automatically combines the tag into single element and adds that to the project.
Sometims XML contains source code. For example there might be script code emebedded inside an XML tag. In such case Sisulizer can use its source code parser to extract only strings from the code. Transalating only strings of the source code is much easier and safer that translating the whole source code. Sisulizer can detect if an XML element contains source code. If the detection result is not right or it fails you can set the source code type by right clicking the node in the Tags sheet and choosing the source code type from the popup menu.
<sl>\XML\code.xml contains a sample XML file that contains embedded source code.
Just like source code your XML files might contain image or binary data. Sisulizer can read both hexadecimal encoded and base-64 encoded image/binary data. Right click the node and select the right type.
<sl>\XML\vehicles.xml contains a sample XML file that contains image data.
There are two kinds of special attributes: context and localize attributes. You can use context attribute to give content to elements. You can use localize attribute to control element by element what to localize.
Sisulizer's XML directory contains XML samples.