| 1 | //! This crate allows users to load, manipulate and save translation data in |
| 2 | //! GNU gettext `.po` file format. Saving translation data into `.mo` file format |
| 3 | //! is also supported. For simplicity, only UTF-8 encoding is supported. |
| 4 | //! |
| 5 | //! A _Message_ represents an entry in the translation data that maps a string |
| 6 | //! or a pair of singular form and plural form strings in the original language |
| 7 | //! to a string or a vector of string in different plural forms in the target language. |
| 8 | //! |
| 9 | //! A _Catalog_ holds a collection set of _Messages_, and is stored in a `.po` or `.mo` file. |
| 10 | //! |
| 11 | //! _Metadata_ is the "header" section of a _Catalog_ that declares its |
| 12 | //! properties like target language, character encoding, translation template |
| 13 | //! creation date, last time translated, plural forms rules, etc. |
| 14 | |
| 15 | #![warn (missing_docs)] |
| 16 | |
| 17 | pub mod catalog; |
| 18 | pub mod message; |
| 19 | pub mod metadata; |
| 20 | pub mod mo_file; |
| 21 | mod plural; |
| 22 | pub mod po_file; |
| 23 | |