]> git.ipfire.org Git - thirdparty/babel.git/commit
Do not allow substituting alternates or drafts in derived locales (#1113)
authorAarni Koskela <akx@iki.fi>
Wed, 7 Aug 2024 08:14:34 +0000 (11:14 +0300)
committerGitHub <noreply@github.com>
Wed, 7 Aug 2024 08:14:34 +0000 (11:14 +0300)
commitb4ba84382f3ce7bdf0e5a68e7108a21f4e8e7926
tree168af9ee98ff54433f59883f9e6febf43f79fa7a
parentd3346ee33b13f50af582e31ae5c337aa409dda11
Do not allow substituting alternates or drafts in derived locales (#1113)

* download_import_cldr.py: pass remaining arguments through to import_cldr

* Do not allow substituting alternates or drafts in derived locales

For more coverage, we've allowed using alternate or draft values
when no officially accepted values have been present.

However, non-global (i.e. e.g. `de_CH` locales) may have an alternate
spelling for what would be an alternate in the parent locale (and
that alternate hasn't been imported into the parent), and the import
would have then accepted the alternate from the child locale as a
non-alternate.

Refs #1112
scripts/download_import_cldr.py
scripts/import_cldr.py
tests/test_core.py