Open seriyps opened 10 years ago
Hm...note that this gettext lib doesn't have anything in common with GNU gettext (apart from using the PO file format).
Still, I agree that such functions would be useful.
@richcarl I have gettext rule evaluator implemented there https://github.com/seriyps/gettexter/tree/master/src (see gettexter_plural.erl, gettexter_plural_parser.yrl, gettexter_plural_scanner.xrl).
Rule may be evaluated by erl_eval
or compiled to .beam
.
Some support for
ngettext(Singular, Plural, Count)
+ evaluator for pluralization rules fromPlural-Forms
.po header may be good thing.http://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html