#gettext #translate #po #file

translate-storage

Manipulate translation catalogs in PO format

1 unstable release

Uses old Rust 2015

0.0.1 Apr 24, 2017

#8 in #po

MIT license

30KB
651 lines

TravisCI Build Status AppVeyor Build Status Crates.io Version Docs.rs

translate-storage

Rust library for reading, and in future writing, translation catalogs in Uniforum/Gettext PO and (in future) Xliff formats. Similar to the translate.storage package in Python Translate Toolkit.

Only PO and Xliff are planned to be supported. For anything else, just convert it with Translate Toolkit. There is no point in replacing that excellent library; the main reason for Rust parser and writer is to them as part of build process of Rust programs, especially in procedural macros, which need to be written in Rust.

Documentation

On Docs.rs.

Installation

It uses Cargo, Rust's package manager. You can depend on this library by adding translate-storage to your Cargo dependencies:

[dependencies]
translate-storage = "0.1"

Or, to use the Git repo directly:

[dependencies.translate-storage]
git = "https://github.com/rust-locale/translate-storagee.git"

Dependencies

~3–4.5MB
~75K SLoC