[Grok-dev] Internationalisation, is the howto current?

Sebastian Ware sebastian at urbantalk.se
Thu Mar 26 14:18:57 EDT 2009


I think I am making progress, because at least I am getting an error  
now... :p somthing seems to be missing

I found a similar problem here, but it related to Five a while ago:
https://lists.infrae.com/pipermail/silva-dev/2005q4/001662.html

Traceback (most recent call last):
   File "/Users/jhsware/groksandbox/GuldFimpen/parts/app/runzope",  
line 126, in ?
     zope.app.twisted.main.main()
   File "/Users/jhsware/groksandbox/eggs/zope.app.twisted-3.4.1- 
py2.4.egg/zope/app/twisted/main.py", line 74, in main
     service = setup(load_options(args))
   File "/Users/jhsware/groksandbox/eggs/zope.app.twisted-3.4.1- 
py2.4.egg/zope/app/twisted/main.py", line 145, in setup
     zope.app.appsetup.config(options.site_definition,  
features=features)
   File "/Users/jhsware/groksandbox/eggs/zope.app.appsetup-3.4.1- 
py2.4.egg/zope/app/appsetup/appsetup.py", line 111, in config
     context = xmlconfig.file(file, context=context, execute=execute)
   File "/Users/jhsware/groksandbox/eggs/tmp0uWzV7/ 
zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py",  
line 610, in file
   File "/Users/jhsware/groksandbox/eggs/tmp0uWzV7/ 
zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py",  
line 546, in include
   File "/Users/jhsware/groksandbox/eggs/tmp0uWzV7/ 
zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py",  
line 378, in processxmlfile
   File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 107,  
in parse
     xmlreader.IncrementalParser.parse(self, source)
   File "/usr/local/lib/python2.4/xml/sax/xmlreader.py", line 123, in  
parse
     self.feed(buffer)
   File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 207,  
in feed
     self._parser.Parse(data, isFinal)
   File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 348,  
in end_element_ns
     self._cont_handler.endElementNS(pair, None)
   File "/Users/jhsware/groksandbox/eggs/tmp0uWzV7/ 
zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py",  
line 357, in endElementNS
   File "/Users/jhsware/groksandbox/eggs/tmp0uWzV7/ 
zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", line  
542, in end
   File "/Users/jhsware/groksandbox/eggs/tmp0uWzV7/ 
zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", line  
690, in finish
   File "/Users/jhsware/groksandbox/eggs/tmp0uWzV7/ 
zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py",  
line 546, in include
   File "/Users/jhsware/groksandbox/eggs/tmp0uWzV7/ 
zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py",  
line 378, in processxmlfile
   File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 107,  
in parse
     xmlreader.IncrementalParser.parse(self, source)
   File "/usr/local/lib/python2.4/xml/sax/xmlreader.py", line 123, in  
parse
     self.feed(buffer)
   File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 207,  
in feed
     self._parser.Parse(data, isFinal)
   File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 337,  
in start_element_ns
     AttributesNSImpl(newattrs, qnames))
   File "/Users/jhsware/groksandbox/eggs/tmp0uWzV7/ 
zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py",  
line 230, in startElementNS
   File "/Users/jhsware/groksandbox/eggs/tmp0uWzV7/ 
zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", line  
539, in begin
   File "/Users/jhsware/groksandbox/eggs/tmp0uWzV7/ 
zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", line  
840, in contained
   File "/Users/jhsware/groksandbox/eggs/tmp0uWzV7/ 
zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", line  
708, in contained
   File "/Users/jhsware/groksandbox/eggs/tmp0uWzV7/ 
zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", line  
485, in factory
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/Users/ 
jhsware/groksandbox/GuldFimpen/parts/app/site.zcml", line 4.0-4.32
     ZopeXMLConfigurationError: File "/Users/jhsware/groksandbox/ 
GuldFimpen/src/guldfimpen/configure.zcml", line 5.2
     ConfigurationError: ('Unknown directive', u'http://namespaces.zope.org/i18n' 
, u'registerTranslations')

Mvh Sebastian

26 mar 2009 kl. 18.32 skrev Sebastian Ware:

> I have found several potential sources for error that I will
> investigate:
>
> *-the locale directory should probably be in Project/src/project/
> locale not Project/locale which is how I interpreted the howto
> *-dito the configure.zcml to edit is the one in Project/src/project
> not Project/parts/i18n
> -I might have corrupted my project when fiddling
>
> * This is a bit ambiguous in the howto. Maybe it should be more
> explicit.
>
> Mvh Sebastian
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev



More information about the Grok-dev mailing list