From 75657b79c6fa0994e72208cfbbd5a569b0594ad9 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Wed, 8 Sep 2021 15:20:16 -0400 Subject: [PATCH] LibUnicode: Update comment with link to related upstream issue LibUnicode has to hard-code some aliases because the related data is not available in the JSON export of CLDR. Turns out there is a ticket to add this data in an upcoming CLDR release. Add a link to that ticket for reference. --- Userland/Libraries/LibUnicode/Locale.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Userland/Libraries/LibUnicode/Locale.cpp b/Userland/Libraries/LibUnicode/Locale.cpp index 025d2024588..11263eb2a72 100644 --- a/Userland/Libraries/LibUnicode/Locale.cpp +++ b/Userland/Libraries/LibUnicode/Locale.cpp @@ -468,8 +468,7 @@ static void perform_hard_coded_key_value_substitutions(String& key, String& valu // https://github.com/unicode-org/cldr-staging/blob/master/production/common/bcp47/timezone.xml // https://github.com/unicode-org/cldr-staging/blob/master/production/common/bcp47/transform.xml // - // There doesn't seem to be a counterpart in the JSON export. Since there aren't many such - // aliases, until an XML parser is implemented, those aliases are implemented here. + // There isn't yet a counterpart in the JSON export. See: https://unicode-org.atlassian.net/browse/CLDR-14571 if ((key == "ca"sv) && (value == "islamicc"sv)) { value = "islamic-civil"sv; } else if (key.is_one_of("kb"sv, "kc"sv, "kh"sv, "kk"sv, "kn"sv) && (value == "yes"sv)) {