diff options
author | Victor Chang <vichang@google.com> | 2023-04-25 15:57:58 +0100 |
---|---|---|
committer | Victor Chang <vichang@google.com> | 2023-05-03 21:00:59 +0100 |
commit | 2dd2d2ae9e2dd18d2786c93198568489da33caa6 (patch) | |
tree | 33af451936eaf5b3eaebc49293f39eb123c7e48f /icu4j | |
parent | de3107ad66b9bbb0a660df2c8fa9737d9a103f18 (diff) | |
download | icu-2dd2d2ae9e2dd18d2786c93198568489da33caa6.tar.gz |
Cherry-pick: ICU-22371 Fix ULocale.getISOLanguages() API docs
Upstream commit:
https://github.com/unicode-org/icu/commit/530ca9817641c6a90c9c8c5028996de1d559e4a8
Upstream bug:
https://unicode-org.atlassian.net/browse/ICU-22371
Bug: 277929411
Test: m droid
Change-Id: I5cbf2ba18d0d9f2bff89231ec87ecd1eae8c2057
Diffstat (limited to 'icu4j')
-rw-r--r-- | icu4j/main/classes/core/src/com/ibm/icu/util/ULocale.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/icu4j/main/classes/core/src/com/ibm/icu/util/ULocale.java b/icu4j/main/classes/core/src/com/ibm/icu/util/ULocale.java index 89d1baa45..0f3591c98 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/util/ULocale.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/util/ULocale.java @@ -877,8 +877,10 @@ public final class ULocale implements Serializable, Comparable<ULocale> { } /** - * Returns a list of all 2-letter language codes defined in ISO 639. - * Can be used to create Locales. + * Returns a list of all unique language codes defined in ISO 639. + * They can be 2 or 3 letter codes, as defined by + * <a href="https://www.ietf.org/rfc/bcp/bcp47.html#section-2.2.1"> + * BCP 47, section 2.2.1</a>. Can be used to create Locales. * [NOTE: ISO 639 is not a stable standard-- some languages' codes have changed. * The list this function returns includes both the new and the old codes for the * languages whose codes have changed.] |