You are not logged in.
I just upgraded to Sonata 1.2.3, and it fails to load:
[stijn@hephaistos ~]$ sonata
Traceback (most recent call last):
File "/usr/bin/sonata", line 50, in <module>
app = sonata.Base()
File "/usr/lib/python2.5/site-packages/sonata.py", line 174, in __init__
gettext.install('sonata', '/usr/share/locale', unicode=1)
File "/usr/lib/python2.5/gettext.py", line 493, in install
t = translation(domain, localedir, fallback=True, codeset=codeset)
File "/usr/lib/python2.5/gettext.py", line 478, in translation
t = _translations.setdefault(key, class_(open(mofile, 'rb')))
File "/usr/lib/python2.5/gettext.py", line 180, in __init__
self._parse(fp)
File "/usr/lib/python2.5/gettext.py", line 315, in _parse
self.plural = c2py(plural)
File "/usr/lib/python2.5/gettext.py", line 93, in c2py
raise ValueError, 'plural forms expression could be dangerous'
ValueError: plural forms expression could be dangerous
Haven't tried to rebuild yet (since last python upgrade is from July 27th on this box, running current), I was wondering if other people experienced similar behaviour?
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
That's some sort of gettext translation error. What locale are you using?
You can probably run sonata successfully for the time being with "LC_ALL=en_US.utf8 sonata" if you have that locale built.
Last edited by stonecrest (2007-08-27 15:38:11)
I am a gated community.
Offline
I am using nl_BE.utf8
[stijn@hephaistos sonata]$ locale | grep LANG
LANG=nl_BE.utf8
I read in the Sonata changelog they had a Dutch translation now, maybe that's why it borks (trying to use Dutch?). I'll see if i can get it to work if i generate the general English locale, although that is of course not my preferred solution .
Edit: it works that way, I do have to specify the locale as you said though. Is there a way to fix it (I suppose the error is within Sonata?). If i can help debugging, let me know .
Last edited by B (2007-08-28 13:57:58)
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
The error is actually in the po file. It's probably an easy fix, I'll look at it tonight.
I am a gated community.
Offline
Thanks .
Really love Sonata btw .
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
I don't know if my quick one-line fix was "proper", but that locale seems to work now in svn. And thanks for the kind words
I am a gated community.
Offline
Thanks man . Sonata SVN works indeed.
Btw... You should put a 'donate' part on your website . Can't find it anywhere .
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline