#694: Translations scaffolding ------------------------+---------------------- Reporter: olemis | Owner: olemis Type: task | Status: assigned Priority: minor | Milestone: Component: trac core | Version: 0.7.0 Resolution: | Keywords: i18n ------------------------+----------------------
Comment (by jun66j5): > I have trouble extracting the messages. Does that ring a bell to someone ? > {{{#!python > ... > SyntaxError: encoding declaration in Unicode string > }}} It seems that the issue occurs by Babel 1.x. I think you should downgrade to Babel 0.9.6 instead because bundled Trac still does not support Babel 1.x. Anyway, the issue would be fixed by the following patch. I'll push to 1.0-stable and trunk branches of Trac later. {{{#!diff diff --git a/trac/dist.py b/trac/dist.py index 779da5c..6216df5 100644 --- a/trac/dist.py +++ b/trac/dist.py @@ -85,8 +85,8 @@ try: in_def = in_translator_comments = False comment_tag = None - encoding = parse_encoding(fileobj) \ - or options.get('encoding', 'iso-8859-1') + encoding = str(parse_encoding(fileobj) or + options.get('encoding', 'iso-8859-1')) kwargs_maps = _DEFAULT_KWARGS_MAPS.copy() if 'kwargs_maps' in options: kwargs_maps.update(options['kwargs_maps']) }}} -- Ticket URL: <https://issues.apache.org/bloodhound/ticket/694#comment:50> Apache Bloodhound <https://issues.apache.org/bloodhound/> The Apache Bloodhound issue tracker