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.
This commit is contained in:
Timothy Flynn 2021-09-08 15:20:16 -04:00 committed by Linus Groh
parent 32a2a02489
commit 75657b79c6
Notes: sideshowbarker 2024-07-18 04:25:15 +09:00

View file

@ -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)) {