porw 0.1.0

Read/Write support for PO translation files.
Documentation
  • Coverage
  • 68.18%
    15 out of 22 items documented0 out of 6 items with examples
  • Size
  • Source code size: 30.4 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 478.73 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • MGlolenstine/po
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • MGlolenstine

PO

po is a rust crate for reading and writing PO translation files.

USAGE

To parse a .po or .pot file, just create a new PoFile

let file = PoFile::new("<PATH>").unwrap();

To update the file PoFile was generated from, use update()

let file = PoFile::new("<PATH>").unwrap();
file.update().unwrap();

To write the PoFile to another file, use write(path)

let file = PoFile::new("<PATH>").unwrap();
file.write("<ANOTHER PATH>").unwrap();

To get the PoFile as the String, equal to the file, use to_string()

let file = PoFile::new("<PATH>").unwrap();
let data = file.to_string();
// Content in `data` will be the same as the one written using `write` or `update`.