Skip to content

Commit d62c0a9

Browse files
authored
CLDR-18861 Migrate Adding/Fixing Plural and Ordinals page (#4900)
1 parent 43650c7 commit d62c0a9

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: Adding/Fixing Plural and Ordinals
3+
---
4+
5+
# Adding/Fixing Plural and Ordinals
6+
7+
## Run WritePluralRulesSpreadsheets.java
8+
Q: Is the output supposed to be captured somewhere? Prints stuff to console.
9+
10+
## Adding rules for a locale
11+
- Add the new plural and ordinal rules to plurals.xml and ordinals.xml.
12+
- Run GeneratedPluralSamples as below.
13+
- Add the minimal pairs to the locale.
14+
15+
## Changing rules/ranges
16+
17+
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.
18+
19+
1. Run GeneratePluralRanges.java to reformat pluralRanges.xml
20+
- Overwrites cldr/common/supplemental/pluralRanges.xml in place.
21+
- Diff, commit if changed.
22+
1. Run GeneratedPluralSamples to reformat plurals.xml, ordinals.xml.
23+
- Overwrites cldr/common/supplemental/plurals.xml and cldr/common/supplemental/ordinals.xml in place.
24+
- Diff, commit if changed.
25+
1. Run GenerateAllCharts (actually, it is enough to run ShowLanguages) and the unit tests.
26+
- This will insure that the rules are correctly represented, and aligned with the minimal pairs.
27+
- Diff the plurals chart against the old one: eg v.s. https://unicode-org.github.io/cldr-staging/charts/38/supplemental/language_plural_rules.html
28+
~~1. Run FindPluralDifferences to see that the expected changes are there (only tests integers right now).~~
29+
~~- Modify the versions variable to use the last release.~~
30+
~~- This is also run at the end of the release to get the Migration info for the release.~~
31+
1. Compare the results carefully, then check in.

docs/site/sitemap.tsv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ index
168168
development/updating-codes/update-languagescriptregion-subtags
169169
development/updating-codes/update-time-zone-data-for-zoneparser
170170
development/updating-codes/update-validity-xml
171+
development/updating-codes/update-plurals
171172
development/updating-codes/updating-population-gdp-literacy
172173
development/updating-codes/updating-script-metadata
173174
development/updating-codes/updating-subdivision-codes

0 commit comments

Comments
 (0)