kikito/i18n.lua

pluralization - Language-dependant rules

kikito opened this issue · 1 comments

Pluralization is not limited to 'one vs other' (although that one is the most common).

The whole list is here:

http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html

I have identified 24 different rules.

It would probably make sense to have them built-in in i18n, and probably let a way to extend the language - (elven, klingon, etc are not included) probably with a second param in setLocale.

This is seems to be working now that I've added the plural module.