Hi, do you have included the zcml for i18n. You can look in the configure.zcml of your packages.
It should have this: <include package="zope.i18n"/> HTH Christian > > Bluebream 1.0b4 > Please help to fix > > target_language is None > zope.i18n.translationdomain:73 in translate > > if i patch library and set target_language to 'en' all work > i am dont understand why language not detected > > not simple for newbie > > Thank you. > > URL: http://127.0.0.1:8080/%40%40add_recipe > File '/usr/lib/python2.7/site-packages/paste/evalexception/middleware.py', > line 306 in respond > app_iter = self.application(environ, detect_start_response) > File '/usr/lib/python2.7/site-packages/paste/translogger.py', line 68 in > __call__ > return self.application(environ, replacement_start_response) > File > '/mnt/1/daiver/src/bb/worldcookery/eggs/zope.app.wsgi-3.9.2-py2.7.egg/zope/app/wsgi/__init__.py', > line 59 in __call__ > request = publish(request, handle_errors=handle_errors) > File > '/mnt/1/daiver/src/bb/worldcookery/eggs/zope.publisher-3.12.4-py2.7.egg/zope/publisher/publish.py', > line 132 in publish > result = publication.callObject(request, obj) > File > '/mnt/1/daiver/src/bb/worldcookery/eggs/zope.app.publication-3.11.1-py2.7.egg/zope/app/publication/zopepublication.py', > line 205 in callObject > return mapply(ob, request.getPositionalArguments(), request) > <security proxied zope.browserpage.metaconfigure.RecipeAddForm instance at > 0x7febbc035590> > File > '/mnt/1/daiver/src/bb/worldcookery/eggs/zope.publisher-3.12.4-py2.7.egg/zope/publisher/publish.py', > line 107 in mapply > return debug_call(obj, args) > File > '/mnt/1/daiver/src/bb/worldcookery/eggs/zope.publisher-3.12.4-py2.7.egg/zope/publisher/publish.py', > line 113 in debug_call > return obj(*args) > File > '/mnt/1/daiver/src/bb/worldcookery/eggs/zope.formlib-4.0.4-py2.7.egg/zope/formlib/form.py', > line 800 in __call__ > result = self.render() > File > '/mnt/1/daiver/src/bb/worldcookery/eggs/zope.formlib-4.0.4-py2.7.egg/zope/formlib/form.py', > line 920 in render > return super(AddFormBase, self).render() > File > '/mnt/1/daiver/src/bb/worldcookery/eggs/zope.formlib-4.0.4-py2.7.egg/zope/formlib/form.py', > line 790 in render > self.form_result = self.template() > File > '/mnt/1/daiver/src/bb/worldcookery/eggs/zope.browserpage-3.12.2-py2.7.egg/zope/browserpage/viewpagetemplatefile.py', > line 83 in __call__ > return self.im_func(im_self, *args, **kw) > File > '/mnt/1/daiver/src/bb/worldcookery/eggs/zope.browserpage-3.12.2-py2.7.egg/zope/browserpage/viewpagetemplatefile.py', > line 51 in __call__ > sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0), > File > '/mnt/1/daiver/src/bb/worldcookery/eggs/zope.pagetemplate-3.5.2-py2.7.egg/zope/pagetemplate/pagetemplate.py', > line 113 in pt_render > strictinsert=0, sourceAnnotations=sourceAnnotations)() > File > '/mnt/1/daiver/src/bb/worldcookery/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py', > line 271 in __call__ > self.interpret(self.program) > File > '/mnt/1/daiver/src/bb/worldcookery/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py', > line 343 in interpret > handlers[opcode](self, args) > File > '/mnt/1/daiver/src/bb/worldcookery/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py', > line 888 in do_useMacro > self.interpret(macro) > File > '/mnt/1/daiver/src/bb/worldcookery/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py', > line 343 in interpret > handlers[opcode](self, args) > File > '/mnt/1/daiver/src/bb/worldcookery/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py', > line 946 in do_defineSlot > self.interpret(slot) > File > '/mnt/1/daiver/src/bb/worldcookery/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py', > line 343 in interpret > handlers[opcode](self, args) > File > '/mnt/1/daiver/src/bb/worldcookery/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py', > line 628 in do_insertText_tal > text = self.translate(text) > File > '/mnt/1/daiver/src/bb/worldcookery/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py', > line 838 in translate > i18ndict, default=default) > File > '/mnt/1/daiver/src/bb/worldcookery/eggs/zope.pagetemplate-3.5.2-py2.7.egg/zope/pagetemplate/engine.py', > line 107 in translate > context=self.request, default=default) > File > '/mnt/1/daiver/src/bb/worldcookery/eggs/zope.i18n-3.7.4-py2.7.egg/zope/i18n/__init__.py', > line 126 in translate > return util.translate(msgid, mapping, context, target_language, default) > File > '/mnt/1/daiver/src/bb/worldcookery/eggs/zope.i18n-3.7.4-py2.7.egg/zope/i18n/translationdomain.py', > line 73 in translate > negotiator = zope.component.getUtility(INegotiator) > File > '/mnt/1/daiver/src/bb/worldcookery/eggs/zope.component-3.9.5-py2.7.egg/zope/component/_api.py', > line 169 in getUtility > raise ComponentLookupError(interface, name) > ComponentLookupError: (<InterfaceClass zope.i18n.interfaces.INegotiator>, > '') > > > CGI Variables > ------------- > CONTENT_LENGTH: '0' > HTTP_ACCEPT: 'text/html, application/xml;q=0.9, application/xhtml+xml, > image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1' > HTTP_ACCEPT_CHARSET: 'windows-1251, utf-8, utf-16, iso-8859-1;q=0.6, > *;q=0.1' > HTTP_ACCEPT_ENCODING: 'deflate, gzip, x-gzip, identity, *;q=0' > HTTP_ACCEPT_LANGUAGE: 'en,ru;q=0.9,ru-RU;q=0.8' > HTTP_AUTHORIZATION: 'Basic YWRtaW46YWRtaW4=' > HTTP_CACHE_CONTROL: 'no-cache' > HTTP_CONNECTION: 'Keep-Alive, TE' > HTTP_HOST: '127.0.0.1:8080' > HTTP_PRAGMA: 'no-cache' > HTTP_REFERER: 'http://127.0.0.1:8080/' > HTTP_TE: 'deflate, gzip, chunked, identity, trailers' > HTTP_USER_AGENT: 'Opera/9.80 (X11; Linux x86_64; U; ru) Presto/2.7.62 > Version/11.00' > PATH_INFO: '/@@add_recipe' > REMOTE_ADDR: '127.0.0.1' > REQUEST_METHOD: 'GET' > SERVER_NAME: '127.0.0.1' > SERVER_PORT: '8080' > SERVER_PROTOCOL: 'HTTP/1.1' > > > WSGI Variables > -------------- > application:<paste.translogger.TransLogger object at 0x2b5b250> > paste.evalexception:<z3c.evalexception.ZopeEvalException object at > 0x2b5be90> > paste.evalexception.debug_count: 1295192608 > paste.httpserver.thread_pool:<paste.httpserver.ThreadPool object at > 0x1688ed0> > paste.throw_errors: True > wsgi process: 'Multithreaded' > wsgi.handleErrors: False > _______________________________________________ bluebream mailing list [email protected] https://mail.zope.org/mailman/listinfo/bluebream
