Crate translate_storage [] [src]

Translation catalogues are key part of any localization infrastructure. They contain the lists of messages from the application, possibly disambiguated with identifiers or contexts, and corresponding translations.

Catalogs are usually stored in one of two formats: Portable Objects (.po), used primarily by GNU gettext, and XML Localisation Interchange File Format (XLIFF), a more generic OASIS open standard.

These formats can be converted to each other, and to and from many others, using translate-toolkit.

XLIFF is quite flexible and can be used in different ways, but this library focuses primarily on using it in a way gettext and translate-toolkit work, namely with separate catalogue for each language.

Modules

po

Handling of Uniforum Portable Objects

Structs

Unit

Elementary unit of translation.

Enums

Count

Plural variants

Error

Error in reading (and, in future, writing) a catalogue.

Message

String wrapper possibly with plural variants.

Origin

Note (comment) origins.

State

Translation state.

Traits

CatalogueReader

Catalogue reader.