mozilla/addon-sdk — pull request #332 by ochameau (2012-01-26 16:33:28+00:00)
Title: Bug 719402 - Implement plural forms

In the preliminary localization support I've only implemented the english behavior for plural forms.
Here is a patch that brings specific algorithm for tons of languages, way more than what is currently supported in the available PluralForms.jsm module used in the platform.

So I've added a little python program in `python-lib/plural-rules-generator.py`
that allows to fetch these specific algorithm for tons of languages from unicode.org:
http://unicode.org/repos/cldr/trunk/common/supplemental/plurals.xml

This program allows to generate `api-utils/l10/plural-rules.js` that allows to compute the plural form name to use (zero, one, two, few, many or other) for a given locale and a given integer.

Then I've simply plugged this new module in `l10n` addon-kit module.

/ ! \ This pull request is based on top of PR #329 / ! \

https://bugzilla.mozilla.org/show_bug.cgi?id=719402