kikito / i18n.lua

A very complete i18n lib for Lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pluralization - Language-dependant rules

kikito opened this issue · 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.