From 5811026bc4f4e253ddbe292438ac2e213a6da8a6 Mon Sep 17 00:00:00 2001 From: btangmu Date: Fri, 15 Mar 2024 10:19:52 -0400 Subject: [PATCH] CLDR-17115 Update languages/codes; fix sa (Sanskrit) and dzd (Daza) -Macrolanguage sa Sanskrit Historical, treat as exception -Take into account the official undeprecation of dzd Daza --- .../java/org/unicode/cldr/unittest/TestSupplementalInfo.java | 4 +++- .../src/test/java/org/unicode/cldr/unittest/TestValidity.java | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/cldr-code/src/test/java/org/unicode/cldr/unittest/TestSupplementalInfo.java b/tools/cldr-code/src/test/java/org/unicode/cldr/unittest/TestSupplementalInfo.java index b24176e90f7..f9009658d64 100644 --- a/tools/cldr-code/src/test/java/org/unicode/cldr/unittest/TestSupplementalInfo.java +++ b/tools/cldr-code/src/test/java/org/unicode/cldr/unittest/TestSupplementalInfo.java @@ -1293,7 +1293,9 @@ public void TestMacrolanguages() { .addAll(languageCodes) .addAll(Iso639Data.getAvailable()) .get()) { - if (language.equals("no") || language.equals("sh")) continue; // special cases + if (language.equals("no") || language.equals("sa") || language.equals("sh")) { + continue; // special cases + } Scope languageScope = getScope(language, lstregLanguageInfo); if (languageScope == Scope.Macrolanguage) { if (Iso639Data.getHeirarchy(language) != null) { diff --git a/tools/cldr-code/src/test/java/org/unicode/cldr/unittest/TestValidity.java b/tools/cldr-code/src/test/java/org/unicode/cldr/unittest/TestValidity.java index 463af923030..34db3f1c38b 100644 --- a/tools/cldr-code/src/test/java/org/unicode/cldr/unittest/TestValidity.java +++ b/tools/cldr-code/src/test/java/org/unicode/cldr/unittest/TestValidity.java @@ -138,7 +138,9 @@ public void TestBasicValidity() { "itpn", "itts", "itud", - "SLE"); + "SLE", + // 2024 + "dzd"); static final Set ALLOWED_MISSING = ImmutableSet.of(LocaleNames.ROOT, "POSIX", "REVISED", "SAAHO"); static final Set ALLOWED_REGULAR_TO_SPECIAL = ImmutableSet.of("Zanb", "Zinh", "Zyyy");