]> 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)
committerAarni Koskela <akx@iki.fi>
Fri, 8 Apr 2016 06:13:04 +0000 (09:13 +0300)
commitc028a09a283dd2f62c747862d08da39fc62ed6ed
tree92610a87a101bf310bb56c2a3b2168538fe8a404
parent5aa21f9f870f4693cb1fc890656c7a4db8cbb6c5
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