Adding/Fixing Plural and Ordinals


Q: Is the output supposed to be captured somewhere? Prints stuff to console.

Adding rules for a locale

  1. Add the new plural and ordinal rules to plurals.xml and ordinals.xml.

  2. Run GeneratedPluralSamples as below.

  3. Add the minimal pairs to the locale.

Changing rules/ranges

Whenever you change plural rules, ordinal rules, or plural ranges — and at the end of the release — you must do the following. The reformatting is required, since it regenerates the samples (after @), which are now necessary for correct functioning of ICU and other clients.

  1. Run to reformat pluralRanges.xml

    1. Overwrites cldr/common/supplemental/pluralRanges.xml in place.

    2. Diff, commit if changed.

  2. Run GeneratedPluralSamples to reformat plurals.xml, ordinals.xml.

      1. Overwrites cldr/common/supplemental/plurals.xml and cldr/common/supplemental/ordinals.xml in place.

      2. Diff, commit if changed.

  3. Run GenerateAllCharts (actually, it is enough to run ShowLanguages) and the unit tests.

  1. Run FindPluralDifferences to see that the expected changes are there (only tests integers right now).

    1. Modify the versions variable to use the last release.

    2. This is also run at the end of the release to get the Migration info for the release.

  1. Compare the results carefully, then check in.