Hi Rémy, On Thu, Mar 28, 2013 at 9:28 PM, Remy Blank <remy.bl...@pobox.com> wrote: > I just ran our test suite on 1.0-stable, and I have a number of test > failures related to dates and i18n. This may be due to my slightly > special locale setup (en_CH is a custom locale), but AFAIU the tests > shouldn't depend on the my locale.
Reproduced with babel-1.0dev. The issue doesn't depend on user locale. Trac uses `babel.localedata.list` to retrieve known locales in Babel in trac:r11691 [1]. But the `list` has been renamed to `locale_identifiers` in babel:r599/trunk [2]. [1] http://trac.edgewall.org/changeset/11691 [2] http://babel.edgewall.org/changeset/599 diff --git a/trac/util/datefmt.py b/trac/util/datefmt.py index 1620dfd..cb99cfe 100644 --- a/trac/util/datefmt.py +++ b/trac/util/datefmt.py @@ -36,7 +36,10 @@ try: get_time_format, get_month_names, get_period_names, get_day_names ) - from babel.localedata import list as get_known_locales + try: + from babel.localedata import list as get_known_locales + except ImportError: + from babel.localedata import locale_identifiers as get_known_locales except ImportError: babel = None -- Jun Omae <jun6...@gmail.com> (大前 潤) -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-dev+unsubscr...@googlegroups.com. To post to this group, send email to trac-dev@googlegroups.com. Visit this group at http://groups.google.com/group/trac-dev?hl=en. For more options, visit https://groups.google.com/groups/opt_out.