Comment 12 for bug 365477

Revision history for this message
Bertrand Rousseau (bertrand-rousseau) wrote : Re: [Bug 365477] Re: Crashes on startup

On my computer, LANGUAGE is empty. By setting $LANGUAGE to your value,
I could reproduce the bug.

Those lines are responsible:

if lang_in_env:
     languages_used.append(lang_in_env.split())

The languages list is inserted in the list whereas it should be extended.

It is fixed and commited in r245. Could you test it, please?

2009/4/27 Børre Gaup <email address hidden>:
> ~ $ echo $LANGUAGE
> se_NO:nb_NO:nb:no_NO:no:nn_NO:nn
> ~ $ echo $LC_ALL
> se_NO.UTF-8
> ~ $ echo $LC_MESSAGES
>
> ~ $ echo $LANG
> se_NO.UTF-8
>
> --
> Crashes on startup
> https://bugs.launchpad.net/bugs/365477
> You received this bug notification because you are a member of Gtg
> developers, which is the registrant for Getting Things GNOME!.
>
> Status in Getting Things GNOME!: New
> Status in PyRoom: distraction-free writing: New
>
> Bug description:
> When I start up gtg (from the commandline), I get this message:
> gtg
> Traceback (most recent call last):
>  File "/usr/bin/gtg", line 30, in <module>
>    import sys, GTG.gtg
>  File "/usr/lib/python2.6/dist-packages/GTG/__init__.py", line 78, in <module>
>    fallback=True)
>  File "/usr/lib/python2.6/gettext.py", line 480, in translation
>    mofiles = find(domain, localedir, languages, all=1)
>  File "/usr/lib/python2.6/gettext.py", line 437, in find
>    for nelang in _expand_lang(lang):
>  File "/usr/lib/python2.6/gettext.py", line 132, in _expand_lang
>    locale = normalize(locale)
>  File "/usr/lib/python2.6/locale.py", line 333, in normalize
>    fullname = localename.lower()
> AttributeError: 'list' object has no attribute 'lower'
>
> This also happens when I try to start it like this: LC_ALL=C gtg
>

--
Bertrand Rousseau
Place communale 1, 1450 Chastre, Belgium
e-mail : <email address hidden>
tel : +32 485 96 69 86