Closed Bug 1789389 Opened 3 years ago Closed 3 years ago

Clean up region names based on CLDR values

Categories

(Core :: Internationalization: Localization, task)

task

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: hectorz, Assigned: flod)

References

Details

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1788851 +++

I run this script 0 and there're two more changes (GENC & CLDR both agree):

CZ should be "Czechia" 1 2 and SZ should be "Eswatini" 3 4

As mentioned before, GENC is not the reference at this point.

And there are a lot more differences, mostly typographical, but I'm not sure it's worth chasing them all down. Among others.

BQ (2018)
CLDR: Caribbean Netherlands
Mozilla: Bonaire, Sint Eustatius, and Saba
https://unicode-org.atlassian.net/browse/ICU-10521

CV (2020)
CLDR: Cape Verde
Mozilla: Cabo Verde
https://unicode-org.atlassian.net/browse/CLDR-8633

And there's HK and MO too.

We don't ship any locale for these regions, so the only one which would make sense to fix is CZ

This is the full list of differences, ignoring some basic replacements (& -> and, St. -> Saint).

  • I'm not sure yet why CLDR doesn't have X* territories, trying to find some explanation.
  • Some can probably be fixed without forcing retranslation, for example: missing accents (São Tomé & Príncipe), use of parenthesis or commas (Korea, North vs North Korea, Congo (Kinshasa) vs Congo - Kinshasa).

Missing region names in CLDR:
QM: Midway Islands
QS: Bassas da India
QU: Juan de Nova Island
QW: Wake Island
QX: Glorioso Islands
QZ: Akrotiri
XC: Coral Sea Islands
XD: Dhekelia
XE: Europa Island
XG: Gaza Strip
XH: Howland Island
XJ: Jan Mayen
XL: Palmyra Atoll
XM: Kingman Reef
XP: Paracel Islands
XQ: Jarvis Island
XR: Svalbard
XS: Spratly Islands
XT: Tromelin Island
XU: Johnston Atoll
XV: Navassa Island
XW: West Bank

Different values:
BL
CLDR: St. Barthélemy
Mozilla: Saint Barthelemy
BQ
CLDR: Caribbean Netherlands
Mozilla: Bonaire, Sint Eustatius, and Saba
BS
CLDR: Bahamas
Mozilla: Bahamas, The
CD
CLDR: Congo - Kinshasa
Mozilla: Congo (Kinshasa)
CG
CLDR: Congo - Brazzaville
Mozilla: Congo (Brazzaville)
CV
CLDR: Cape Verde
Mozilla: Cabo Verde
CZ
CLDR: Czechia
Mozilla: Czech Republic
FK
CLDR: Falkland Islands
Mozilla: Falkland Islands (Islas Malvinas)
FM
CLDR: Micronesia
Mozilla: Micronesia, Federated States of
GM
CLDR: Gambia
Mozilla: Gambia, The
HK
CLDR: Hong Kong SAR China
Mozilla: Hong Kong
HM
CLDR: Heard & McDonald Islands
Mozilla: Heard Island and McDonald Islands
KN
CLDR: St. Kitts & Nevis
Mozilla: Saint Kitts and Nevis
KP
CLDR: North Korea
Mozilla: Korea, North
KR
CLDR: South Korea
Mozilla: Korea, South
MM
CLDR: Myanmar (Burma)
Mozilla: Burma
MO
CLDR: Macao SAR China
Mozilla: Macau
PM
CLDR: St. Pierre & Miquelon
Mozilla: Saint Pierre and Miquelon
RE
CLDR: Réunion
Mozilla: Reunion
SH
CLDR: St. Helena
Mozilla: Saint Helena, Ascension, and Tristan da Cunha
ST
CLDR: São Tomé & Príncipe
Mozilla: Sao Tome and Principe
SZ
CLDR: Eswatini
Mozilla: Swaziland
TF
CLDR: French Southern Territories
Mozilla: French Southern and Antarctic Lands
VC
CLDR: St. Vincent & Grenadines
Mozilla: Saint Vincent and the Grenadines
VG
CLDR: British Virgin Islands
Mozilla: Virgin Islands, British
VI
CLDR: U.S. Virgin Islands
Mozilla: Virgin Islands, U.S.
XA
CLDR: Pseudo-Accents
Mozilla: Ashmore and Cartier Islands
XB
CLDR: Pseudo-Bidi
Mozilla: Baker Island

Summary: Update region name for CZ & SZ → Clean up region names based on CLDR values

Note: I'm not convinced about SH.

According to CLDR, SH is just St. Helena, while Ascension (AC) and Tristan da Cunha (TA) have their own code.

But ISO 3166-2 has them as subcodes of SH, with SH-SL being St. Helena
https://en.wikipedia.org/wiki/ISO_3166-2:SH

HM: Heard Island & McDonald Islands
As far as I understand, there is one Heard Island, and then are McDonald Islands, so this seems more accurate.

TF: French Southern and Antarctic Lands
That seems to be the correct name https://taaf.fr/

I might file a bug for CLDR to investigate these.

Existing names only missing accents are updated without new IDs, to avoid forcing retranslation.

BQ (2018): Caribbean Netherlands -> Bonaire, Sint Eustatius, and Saba
https://unicode-org.atlassian.net/browse/ICU-10521

CV (2020): Cabo Verde -> Cape Verde
https://unicode-org.atlassian.net/browse/CLDR-8633

CZ (2019): Czech Republic -> Czechia
https://unicode-org.atlassian.net/browse/CLDR-9958

SZ (2019): Swaziland -> Eswatini
https://unicode-org.atlassian.net/browse/CLDR-11083

Assignee: nobody → francesco.lodolo
Status: NEW → ASSIGNED
Pushed by flodolo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/97d99c4615cc Clean up inconsistencies in territory names compared to CLDR, r=eemeli

I don't see how this bug can be related.

We have landed the same code change a week ago without issues (completely unrelated to Autofill BTW).

Flags: needinfo?(francesco.lodolo) → needinfo?(abutkovits)

I made typos on 2 out of 4 string IDs, and apparently that trips tests (the missing Fluent ID is displayed in the console). Missed when first looking at the log.

Pushed by flodolo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1b2dc91d3c38 Clean up inconsistencies in territory names compared to CLDR, r=eemeli
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch

(In reply to Francesco Lodolo [:flod] from comment #2)

...

  • I'm not sure yet why CLDR doesn't have X* territories, trying to find some explanation.
    ...

I find GENC's "Notes on Territory" helpful in understanding them, e.g. in 1 you can see several of X* ones are collectively covered in ISO 3166-1 (& similarly in CLDR) as UM, "U.S. Outlying Islands".

Turns out XA…XZ are private codes for CLDR
https://unicode-org.atlassian.net/browse/CLDR-1118

That's why we have different values for 2 of them between Mozilla and CLDR.

Still not sure it's a good idea to have them, but there are also some in that list that are risky to touch.

(In reply to Francesco Lodolo [:flod] from comment #3)

...

According to CLDR, SH is just St. Helena, while Ascension (AC) and Tristan da Cunha (TA) have their own code.

But ISO 3166-2 has them as subcodes of SH, with SH-SL being St. Helena
https://en.wikipedia.org/wiki/ISO_3166-2:SH

...

AC & TA might be included based on this rule from BCP47: "In addition, the codes that are "exceptionally reserved" (as opposed to "assigned") in ISO 3166-1 were also defined in the registry, with the exception of 'UK', which is an exact synonym for the assigned code 'GB'." 1

(In reply to Francesco Lodolo [:flod] from comment #13)

Turns out XA…XZ are private codes for CLDR
https://unicode-org.atlassian.net/browse/CLDR-1118

...

The validity data from 2 3 might be helpful? I also found this table 4 comparing status of these region codes in CLDR/BCP47/ISO.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: