Skip to content

Commit

Permalink
Remove left-over comments from config.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
mihnita committed Dec 6, 2024
1 parent 4b3b616 commit afa1017
Showing 1 changed file with 31 additions and 37 deletions.
68 changes: 31 additions & 37 deletions tools/cldr/cldr-to-icu/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,13 @@
for "zh" and "yue". The maximized versions of "yue_Hans" is "yue_Hans_CN" (vs
"zh_Hans_CN"), and for "yue" it's "yue_Hant_HK" (vs "zh_Hant_HK"), so the
aliases are effectively just rewriting the base language. -->
<!-- <forcedAliases> -->
<forcedAlias source="yue" target="zh_Hant"/>
<forcedAlias source="yue_Hant" target="zh_Hant"/>
<forcedAlias source="yue_CN" target="zh_Hans"/>
<forcedAlias source="yue_Hans" target="zh_Hans"/>
<forcedAlias source="yue_Hans_CN" target="zh_Hans"/>
<!-- TODO: Find out and document this properly. -->
<forcedAlias source="sr_ME" target="sr_Cyrl_ME"/>
<!-- </forcedAliases> -->
<forcedAlias source="yue" target="zh_Hant"/>
<forcedAlias source="yue_Hant" target="zh_Hant"/>
<forcedAlias source="yue_CN" target="zh_Hans"/>
<forcedAlias source="yue_Hans" target="zh_Hans"/>
<forcedAlias source="yue_Hans_CN" target="zh_Hans"/>
<!-- TODO: Find out and document this properly. -->
<forcedAlias source="sr_ME" target="sr_Cyrl_ME"/>

<localeIds>
root,
Expand Down Expand Up @@ -169,14 +167,12 @@
</directory>

<directory dir="rbnf">
<!-- <forcedAliases> -->
<!-- It is not at all clear why this is being done. It's certainly not exactly the
same as above, since (a) the alias is reversed (b) "zh_Hant" does exist, with
different data than "yue", so this alias is not just rewriting the base
language. -->
<!-- TODO: Find out and document this properly. -->
<forcedAlias source="zh_Hant_HK" target="yue"/>
<!-- </forcedAliases> -->
<!-- It is not at all clear why this is being done. It's certainly not exactly the
same as above, since (a) the alias is reversed (b) "zh_Hant" does exist, with
different data than "yue", so this alias is not just rewriting the base
language. -->
<!-- TODO: Find out and document this properly. -->
<forcedAlias source="zh_Hant_HK" target="yue"/>

<localeIds>
root,
Expand Down Expand Up @@ -206,26 +202,24 @@

<!-- GLOBAL ALIASES -->

<!-- <forcedAliases> -->
<!-- Some spoken languages (e.g. "ars") inherit all their data from a written language
(e.g. "ar_SA"). However CLDR doesn't currently support a way to represent that
relationship. Unlike deprecated languages for which an alias can be inferred from
the "languageAlias" CLDR data, there's no way in CLDR to represent the fact that
we want "ars" (a non-deprecated language) to inherit the data of "ar_SA".
This alias is the first example of potentially many cases where ICU needs to
generate an alias in order to affect "sideways inheritance" for spoken languages,
and at some stage it should probably be supported properly in the CLDR data. -->
<forcedAlias source="ars" target="ar_SA"/>

<!-- A legacy global alias (note that "no_NO_NY" is not even structurally valid). -->
<forcedAlias source="no_NO_NY" target="nn_NO"/>

<!-- This one is a bit silly, it is just to generate a stub for no_NO, which is
not in CLDR. If we do not do this, then including it in localeIds will generate
empty no_Latn and no_Latn_NO and then no_NO aliasing to no_Latn_NO. -->
<forcedAlias source="no_NO" target="no"/>
<!-- </forcedAliases> -->
<!-- Some spoken languages (e.g. "ars") inherit all their data from a written language
(e.g. "ar_SA"). However CLDR doesn't currently support a way to represent that
relationship. Unlike deprecated languages for which an alias can be inferred from
the "languageAlias" CLDR data, there's no way in CLDR to represent the fact that
we want "ars" (a non-deprecated language) to inherit the data of "ar_SA".
This alias is the first example of potentially many cases where ICU needs to
generate an alias in order to affect "sideways inheritance" for spoken languages,
and at some stage it should probably be supported properly in the CLDR data. -->
<forcedAlias source="ars" target="ar_SA"/>

<!-- A legacy global alias (note that "no_NO_NY" is not even structurally valid). -->
<forcedAlias source="no_NO_NY" target="nn_NO"/>

<!-- This one is a bit silly, it is just to generate a stub for no_NO, which is
not in CLDR. If we do not do this, then including it in localeIds will generate
empty no_Latn and no_Latn_NO and then no_NO aliasing to no_Latn_NO. -->
<forcedAlias source="no_NO" target="no"/>

<!-- ALTERNATE VALUES -->

Expand Down

0 comments on commit afa1017

Please sign in to comment.