__init__.py |
|
116 |
common.py |
See https://lxml.de/tutorial.html#namespaces |
3373 |
parse.py |
Parse an XLIFF 1.2 file into a message resource.
Sections identify files and groups within them,
with the first identifier part parsed as the <file> "original" attribute,
and later parts as <group> "id" attributes.
An entry's value represents the <target> of a <trans-unit>,
and its comment the first <note>.
Other elements and attributes are represented by metadata.
Metadata keys encode XML element data, using XPath expressions as keys.
|
8163 |
parse_trans_unit.py |
|
3372 |
parse_xcode.py |
|
7429 |
serialize.py |
Serialize a resource as an XLIFF 1.2 file.
Sections identify files and groups within them,
with the first identifier part parsed as the <file> "original" attribute,
and later parts as <group> "id" attributes.
Metadata keys encode XML element data, using XPath expressions as keys.
For namespaced attribute and element names of the form `ns:foo`,
the resource should have an `xmlns:ns` metadata entry with its URI value.
SelectMessage values are only supported in .stringsdict files,
and their structure must closely match that generated by parse_xliff().
|
13248 |