Skip to content

Commit dc86dcb

Browse files
CLDR-5708 Remove misleading territories attribute from supplementalData (#4445)
supplementalData.xml lists the top territories for languages under the `<languageData>` area -- however it's not clear and it's best for people to consume the data from `<territoryInfo>` directly. This quickly removes the territory information -- but there is additional cleanup to do. I just wanted to get this simple change out there to see how many breaks. CLDR-5708 Scripts ran ``` mvn package -DskipTests=true && java -jar tools/cldr-code/target/cldr-code.jar ConvertLanguageData && java -jar tools/cldr-code/target/cldr-code.jar GenerateLikelySubtags && java -jar tools/cldr-code/target/cldr-code.jar GenerateTestData ```
1 parent a5c7b1e commit dc86dcb

File tree

6 files changed

+174
-487
lines changed

6 files changed

+174
-487
lines changed

common/dtd/ldmlSupplemental.dtd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ CLDR data files are interpreted according to the LDML specification (http://unic
147147
<!ATTLIST language territories NMTOKENS #IMPLIED >
148148
<!--@MATCH:set/validity/region-->
149149
<!--@VALUE-->
150+
<!--@DEPRECATED-->
150151
<!ATTLIST language variants NMTOKENS #IMPLIED >
151152
<!--@VALUE-->
152153
<!ATTLIST language draft (approved | contributed | provisional | unconfirmed | true | false) #IMPLIED >

common/supplemental/attributeValueValidity.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@
193193
<attributeValues dtds='supplementalData' elements='info' attributes='rounding' type='regex'>[0-9]+</attributeValues>
194194
<attributeValues dtds='ldml' elements='key' attributes='type'>$_bcp47_keys</attributeValues>
195195
<attributeValues dtds='supplementalData' elements='language' attributes='scripts' type='list'>$_script</attributeValues>
196-
<attributeValues dtds='supplementalData' elements='language' attributes='territories' type='list'>$_region</attributeValues>
197196
<attributeValues dtds='ldml' elements='language' attributes='type'>$localeOrDeprecated</attributeValues>
198197
<attributeValues dtds='supplementalData' elements='language' attributes='variants'>$_variant</attributeValues>
199198
<attributeValues dtds='supplementalData' elements='languageAlias' attributes='replacement' type='locale'/>

0 commit comments

Comments
 (0)