]> git.ipfire.org Git - thirdparty/babel.git/commit
dates: Use format context and fallback through widths
authorAarni Koskela <akx@iki.fi>
Fri, 8 Apr 2016 05:14:06 +0000 (08:14 +0300)
committerLasse Schuirmann <lasse.schuirmann@gmail.com>
Fri, 8 Apr 2016 07:50:39 +0000 (09:50 +0200)
commit9f223b42e90fb80eedf33a6c09ccd2237c3eb344
tree13117a61928e3779ab08a0a9133d493aa0287c54
parentd36f0fe57c897ba55d6efe48011681b791b9a717
dates: Use format context and fallback through widths

`zh_Hant` locale data does not have names for the
`am` and `pm` day periods in the `format`/`abbreviated` context,
so fallback logic is added to deal with that eventuality.

Fixes #378
babel/dates.py
tests/test_dates.py