__init__.py |
|
266 |
add_entries.py |
Modifies `target` by adding entries from `source` that are not already present in `target`.
Standalone comments are not added.
If `use_source_entries` is set,
entries from `source` override those in `target` when they differ,
as well as updating section comments and metadata from `source`.
Entries are not copied, so further changes will be reflected in both resources.
Returns a count of added or changed entries and sections.
|
4118 |
l10n_equal.py |
Compares the localization-relevant content
(id, comment, metadata, message values) of two resources.
Sections with no message entries are ignored,
and the order of sections, entries, and metadata is ignored.
|
2498 |
parse_resource.py |
Parse a Resource from its string representation.
The first argument may be an explicit Format,
the file path as a string, or None.
For the latter two types,
an attempt is made to detect the appropriate format.
If the first argument is a string path,
the `source` argument is optional,
as the file will be opened and read.
|
3684 |
serialize_resource.py |
Serialize a Resource as its string representation.
If `format` is set, it overrides the `resource.format` value.
With `trim_comments`,
all standalone and attached comments are left out of the serialization.
|
3377 |