Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mondeja/rspolib
Rust port of polib Python library.
https://github.com/mondeja/rspolib
i18n mo mofile po pofile python rust rust-library translation
Last synced: 28 days ago
JSON representation
Rust port of polib Python library.
- Host: GitHub
- URL: https://github.com/mondeja/rspolib
- Owner: mondeja
- Created: 2023-02-27T22:39:57.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-18T06:30:53.000Z (10 months ago)
- Last Synced: 2024-10-05T06:50:39.412Z (about 1 month ago)
- Topics: i18n, mo, mofile, po, pofile, python, rust, rust-library, translation
- Language: Rust
- Homepage: https://docs.rs/rspolib
- Size: 116 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# rspolib
[![crates.io](https://img.shields.io/crates/v/rspolib?logo=rust)](https://crates.io/crates/rspolib) [![PyPI](https://img.shields.io/pypi/v/rspolib?logo=pypi&logoColor=white)](https://pypi.org/project/rspolib) [![docs.rs](https://img.shields.io/docsrs/rspolib?logo=docs.rs)](https://docs.rs/rspolib) [![Bindings docs](https://img.shields.io/badge/bindings-docs-blue?logo=python&logoColor=white)](https://github.com/mondeja/rspolib/blob/master/python/REFERENCE.md)
Port to Rust of the Python library [polib].
## Install
```bash
cargo add rspolib
```## Usage
```rust
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](https://docs.rs/rspolib)
## Python bindings
[![Python versions](https://img.shields.io/pypi/pyversions/rspolib?logo=python&logoColor=white)](https://pypi.org/project/rspolib/#files)
- [Quickstart](https://github.com/mondeja/rspolib/tree/master/python#readme)
- [Reference](https://github.com/mondeja/rspolib/blob/master/python/REFERENCE.md)[polib]: https://github.com/izimobil/polib