Opened 11 years ago
Last modified 8 years ago
#11258 closed defect
Catalog compilation and test case failures with Babel 1.2 — at Initial Version
Reported by: | Ryan J Ollos | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 0.12.6 |
Component: | i18n | Version: | 1.0-stable |
Severity: | normal | Keywords: | babel10 |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
In the last day or so we've rocketed forward to Babel 1.2, now available on PyPI. I only noticed this just now due to some test case failures.
Compiling the catalogs results in:
(t11257)user@ubuntu:~/Workspace/t11257/teo-rjollos.git$ python setup.py compile_catalog -f running compile_catalog compiling catalog 'trac/locale/he/LC_MESSAGES/messages.po' to 'trac/locale/he/LC_MESSAGES/messages.mo' compiling catalog 'trac/locale/gl/LC_MESSAGES/messages.po' to 'trac/locale/gl/LC_MESSAGES/messages.mo' compiling catalog 'trac/locale/fa/LC_MESSAGES/messages.po' to 'trac/locale/fa/LC_MESSAGES/messages.mo' compiling catalog 'trac/locale/nb/LC_MESSAGES/messages.po' to 'trac/locale/nb/LC_MESSAGES/messages.mo' compiling catalog 'trac/locale/en_GB/LC_MESSAGES/messages.po' to 'trac/locale/en_GB/LC_MESSAGES/messages.mo' compiling catalog 'trac/locale/fi/LC_MESSAGES/messages.po' to 'trac/locale/fi/LC_MESSAGES/messages.mo' compiling catalog 'trac/locale/it/LC_MESSAGES/messages.po' to 'trac/locale/it/LC_MESSAGES/messages.mo' compiling catalog 'trac/locale/es_MX/LC_MESSAGES/messages.po' to 'trac/locale/es_MX/LC_MESSAGES/messages.mo' compiling catalog 'trac/locale/ja/LC_MESSAGES/messages.po' to 'trac/locale/ja/LC_MESSAGES/messages.mo' compiling catalog 'trac/locale/vi/LC_MESSAGES/messages.po' to 'trac/locale/vi/LC_MESSAGES/messages.mo' compiling catalog 'trac/locale/en_US/LC_MESSAGES/messages.po' to 'trac/locale/en_US/LC_MESSAGES/messages.mo' compiling catalog 'trac/locale/et/LC_MESSAGES/messages.po' to 'trac/locale/et/LC_MESSAGES/messages.mo' error: trac/locale/ca/LC_MESSAGES/messages.po:668: unknown named placeholder u'resource' error: trac/locale/ca/LC_MESSAGES/messages.po:704: unknown named placeholder u'subject' error: trac/locale/ca/LC_MESSAGES/messages.po:709: unknown named placeholder u'subject' error: trac/locale/ca/LC_MESSAGES/messages.po:736: unknown named placeholder u'page' error: trac/locale/ca/LC_MESSAGES/messages.po:2722: unknown named placeholder u'revs' error: trac/locale/ca/LC_MESSAGES/messages.po:2994: unknown named placeholder u'shortname' error: trac/locale/ca/LC_MESSAGES/messages.po:4692: unknown named placeholder u'created' error: trac/locale/ca/LC_MESSAGES/messages.po:4697: unknown named placeholder u'created' error: trac/locale/ca/LC_MESSAGES/messages.po:5274: unknown named placeholder u'file' error: trac/locale/ca/LC_MESSAGES/messages.po:5286: unknown named placeholder u'file' error: trac/locale/ca/LC_MESSAGES/messages.po:5806: unknown named placeholder u'in_repo' error: trac/locale/ca/LC_MESSAGES/messages.po:5811: unknown named placeholder u'in_repo' error: trac/locale/ca/LC_MESSAGES/messages.po:6670: unknown named placeholder u'name' error: trac/locale/ca/LC_MESSAGES/messages.po:6675: unknown named placeholder u'name' error: trac/locale/ca/LC_MESSAGES/messages.po:6703: incompatible format for placeholder u'version': 'd' and 's' are not compatible compiling catalog 'trac/locale/ca/LC_MESSAGES/messages.po' to 'trac/locale/ca/LC_MESSAGES/messages.mo' compiling catalog 'trac/locale/hu/LC_MESSAGES/messages.po' to 'trac/locale/hu/LC_MESSAGES/messages.mo' compiling catalog 'trac/locale/cs/LC_MESSAGES/messages.po' to 'trac/locale/cs/LC_MESSAGES/messages.mo' compiling catalog 'trac/locale/tr/LC_MESSAGES/messages.po' to 'trac/locale/tr/LC_MESSAGES/messages.mo' compiling catalog 'trac/locale/fr/LC_MESSAGES/messages.po' to 'trac/locale/fr/LC_MESSAGES/messages.mo' compiling catalog 'trac/locale/hy/LC_MESSAGES/messages.po' to 'trac/locale/hy/LC_MESSAGES/messages.mo' compiling catalog 'trac/locale/sv/LC_MESSAGES/messages.po' to 'trac/locale/sv/LC_MESSAGES/messages.mo' compiling catalog 'trac/locale/eo/LC_MESSAGES/messages.po' to 'trac/locale/eo/LC_MESSAGES/messages.mo' compiling catalog 'trac/locale/pt_BR/LC_MESSAGES/messages.po' to 'trac/locale/pt_BR/LC_MESSAGES/messages.mo' Traceback (most recent call last): File "setup.py", line 162, in <module> **extra File "/usr/lib/python2.6/distutils/core.py", line 152, in setup dist.run_commands() File "/usr/lib/python2.6/distutils/dist.py", line 975, in run_commands self.run_command(cmd) File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command cmd_obj.run() File "/home/user/Workspace/t11257/lib/python2.6/site-packages/Babel-1.2-py2.6.egg/babel/messages/frontend.py", line 133, in run catalog = read_po(infile, locale) File "/home/user/Workspace/t11257/lib/python2.6/site-packages/Babel-1.2-py2.6.egg/babel/messages/pofile.py", line 121, in read_po catalog = Catalog(locale=locale, domain=domain, charset=charset) File "/home/user/Workspace/t11257/lib/python2.6/site-packages/Babel-1.2-py2.6.egg/babel/messages/catalog.py", line 247, in __init__ locale = Locale.parse(locale) File "/home/user/Workspace/t11257/lib/python2.6/site-packages/Babel-1.2-py2.6.egg/babel/core.py", line 289, in parse raise UnknownLocaleError(input_id) babel.core.UnknownLocaleError: unknown locale 'zh_CN'
Running the tests cases with Python 2.6, including functional test cases, results in:
Doctest: trac.test.Mock ... ok ====================================================================== ERROR: test_i18n_date_hint (trac.util.tests.datefmt.I18nDateFormatTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/user/Workspace/t11257/teo-rjollos.git/trac/util/tests/datefmt.py", line 830, in test_i18n_date_hint zh_CN = Locale.parse('zh_CN') File "/home/user/Workspace/t11257/lib/python2.6/site-packages/Babel-1.2-py2.6.egg/babel/core.py", line 289, in parse raise UnknownLocaleError(input_id) UnknownLocaleError: unknown locale 'zh_CN' <-- 5 more failures due to unknown locale 'zh_CN' --> ====================================================================== FAIL: test_format_compatibility (trac.util.tests.datefmt.I18nDateFormatTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/user/Workspace/t11257/teo-rjollos.git/trac/util/tests/datefmt.py", line 1026, in test_format_compatibility datefmt.format_datetime(t, '%x %X', tz, en_US)) AssertionError: 'Aug 28, 2010 1:45:56 PM' != u'Aug 28, 2010, 1:45:56 PM' ====================================================================== FAIL: test_i18n_format_datetime (trac.util.tests.datefmt.I18nDateFormatTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/user/Workspace/t11257/teo-rjollos.git/trac/util/tests/datefmt.py", line 739, in test_i18n_format_datetime locale=en_US)) AssertionError: 'Aug 28, 2010 1:45:56 PM' != u'Aug 28, 2010, 1:45:56 PM' ---------------------------------------------------------------------- Ran 1346 tests in 204.396s FAILED (failures=2, errors=8)
Note:
See TracTickets
for help on using tickets.