6 releases

0.1.0 Jan 18, 2024
0.0.5 Mar 12, 2023

#128 in Internationalization (i18n)

MIT license

245KB
6.5K SLoC

Rust 5K SLoC // 0.0% comments PO File 1K SLoC // 0.2% comments Modelica 25 SLoC

rspolib

crates.io PyPI docs.rs Bindings docs

Port to Rust of the Python library polib.

Install

cargo add rspolib

Usage

use rspolib::{pofile, prelude::*};

let po = pofile("./tests-data/flags.po").unwrap();

for entry in &po.entries {
    println!("{}", entry.msgid);
}

po.save("./file.po");

See the documentation at docs.rs/rspolib

Python bindings

Python versions

Dependencies

~1.6–2.2MB
~38K SLoC