Internationalisation helper
This crate maily expose a macro that wraps gettext in a convinient ways. See the documentation of the tr! macro.
To translate a rust crate, simply wrap your string within the tr! macro.
One can then use the xtr binary to extract all the translatable from a crate in a .po
file. GNU gettext tools can be used to process and translate these strings.
The tr! macro also support support rust-like formating.
Example:
extern crate tr;