Michele Locati <[email protected]> writes: > But we have a problem here: CLDR data defines the plural rules for > integers and for floats. gettext only works with unsigned integers. [...] > That's why I created > https://github.com/mlocati/cldr-to-gettext-plural-rules
Yes, I actually tried your tool before and read how it works out the issue. It looks reasonable to me that it prunes conditionals which always evaluate to true/false. > IMHO it can be used to statically generate the rules for all the > languages (simply call "bin/export.sh gettext"), so that they can be > included statically in gettext (making the "urlget" approach useless). That's true if we can assume that gettext always includes the latest or fixed information. However, CLDR changes over time, and a user could stick with an older gettext version which ships with a plural-table.c generated from an older CLDR release. > The approach that I proposed was meant to help programs like poedit. > Having a standardized/structured way to represent plural forms (with a > representative name like "one"/"few"/"many" and some example) can be > helpful in such cases... That makes sense. Regards, -- Daiki Ueno
