[Zope] locale: unknown locale: de_DE@euro

Florian Konnertz florian.konnertz@web.de
Sun, 16 Feb 2003 06:33:07 +0100


Hello,

I encountered a locale issue while installing ZWiki-0.15 on my box here 
in germany (Zope-2.6.1, Python-2.1.3)

2003-02-14T10:57:43 ERROR(200) Zope Could not import Products.ZWiki
Traceback (innermost last):
   File /usr/local/Zope-2.6.1-src/lib/python/OFS/Application.py, line 
541, in import_product
   File /usr/local/zope/lib/python/Products/ZWiki/__init__.py, line 12, in ?
   File /usr/local/zope/lib/python/Products/ZWiki/ZWikiPage.py, line 45, 
in ?
   File /usr/local/zope/lib/python/Products/ZWiki/Regexps.py, line 68, in ?
   File /usr/local/lib/python2.1/locale.py, line 339, in getdefaultlocale
   File /usr/local/lib/python2.1/locale.py, line 272, in _parse_localename
ValueError: unknown locale: de_DE@euro


This is the opportunity for me to learn the localization stuff... :-)


/usr/lib/locale/de_DE@euro/ exists, but of course has to be accessed 
with de_DE\@euro in the bash (i guess this is not the problem, because 
many of the files have an @ in their name.)


I tried the following:


 >>> import locale
 >>> locale._print_locale()
Locale defaults as determined by getdefaultlocale():
------------------------------------------------------------------------
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "/usr/local/lib/python2.1/locale.py", line 678, in _print_locale
     lang, enc = getdefaultlocale()
   File "/usr/local/lib/python2.1/locale.py", line 339, in getdefaultlocale
     return _parse_localename(localename)
   File "/usr/local/lib/python2.1/locale.py", line 272, in _parse_localename
     raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: de_DE@euro


 >>> locale._parse_localename('de_DE@euro')
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "/usr/local/lib/python2.1/locale.py", line 272, in _parse_localename
     raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: de_DE@euro


Further investigation drove me nuts ( _parse_localename, normalize etc.) 
so please give me advice what to do.

And a link to a localization intro is appreciated too.


Regards,
Florian




-- 
Florian Konnertz   ---   http://www.florian-konnertz.de	
http://openspirit.homelinux.net/noowiki/FrontPage
Improved ZWiki about all topics, especially consciousness research
and wisdom traditions