Soluling home   Document home

XML items

XML items

Use this sheet to specify what items from the XML file are localized and how they are localized.

Items that are localized

You have several methods to select what items are localized. The possible methods are Localize all items of selected types, Select items you want to localize, and Use rules to select elements.

1. Localize all items of selected types

Soluling localizes all items whose type matches the selected types. For example, localize all string and color values. Use this if you want to localize all items of certain types. Use the Data types sheet to select the types that you want to localize.

In addition, you can specify if an attribute contains localize, context, or language value.

Check Detect localize attributes to make Soluling automatically detect what attributes are localize attributes. Localize attribute names specifies the list of attribute names that are possible localize attributes.

Check Detect context attributes to make Soluling automatically detect what attributes are context attributes. Context attribute names specifies the list of attribute names that are possible context attributes.

Check Detect language attributes to make Soluling automatically detect what attributes are language attributes. Language attribute names specifies the list of attribute names that are possible language attributes.

Use this method if you want to localize pretty much everything in the file. If there are only certain elements that you want to localize, then use the following method.

2. Select items you want to localize

Soluling localizes only those items that you select. Use this if you want to localize only some items or you want to localize one or more items as other types than a string (e.g., number or image).

Use the toolbar and tree view to check the items that you want to localize. To check an item, double click it, and green checked mark appears. To unselect, double click again.

Click the Default button to check the default items. Click the Check all button to check all items. Click the Uncheck all button to uncheck all items. Click the Clear all button to uncheck all items and to clear the item properties. Click the Show file button to open the file in the default editor. Click the Import button import selection from a file. Click the Export button to export the current selection into a file.

Solulng tries to detect the data type in the items. The default value is a plain string, but if the value contains a number or base64 encoded value data type is set to match the detected type. You can manually set the data type by right-clicking the item and selecting the data type.

Format Description
Plain text String contains plain text.
Segmented text String contains the segmented text.
Boolean String contains a boolean value. 1/0, true/false, and yes/no are valid values.
Integer number String contains an integer number.
Floating point number String contains a floating-point number. It can be in scientific format (e.g., 1.45E-12). The decimal separator (if any) must be a period (e.g., 1.5).
Color

String contains a color value. Possible formats are [#|$|0x][AA]RRGGBB or [#|$|0x][A]RGB.

Date and time

String contains a date and time value. ISO 8601 (Wikipedia) must be used.

Expression String contains a structured string that is defined using an expression. Regular expressions are used to parse the string.
Defined text String contains the defined text. A text definition (using regular expressions) is used to parse the string.
Script String contains script data. A script/source code parser is used to parse the string.
XML String contains XML data. An XML parser is used to parse the string.
JSON String contains JSON data. A JSON parser is used to parse the string.
YAML String contains YAML data. A YAML parser is used to parse the string.
INI String contains INI data. An INI parser is used to parse the string.
HTML String contains HTML data. An HTML parser is used to parse the string.
SVG String contains SVG data. An SVG parser is used to parse the string.
Base64 encoded binary data String contains base64 encoded data. Encoded data is decoded into original binary data and scanned.
Base32 encoded binary data String contains base32 encoded data. Encoded data is decoded into original binary data and scanned.
Base16/hex encoded binary data String contains base16/hex encoded data. Encoded data is decoded into original binary data and scanned.
URL encoded binary data String contains URL encoded data. Encoded data is decoded into original binary data and scanned.

3. Use rules to select elements

Soluling localizes the items that match the select rules. This is useful if you want to localize only some elements from you file.

Use the toolbar and select rules list to set the select rules that select the items that you want to localize.