What?
Pomo is a library that allows you to handle PO and MO files in pretty much the same way that gettext (and family) allow you to.
It exposes a single Pomo object whose
Pomo.getText()
method behaves like
sprintf(gettext("string %s"), "placeholder")
would for other languages.
Instead of returning a string upon finding the translation, Pomo gives you an object containing all the possible information about that translation; this object in turn can be casted to a string for ease of use, or can be used straight as a string by
While it DOES aim to be feature-complete, right now it is not. Below is a table showing exactly what is and what's not covered.
Feature | PO files | MO files | Additional details | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Read from literal string | Yes | No |
|
||||||||||
Read from URL | Yes | No |
|