VitaliiTsilnyk / NGettext

A cross-platform .NET implementation of the GNU/Gettext library.
MIT License
215 stars 45 forks source link

Automated update of the Unicode CLDR Project data #4

Open VitaliiTsilnyk opened 8 years ago

VitaliiTsilnyk commented 8 years ago

In the DefaultPluralRuleGenerator we use pre-compiled plural forms for most known cultures based on the Unicode CLDR Project data. Honestly I don't remember how I implemented it back in 2012. We need to update this rules to the latest CLDR release (v28) and make an automated update process for future CLDR releases and document it.

Plural rules can be found in: core.zip/common/supplemental/{plurals.xml|pluralRanges.xml}.

Original GNU/Gettext's msginit has support for the Unicode CLDR Project format. We can try use it.

Also this project looks interesting.

VitaliiTsilnyk commented 7 years ago

Small note: GNU/Gettext has a very small default plural table: http://git.savannah.gnu.org/cgit/gettext.git/tree/gettext-tools/src/plural-table.c