Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Unicode CLDR Version 35 Language/Locale Data Released
We shall update the codes to the latest data (35.0.0)
Ref: http://blog.unicode.org/2019/03/unicode-cldr-version-35-languagelocale.html
Proposed resolution
Update CountryManager.php to latest data
Ref: https://raw.githubusercontent.com/unicode-cldr/cldr-localenames-full/mas...
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
@todo
Comment | File | Size | Author |
---|---|---|---|
#13 | 3044261-13.patch | 6.91 KB | pandaski |
#13 | interdiff_7_13.txt | 395 bytes | pandaski |
#10 | territories.txt | 9.58 KB | pandaski |
Comments
Comment #2
pandaski CreditAttribution: pandaski at govCMS (Australian Government Department of Finance) commentedcore/scripts/update-countries.sh is being used for creating the patch for 8.8.x
Comment #3
pandaski CreditAttribution: pandaski at govCMS (Australian Government Department of Finance) commentedComment #4
PanchoQuite some changes this time. While most are fine, these aren't and have to be filtered out:
Comment #5
cilefen CreditAttribution: cilefen as a volunteer commentedLet’s update core/scripts/update-countries.sh to filter standard exclusions, which evidently exist.
Comment #6
cilefen CreditAttribution: cilefen as a volunteer commentedI suppose we should be updating the countries in every minor release and we need a way to remind ourselves.
Comment #7
pandaski CreditAttribution: pandaski at govCMS (Australian Government Department of Finance) commentedThanks for the review @Pancho
In the new patch #7 also updated the `update-countries.sh` file so we can skip the codes while running this script.
Comment #9
tim.plunkettMigrating credit from #3033340: Change country name for North Macedonia
Comment #10
pandaski CreditAttribution: pandaski at govCMS (Australian Government Department of Finance) commentedAttach `territories.txt` file which is the source file for `core/scripts/update-countries.sh`
Comment #11
pandaski CreditAttribution: pandaski at govCMS (Australian Government Department of Finance) commentedPlease review it, thanks
Comment #12
tstoecklerVerified that the changes in
CountryManager.php
are reproducable. I tried both 35.0 and 35.1 which has been released in the meantime, and there were no changes. (Changing title accordingly)The changes in the update-countries.sh script also look good. I wonder, though if we could add some more comments to the newly added lines, i.e.
Also maybe a link to the official reference would be helpful, I think, because these codes are somewhat obscure and not super easy to find. http://unicode.org/reports/tr35/#unicode_region_subtag_validity was the best link I could find, but maybe there's something better than that.
Comment #13
pandaski CreditAttribution: pandaski at govCMS (Australian Government Department of Finance) commentedPlease check the following updates in the new patch:
Personally, I cannot think many to improve this patch before a rethink of how we want to manage the countries in an innovated way (could take a while). In our current implementations, this is one of the best approaches to get the list updated and respect CLDR changes with local equivalents of “North Macedonia” (MK) and “Eswatini” (SZ) etc.
Comment #14
tstoecklerThanks! Looks good to me.
Comment #16
Gábor HojtsySuperb, thanks all!