Skip to content

Commit

Permalink
ICU-21580 fix links to CLDR Language Plural Rules
Browse files Browse the repository at this point in the history
  • Loading branch information
markusicu committed Oct 20, 2021
1 parent b303de1 commit a0baa69
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion icu4c/source/i18n/unicode/plurfmt.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class NFRule;
* use the predefined keywords. The whole plural formatting of messages can
* be done using localized patterns from resource bundles. For predefined plural
* rules, see the CLDR <i>Language Plural Rules</i> page at
* http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html
* https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/language_plural_rules.html
* </ul>
* </p>
* <h4>Usage of <code>PluralFormat</code></h4>
Expand Down
6 changes: 3 additions & 3 deletions icu4c/source/i18n/unicode/plurrule.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ class UFormattedNumberRangeData;
* default rule(other) is returned.
*
* For more information, details, and tips for writing rules, see the
* LDML spec, C.11 Language Plural Rules:
* http://www.unicode.org/draft/reports/tr35/tr35.html#Language_Plural_Rules
* LDML spec, Part 3.5 Language Plural Rules:
* https://www.unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules
*
* Examples:<pre>
* "one: n is 1; few: n in 2..4"</pre>
Expand Down Expand Up @@ -200,7 +200,7 @@ class UFormattedNumberRangeData;
* <p>
* ICU defines plural rules for many locales based on CLDR <i>Language Plural Rules</i>.
* For these predefined rules, see CLDR page at
* http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html
* https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/language_plural_rules.html
* </p>
*/
class U_I18N_API PluralRules : public UObject {
Expand Down
7 changes: 4 additions & 3 deletions icu4c/source/i18n/unicode/upluralrules.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,17 @@ struct UFormattedNumberRange;
* returns the keyword for the first condition that matches the number.
* If none match, the default rule(other) is returned.
*
* For more information, see the LDML spec, C.11 Language Plural Rules:
* http://www.unicode.org/reports/tr35/#Language_Plural_Rules
* For more information, see the
* LDML spec, Part 3.5 Language Plural Rules:
* https://www.unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules
*
* Keywords: ICU locale data has 6 predefined values -
* 'zero', 'one', 'two', 'few', 'many' and 'other'. Callers need to check
* the value of keyword returned by the uplrules_select function.
*
* These are based on CLDR <i>Language Plural Rules</i>. For these
* predefined rules, see the CLDR page at
* http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html
* https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/language_plural_rules.html
*/

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
* use the predefined keywords. The whole plural formatting of messages can
* be done using localized patterns from resource bundles. For predefined plural
* rules, see the CLDR <i>Language Plural Rules</i> page at
* http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html
* https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/language_plural_rules.html
* </ul>
*
* <h4>Usage of <code>PluralFormat</code></h4>
Expand Down
15 changes: 8 additions & 7 deletions icu4j/main/classes/core/src/com/ibm/icu/text/PluralRules.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
* </p>
* <p>
* For more information, details, and tips for writing rules, see the <a
* href="http://www.unicode.org/draft/reports/tr35/tr35.html#Language_Plural_Rules">LDML spec, C.11 Language Plural
* Rules</a>
* href="https://www.unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules">LDML spec,
* Part 3.5 Language Plural Rules</a>
* </p>
* <p>
* Examples:
Expand Down Expand Up @@ -208,7 +208,8 @@ protected Factory() {
*
* <p>
* ICU defines plural rules for many locales based on CLDR <i>Language Plural Rules</i>. For these predefined
* rules, see CLDR page at http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html
* rules, see CLDR page at
* https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/language_plural_rules.html
*
* @param locale
* The locale for which a <code>PluralRules</code> object is returned.
Expand Down Expand Up @@ -2059,7 +2060,7 @@ private boolean addConditional(Set<IFixedDecimal> toAddTo, Set<IFixedDecimal> ot
*
* <p>ICU defines plural rules for many locales based on CLDR <i>Language Plural Rules</i>.
* For these predefined rules, see CLDR page at
* http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html
* https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/language_plural_rules.html
*
* @param locale The locale for which a <code>PluralRules</code> object is
* returned.
Expand All @@ -2081,7 +2082,7 @@ public static PluralRules forLocale(ULocale locale) {
*
* <p>ICU defines plural rules for many locales based on CLDR <i>Language Plural Rules</i>.
* For these predefined rules, see CLDR page at
* http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html
* https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/language_plural_rules.html
*
* @param locale The locale for which a <code>PluralRules</code> object is
* returned.
Expand All @@ -2102,7 +2103,7 @@ public static PluralRules forLocale(Locale locale) {
*
* <p>ICU defines plural rules for many locales based on CLDR <i>Language Plural Rules</i>.
* For these predefined rules, see CLDR page at
* http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html
* https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/language_plural_rules.html
*
* @param locale The locale for which a <code>PluralRules</code> object is
* returned.
Expand All @@ -2124,7 +2125,7 @@ public static PluralRules forLocale(ULocale locale, PluralType type) {
*
* <p>ICU defines plural rules for many locales based on CLDR <i>Language Plural Rules</i>.
* For these predefined rules, see CLDR page at
* http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html
* https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/language_plural_rules.html
*
* @param locale The locale for which a <code>PluralRules</code> object is
* returned.
Expand Down

0 comments on commit a0baa69

Please sign in to comment.