------------------------------------------------------------------------ r11893 | jomae | 2013-07-29 15:58:37 +0200 (Mon, 29 Jul 2013) | 2 lines 1.0.2dev: fixed test failures caused by periods except am/pm which are retrieved from `get_period_names()` in Babel 1.0+ (a part of #11258) Index: trac/util/datefmt.py =================================================================== --- trac/util/datefmt.py (revision 11892) +++ trac/util/datefmt.py (revision 11893) @@ -538,8 +538,9 @@ if formats[0].find('%(a)s') != -1: names = get_period_names(locale=locale) for period, name in names.iteritems(): - name = name.lower() - period_names[name] = period + if period in ('am', 'pm'): + name = name.lower() + period_names[name] = period regexp.extend(period_names.iterkeys()) return { ------------------------------------------------------------------------