| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
CLDR 49 uses the "ddd" field for ordinal days of the month, e.g. "Sept 13th"; parse_pattern() rejected it, so scripts/import_cldr.py could not import CLDR 49 data at all. "ddd" now formats the day with the locale's ordinal forms, keyed by the ordinal plural category, and falls back to a single "d" for locales that have none. Refs python-babel#1379
| Back | FazBrowse Home | New Git URL |
scripts/import_cldr.py aborts on the CLDR 49 data with ValueError: Invalid length for field: 'ddd' (babel/dates.py:1809): CLDR 49 uses ddd for ordinal days of the month
("Sept 13th"), which the d field did not accept.
Changes
Locale.ordinal_form; locales without ordinal forms fall back to a single d as the CLDR
spec prescribes, so the day is not zero-padded.
by ordinal plural category, {0} replaced by the day).
(dayOfMonthContext[@type="format"] / dayOfMonthWidth[@type="abbreviated"]), plus tests
for parsing, the ordinal output and the fallback.
Verification
I left the second half of #1379 (cldr-exemplars-delta import) to the maintainers.
Disclosure: written with AI assistance; I reviewed the diff, ran the importer and the suite.