Please help to fix i18n issues in Plone 5
Vincent Fretin <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <CAD=kyd8=TSqjWJqY0WcV9U+9dKVuH8PhNQgNc9FvsfFMduLMAw@mail.gmail.com> |
Hi,
I need help to fix the following errors, or I won't be able to extract
messages for translations.
If some of you can sprint on this, this would be cool.
There was an error processing
Products.CMFPlone/Products/CMFPlone/browser/templates/plone-upgrade.pt
Traceback (most recent call last):
File
"/home/vincentfretin/.buildout/eggs/i18ndude-3.3.5-py2.7.egg/i18ndude/extract.py",
line 505, in tal_strings
p.parseFile(filename)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 122, in parseFile
self.parseString(data)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 128, in parseString
self.feed(data)
File "/usr/lib/python2.7/HTMLParser.py", line 114, in feed
self.goahead(0)
File "/usr/lib/python2.7/HTMLParser.py", line 158, in goahead
k = self.parse_starttag(i)
File "/usr/lib/python2.7/HTMLParser.py", line 324, in parse_starttag
self.handle_starttag(tag, attrs)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 140, in handle_starttag
self.close_para_tags(tag)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 206, in close_para_tags
raise OpenTagError(self.tagstack, tag, self.getpos())
OpenTagError: Tag <div> is not allowed in <h1>, at line 35, column 5
There was an error processing
Products.CMFPlone/Products/CMFPlone/browser/templates/main_template.pt
Traceback (most recent call last):
File
"/home/vincentfretin/.buildout/eggs/i18ndude-3.3.5-py2.7.egg/i18ndude/extract.py",
line 505, in tal_strings
p.parseFile(filename)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 122, in parseFile
self.parseString(data)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 128, in parseString
self.feed(data)
File "/usr/lib/python2.7/HTMLParser.py", line 114, in feed
self.goahead(0)
File "/usr/lib/python2.7/HTMLParser.py", line 158, in goahead
k = self.parse_starttag(i)
File "/usr/lib/python2.7/HTMLParser.py", line 324, in parse_starttag
self.handle_starttag(tag, attrs)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 156, in handle_starttag
self.getpos())
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talgenerator.py",
line 676, in emitStartElement
self.xml)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/taldefs.py",
line 122, in parseAttributeReplacements
raise TALError("Bad syntax in attributes: %r" % part)
TALError: Bad syntax in attributes: '\n
python:plone_view.patterns_settings()', in file
Products.CMFPlone/Products/CMFPlone/browser/templates/main_template.pt
There was an error processing
Products.CMFPlone/Products/CMFPlone/skins/plone_templates/
default_error_message.pt
Traceback (most recent call last):
File
"/home/vincentfretin/.buildout/eggs/i18ndude-3.3.5-py2.7.egg/i18ndude/extract.py",
line 505, in tal_strings
p.parseFile(filename)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 122, in parseFile
self.parseString(data)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 128, in parseString
self.feed(data)
File "/usr/lib/python2.7/HTMLParser.py", line 114, in feed
self.goahead(0)
File "/usr/lib/python2.7/HTMLParser.py", line 158, in goahead
k = self.parse_starttag(i)
File "/usr/lib/python2.7/HTMLParser.py", line 324, in parse_starttag
self.handle_starttag(tag, attrs)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 143, in handle_starttag
= self.process_ns(tag, attrs)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 303, in process_ns
repr(keybase), self.getpos())
TALError: duplicate TAL attribute 'attributes', at line 80, column 33, in
file Products.CMFPlone/Products/CMFPlone/skins/plone_templates/
default_error_message.pt
There was an error processing plone.app.controlpanel/plone/app/controlpanel/
qi.pt
Traceback (most recent call last):
File
"/home/vincentfretin/.buildout/eggs/i18ndude-3.3.5-py2.7.egg/i18ndude/extract.py",
line 505, in tal_strings
p.parseFile(filename)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 122, in parseFile
self.parseString(data)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 128, in parseString
self.feed(data)
File "/usr/lib/python2.7/HTMLParser.py", line 114, in feed
self.goahead(0)
File "/usr/lib/python2.7/HTMLParser.py", line 160, in goahead
k = self.parse_endtag(i)
File "/usr/lib/python2.7/HTMLParser.py", line 398, in parse_endtag
self.handle_endtag(elem)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 182, in handle_endtag
self.close_enclosed_tags(tag)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 216, in close_enclosed_tags
self.implied_endtag(self.tagstack[-1], 1)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 230, in implied_endtag
position=self.getpos())
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talgenerator.py",
line 755, in emitEndElement
(what, name, name), self.position)
TALError: TAL attributes on <div> require explicit </div>, at line 22,
column 5, in file plone.app.controlpanel/plone/app/controlpanel/qi.pt
Warning: msgid 'label_required' in
plone.app.controlpanel/plone/app/controlpanel/maintenance.pt:(115, 36)
already exists with a different default (bad: , should be: (Required))
The references for the existent value are:
Products.CMFPlone/Products/CMFPlone/skins/plone_templates/test_rendering.pt:(313,
12)
Products.CMFPlone/Products/CMFPlone/skins/plone_templates/test_rendering.pt:(323,
12)
Products.CMFPlone/Products/CMFPlone/skins/plone_templates/test_rendering.pt:(334,
12)
Products.CMFPlone/Products/CMFPlone/skins/plone_templates/test_rendering.pt:(344,
12)
Products.CMFPlone/Products/CMFPlone/skins/plone_templates/test_rendering.pt:(355,
12)
Products.CMFPlone/Products/CMFPlone/skins/plone_templates/test_rendering.pt:(368,
12)
Products.CMFPlone/Products/CMFPlone/skins/plone_templates/test_rendering.pt:(381,
12)
Products.CMFPlone/Products/CMFPlone/skins/plone_templates/test_rendering.pt:(408,
12)
plone.app.contentrules/plone/app/contentrules/actions/templates/mail.pt:(95,
14)
plone.app.controlpanel/plone/app/controlpanel/usergroups_groupdetails.pt:(63,
24)
There was an error processing plone.app.form/plone/app/form/subpageform.pt
Traceback (most recent call last):
File
"/home/vincentfretin/.buildout/eggs/i18ndude-3.3.5-py2.7.egg/i18ndude/extract.py",
line 505, in tal_strings
p.parseFile(filename)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 122, in parseFile
self.parseString(data)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 128, in parseString
self.feed(data)
File "/usr/lib/python2.7/HTMLParser.py", line 114, in feed
self.goahead(0)
File "/usr/lib/python2.7/HTMLParser.py", line 160, in goahead
k = self.parse_endtag(i)
File "/usr/lib/python2.7/HTMLParser.py", line 398, in parse_endtag
self.handle_endtag(elem)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 182, in handle_endtag
self.close_enclosed_tags(tag)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 214, in close_enclosed_tags
raise NestingError(self.tagstack, tag, self.getpos())
NestingError: Open tags <div>, <div> do not match close tag </dl>, at line
12, column 5
There was an error processing plone.app.layout/plone/app/layout/viewlets/
anontools.pt
Traceback (most recent call last):
File
"/home/vincentfretin/.buildout/eggs/i18ndude-3.3.5-py2.7.egg/i18ndude/extract.py",
line 505, in tal_strings
p.parseFile(filename)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 122, in parseFile
self.parseString(data)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 128, in parseString
self.feed(data)
File "/usr/lib/python2.7/HTMLParser.py", line 114, in feed
self.goahead(0)
File "/usr/lib/python2.7/HTMLParser.py", line 158, in goahead
k = self.parse_starttag(i)
File "/usr/lib/python2.7/HTMLParser.py", line 324, in parse_starttag
self.handle_starttag(tag, attrs)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 156, in handle_starttag
self.getpos())
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talgenerator.py",
line 676, in emitStartElement
self.xml)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/taldefs.py",
line 122, in parseAttributeReplacements
raise TALError("Bad syntax in attributes: %r" % part)
TALError: Bad syntax in attributes: 'action', in file
plone.app.layout/plone/app/layout/viewlets/anontools.pt
There was an error processing plone.app.layout/plone/app/layout/viewlets/
personal_bar.pt
Traceback (most recent call last):
File
"/home/vincentfretin/.buildout/eggs/i18ndude-3.3.5-py2.7.egg/i18ndude/extract.py",
line 505, in tal_strings
p.parseFile(filename)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 122, in parseFile
self.parseString(data)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 128, in parseString
self.feed(data)
File "/usr/lib/python2.7/HTMLParser.py", line 114, in feed
self.goahead(0)
File "/usr/lib/python2.7/HTMLParser.py", line 158, in goahead
k = self.parse_starttag(i)
File "/usr/lib/python2.7/HTMLParser.py", line 324, in parse_starttag
self.handle_starttag(tag, attrs)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 156, in handle_starttag
self.getpos())
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talgenerator.py",
line 676, in emitStartElement
self.xml)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/taldefs.py",
line 122, in parseAttributeReplacements
raise TALError("Bad syntax in attributes: %r" % part)
TALError: Bad syntax in attributes: 'action', in file
plone.app.layout/plone/app/layout/viewlets/personal_bar.pt
There was an error processing
plone.app.linkintegrity/plone/app/linkintegrity/browser/confirmation.pt
Traceback (most recent call last):
File
"/home/vincentfretin/.buildout/eggs/i18ndude-3.3.5-py2.7.egg/i18ndude/extract.py",
line 505, in tal_strings
p.parseFile(filename)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 122, in parseFile
self.parseString(data)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 128, in parseString
self.feed(data)
File "/usr/lib/python2.7/HTMLParser.py", line 114, in feed
self.goahead(0)
File "/usr/lib/python2.7/HTMLParser.py", line 160, in goahead
k = self.parse_endtag(i)
File "/usr/lib/python2.7/HTMLParser.py", line 398, in parse_endtag
self.handle_endtag(elem)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 182, in handle_endtag
self.close_enclosed_tags(tag)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 214, in close_enclosed_tags
raise NestingError(self.tagstack, tag, self.getpos())
NestingError: Open tags <html>, <body>, <metal:main>, <article>, <div>,
<form>, <div>, <article> do not match close tag </p>, at line 66, column 21
There was an error processing
plone.app.portlets/plone/app/portlets/portlets/review.pt
Traceback (most recent call last):
File
"/home/vincentfretin/.buildout/eggs/i18ndude-3.3.5-py2.7.egg/i18ndude/extract.py",
line 505, in tal_strings
p.parseFile(filename)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 122, in parseFile
self.parseString(data)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 128, in parseString
self.feed(data)
File "/usr/lib/python2.7/HTMLParser.py", line 114, in feed
self.goahead(0)
File "/usr/lib/python2.7/HTMLParser.py", line 160, in goahead
k = self.parse_endtag(i)
File "/usr/lib/python2.7/HTMLParser.py", line 398, in parse_endtag
self.handle_endtag(elem)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 182, in handle_endtag
self.close_enclosed_tags(tag)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 214, in close_enclosed_tags
raise NestingError(self.tagstack, tag, self.getpos())
NestingError: Open tag <html> does not match close tag </section>, at line
42, column 3
There was an error processing
Products.CMFPlone/Products/CMFPlone/static/components/jqtree/examples/load_json_data.html
Traceback (most recent call last):
File
"/home/vincentfretin/.buildout/eggs/i18ndude-3.3.5-py2.7.egg/i18ndude/extract.py",
line 505, in tal_strings
p.parseFile(filename)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 122, in parseFile
self.parseString(data)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 128, in parseString
self.feed(data)
File "/usr/lib/python2.7/HTMLParser.py", line 114, in feed
self.goahead(0)
File "/usr/lib/python2.7/HTMLParser.py", line 158, in goahead
k = self.parse_starttag(i)
File "/usr/lib/python2.7/HTMLParser.py", line 324, in parse_starttag
self.handle_starttag(tag, attrs)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 140, in handle_starttag
self.close_para_tags(tag)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 206, in close_para_tags
raise OpenTagError(self.tagstack, tag, self.getpos())
OpenTagError: Tag <h3> is not allowed in <h3>, at line 37, column 13
For the following errors, you need to use the same default message or use a
different msgid (the string in i18n:translate) :
There was an error processing
Products.Archetypes/Products/Archetypes/skins/archetypes/jscalendar/index.html
Traceback (most recent call last):
File
"/home/vincentfretin/.buildout/eggs/i18ndude-3.3.5-py2.7.egg/i18ndude/extract.py",
line 505, in tal_strings
p.parseFile(filename)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 122, in parseFile
self.parseString(data)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 128, in parseString
self.feed(data)
File "/usr/lib/python2.7/HTMLParser.py", line 114, in feed
self.goahead(0)
File "/usr/lib/python2.7/HTMLParser.py", line 160, in goahead
k = self.parse_endtag(i)
File "/usr/lib/python2.7/HTMLParser.py", line 398, in parse_endtag
self.handle_endtag(elem)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 182, in handle_endtag
self.close_enclosed_tags(tag)
File
"/home/vincentfretin/.buildout/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/htmltalparser.py",
line 214, in close_enclosed_tags
raise NestingError(self.tagstack, tag, self.getpos())
NestingError: Open tags <html>, <body> do not match close tag </p>, at line
211, column 1
Warning: msgid 'Text' in
plone.app.contenttypes/plone/app/contenttypes/behaviors/richtext.py:17
already exists with a different default (bad: Text, should be: None)
The references for the existent value are:
plone.portlet.static/plone/portlet/static/static.py:35
Warning: msgid 'help_expiration_date' in
Products.Archetypes/Products/Archetypes/ExtensibleMetadata.py:154 already
exists with a different default (bad: The date when the item expires. This
will automatically make the item invisible for others at the given date. If
no date is chosen, it will never expire., should be: The date when the item
expires. This will automatically make the item invisible for others at the
given date.If no date is chosen, it will never expire.)
The references for the existent value are:
plone.app.content/plone/app/content/browser/content_status_history.py:26
Warning: msgid 'Image' in
plone.app.contenttypes/plone/app/contenttypes/profiles/default/types/Image.xml
already exists with a different default (bad: , should be: Image)
The references for the existent value are:
plone.app.contenttypes/plone/app/contenttypes/schema/image.xml
Warning: msgid 'Image' in
plone.app.contenttypes/plone/app/contenttypes/profiles/uninstall/types/Image.xml
already exists with a different default (bad: , should be: Image)
The references for the existent value are:
plone.app.contenttypes/plone/app/contenttypes/schema/image.xml
plone.app.contenttypes/plone/app/contenttypes/profiles/default/types/Image.xml
Warning: msgid 'label_advanced_search' in
Products.CMFPlone/Products/CMFPlone/skins/plone_scripts/livesearch_reply.py:99
already exists with a different default (bad: Advanced Search…,
should be: Advanced Search…)
The references for the existent value are:
plone.app.layout/plone/app/layout/viewlets/searchbox.pt:56
plone.app.portlets/plone/app/portlets/portlets/search.pt:51
Warning: msgid 'manage_portlets_link' in
plone.app.contentmenu/plone/app/contentmenu/menu.py:839 already exists with
a different default (bad: Manage Portlets, should be: Manage portlets)
The references for the existent value are:
plone.app.layout/plone/app/layout/viewlets/manage_portlets_fallback.pt:7
Warning: msgid 'help_expiration_date' in
Products.Archetypes/Products/Archetypes/ExtensibleMetadata.py:154
plone.app.content/plone/app/content/browser/content_status_history.py:26
already exists with a different default (bad: The date when the item
expires. This will automatically make the item invisible for others at the
given date.If no date is chosen, it will never expire., should be: The date
when the item expires. This will automatically make the item invisible for
others at the given date. If no date is chosen, it will never expire.)
The references for the existent value are:
plone.app.content/plone/app/content/browser/templates/
content_status_history.pt:251
Warning: msgid 'info_empty_dashboard' in
plone.app.layout/plone/app/layout/dashboard/dashboard.py:32 already exists
with a different default (bad: , should be: Your dashboard is currently
empty. Click the <em>edit</em> tab to assign some personal portlets.)
The references for the existent value are:
plone.app.theming/resources/theme/theme1/views/class-view.pt:62
Warning: msgid 'Image' in
plone.app.contenttypes/plone/app/contenttypes/schema/image.xml
plone.app.contenttypes/plone/app/contenttypes/profiles/default/types/Image.xml
plone.app.contenttypes/plone/app/contenttypes/profiles/uninstall/types/Image.xml
already exists with a different default (bad: Image, should be: )
The references for the existent value are:
plone.namedfile/plone/namedfile/editor.py:37
plone.namedfile/plone/namedfile/editor.py:70
Thanks to anyone fixing one of them
Vincent <http://www.ecreall.com>
------------------------------------------------------------------------------
_______________________________________________
Plone-developers mailing list
Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/plone-developers