Ticket #13810 (new Bug)
Impossible to translate the "Welcome Plone" page
Reported by: | tonim | Owned by: | vincentfretin |
---|---|---|---|
Priority: | minor | Milestone: | 4.x |
Component: | Internationalization | Version: | 4.3 |
Keywords: | Cc: |
Description
I have Plone 4.3.2 plus plone.multilingual 1.2.1 plus plone.app.multilingual 1.2.1 plus plone.multilingualbehavior 1.2. I have three languages configured, and when I want to translate the "Welcome Plone" page to one of these, I get this traceback:
2013-11-29 02:17:33 ERROR Zope.SiteErrorLog 1385687853.120.471971837745 http://localhost:9582/04/mnt/Plone/zh/portal_factory/Document/document.2013-11-29.8529949546/at_babel_edit Traceback (innermost last): Module ZPublisher.Publish, line 138, in publish Module ZPublisher.mapply, line 77, in mapply Module ZPublisher.Publish, line 48, in call_object Module Products.CMFPlone.FactoryTool, line 473, in __call__ Module ZPublisher.mapply, line 77, in mapply Module ZPublisher.Publish, line 48, in call_object Module Products.CMFFormController.FSControllerPageTemplate, line 91, in __call__ Module Products.CMFFormController.BaseControllerPageTemplate, line 31, in _call Module Shared.DC.Scripts.Bindings, line 322, in __call__ Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec Module Products.CMFCore.FSPageTemplate, line 237, in _exec Module Products.CMFCore.FSPageTemplate, line 177, in pt_render Module Products.PageTemplates.PageTemplate, line 79, in pt_render Module zope.pagetemplate.pagetemplate, line 132, in pt_render Module five.pt.engine, line 93, in __call__ Module z3c.pt.pagetemplate, line 163, in render Module chameleon.zpt.template, line 258, in render Module chameleon.template, line 188, in render Module chameleon.template, line 170, in render Module c975ffc5631bf0337e89c4663b714e02.py, line 1757, in render Module c975ffc5631bf0337e89c4663b714e02.py, line 1574, in render_master Module d6abcf840eff5faf0124fc219cc24eff.py, line 1392, in render_master Module d6abcf840eff5faf0124fc219cc24eff.py, line 612, in render_content Module c975ffc5631bf0337e89c4663b714e02.py, line 1562, in __fill_main Module c975ffc5631bf0337e89c4663b714e02.py, line 599, in render_main Module five.pt.expressions, line 141, in __call__ Module Products.PageTemplates.Expressions, line 117, in render Module plone.app.multilingual.browser.utils, line 138, in current_language_name AttributeError: 'NoneType' object has no attribute 'get' - Expression: "pamutils/current_language_name" - Filename: ... tilingual/skins/archetypesmultilingual/at_babel_edit.cpt - Location: (line 129: col 73) - Source: ... " tal:content="pamutils/current_language_name" tal:omit-tag= ... ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - Arguments: repeat: {...} (0) template: <ImplicitAcquisitionWrapper at_babel_edit at 0x108a4b40> modules: <instance - at 0x1b4a7a0> here: <ImplicitAcquisitionWrapper document.2013-11-29.8529949546 at 0x108a4f50> user: <ImplicitAcquisitionWrapper - at 0x108a4cd0> nothing: <NoneType - at 0x834d20> container: <ImplicitAcquisitionWrapper document.2013-11-29.8529949546 at 0x108a4f50> default: <object - at 0x13bc4f0> request: <instance - at 0xf7149e0> wrapped_repeat: <SafeMapping - at 0xd2f1d08> traverse_subpath: <list - at 0xfa78ef0> loop: {...} (3) context: <ImplicitAcquisitionWrapper document.2013-11-29.8529949546 at 0x108a4f50> translate: <function translate at 0x10879e60> root: <ImplicitAcquisitionWrapper Zope at 0x104a6190> options: {...} (2) target_language: <NoneType - at 0x834d20>
Nevermind that this mentions Chinese, I get the same error for German.
Change History
comment:2 Changed 2 years ago by tonim
The problem seems to occur only if I check "Create content initially as neutral language." in the portal_languages tool in the ZMI.
comment:3 Changed 20 months ago by cwainwright
- Owner set to vincentfretin
- Component changed from Unknown to Internationalization
comment:4 Changed 11 months ago by frisi
in my case, setting "create content initially as neutral language" to false (which seems to be the default anyway) did not help. i reported https://github.com/plone/archetypes.multilingual/issues/13 (which might be related to this issue)
For good measure, here is the attempt to translate to German: