python-babel / babel

The official repository for Babel, the Python Internationalization Library
http://babel.pocoo.org/
BSD 3-Clause "New" or "Revised" License
1.34k stars 448 forks source link

Support list format fallbacks #1099

Closed akx closed 4 months ago

akx commented 4 months ago

Fixes #1098 by fixing one part of #1076.

As noted in the TODO comment, this isn't the optimal way to implement it, but a better way could be swapped in later.

akx commented 4 months ago

Cc @vexed01 for reporting #1098.

Cc @tomasr8 if you feel like taking a quick look!

akx commented 4 months ago

As an aside, I was looking for some description for how the list patterns are defined in the XML and I only found this short explanation. I assume the <listPattern> with no type is the standard one?

It's (vaguely) in the TR35 doc:

"type attribute value": standard (or no type)