]> git.ipfire.org Git - thirdparty/babel.git/commit
Upgrade to CLDR 45 (#1077)
authorTomas R <tomas.roun8@gmail.com>
Thu, 11 Jul 2024 06:10:19 +0000 (08:10 +0200)
committerGitHub <noreply@github.com>
Thu, 11 Jul 2024 06:10:19 +0000 (09:10 +0300)
commit75486c9bf3c79a6e59cb8e1bf8cb17a33b6e7c08
tree5363e844986b4d5eab063c48481aa13144b7bef1
parent3edf7729b0d395cbba3ad17b9a28373602c9b068
Upgrade to CLDR 45 (#1077)

* Upgrade to CLDR 45

* Handle 'localeRules="nonlikelyScript"' for parent locales

Locales of the form 'lang_Script' where 'Script' is not the
likely script for 'lang' should have 'root' as their parent
locale. For example, the parent of 'az_Arab' should not be
computed as 'az' by truncating from the end, but should be
'root' instead as 'Arab' is not the likely script for 'az'.

The list of such languages was previously specified using
an explicit 'locales' attribute. It is now handled dynamically
using the new 'localeRules' attribute.
babel/localedata.py
scripts/download_import_cldr.py
scripts/import_cldr.py
tests/test_localedata.py
tests/test_numbers.py