Difference between revisions of "LRM XML Support"
(→AndroidParser.xml structure) |
(→AndroidParser.xml structure) |
||
Line 15: | Line 15: | ||
A typical Android file has the following structure: |
A typical Android file has the following structure: |
||
+ | |||
− | <nowiki> |
||
<resources> |
<resources> |
||
<string name=""hello_world"" translatable=""true"">Hello World</string> |
<string name=""hello_world"" translatable=""true"">Hello World</string> |
||
<string name=""goodbye"" translatable=""true"">Good Bye</string> |
<string name=""goodbye"" translatable=""true"">Good Bye</string> |
||
</resources> |
</resources> |
||
− | </nowiki> |
||
== ResxParser.xml structure == |
== ResxParser.xml structure == |
Revision as of 17:14, 1 September 2017
Contents
Formatting xml files
LRM uses the xmlParser.xml file to parse any extensions that have a xml parser type. This file is located in the ../L10nStreamlining/<group>/projects/<project>/config folder.
The xmlParser.xml directs LRM on the location of the keys and values within the xml files as well as whether the key/value is translatable.
There are 3 out-of-the-box parser definitions for XML files.
- AndroidParser.xml format definition used for as the default for .xml extensions.
- ResxParser.xml format definition used for .resx extensions.
- RxmlParser.xml format definition used for .rxml extensions.
AndroidParser.xml structure
The AndroidParser.xml file defines the structure of Android files.
A typical Android file has the following structure:
<resources>
<string name=""hello_world"" translatable=""true"">Hello World</string> <string name=""goodbye"" translatable=""true"">Good Bye</string>
</resources>