gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] GNUmed i18n, user interface language setting


From: Sebastian Hilbert
Subject: Re: [Gnumed-devel] GNUmed i18n, user interface language setting
Date: Thu, 28 Jan 2010 16:44:48 +0100
User-agent: KMail/1.12.4 (Linux/2.6.31.8-0.1-default; KDE/4.3.4; i686; ; )

Am Donnerstag 28 Januar 2010 16:23:14 schrieb Karsten Hilbert:
> On Thu, Jan 28, 2010 at 03:35:01PM +0100, Hilbert, Sebastian wrote:
> > I was contacted off list on how to change the language in the GNUmed GUI.
> 
> There is no way *in* the GUI, only *of* the GUI.
Right.

> 
> > GNUmed bails out when I call
> >
> > export LANG=de and call gnumed from the shell
> 
> In fact, no, it is Python itself which bails out:
> >   File "/usr/lib/python2.6/site-packages/Gnumed/wxpython/gmGuiMain.py",
> > line 36, in <module>
> >     import wx
> >   File
> > "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/__init__.py",
> > line 45, in <module>
> >     from wx._core import *
> >   File
> > "/usr/lib/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line
> > 14530, in <module>
> >     default = locale.getpreferredencoding()
> >   File "/usr/lib/python2.6/locale.py", line 549, in getpreferredencoding
> >     setlocale(LC_CTYPE, "")
> >   File "/usr/lib/python2.6/locale.py", line 513, in setlocale
> >     return _setlocale(category, locale)
> > locale.Error: unsupported locale setting
> 
> "de" simply is not a valid locale definition.
>
Agreed. The fact remains that when I use LANG=es it does not work because of 
python. When I use LANG=es_ES it does not work because there is not gnumed.mo 
located in es_ES/LC_messages. THere is one in es/LC_messages which seems to be 
ignored.

How can I solve this ?

Sebastian
 
> > If I am right (and this is the case on my system) GNUmed starts up only
> > when supplying LANG=es_ES
> 
> Can you be more specific on this ?  Apparently it also
> starts with LANG=de_DE.
> 
> > but there is only a gnumed.mo in 'es'. There is no such
> > file in /usr/share/locale/es_ES
> 
> GNUmed itself will break down the locale definition to try
> to find a transalation catalog:
> 
>       es_ES.UTF8 -> es_ES -> es
> 
> Whichever is found (and returns a change when translating
> the sentinel string) is going to be used.
> 
> Karsten
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]