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

From:

Sebastian Hilbert

Subject:

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

Date:

Thu, 28 Jan 2010 15:35:01 +0100

User-agent:

KMail/1.12.4 (Linux/2.6.31.8-0.1-default; KDE/4.3.4; i686; ; )

Hi all,
I was contacted off list on how to change the language in the GNUmed GUI. I
looked at
http://wiki.gnumed.de/bin/view/Gnumed/GnumedManual#AdministratorGuideInManual
and could not find it.
There is this page : http://wiki.gnumed.de/bin/view/Gnumed/FrontendI18N
but it seems not to be linked from anywhere.
Anyway I know that one can set it in a shell like this
export LANG=de_DE and call gnumed from that shell.
GNUmed bails out when I call
export LANG=de and call gnumed from the shell
/usr/lib/python2.6/site-packages/Gnumed/pycommon/gmTools.py:13:
DeprecationWarning: the MimeWriter module is deprecated; use the email package
instead
import urllib2 as wget, decimal, StringIO, MimeWriter, mimetypes, mimetools
,========================================================
| Unhandled exception caught !
| Type : <class 'locale.Error'>
| Value: unsupported locale setting
`========================================================
Traceback (most recent call last):
File "/usr/lib/python2.6/runpy.py", line 122, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.6/runpy.py", line 34, in _run_code
exec code in run_globals
File "/usr/lib/python2.6/site-packages/Gnumed/wxpython/gnumed.py", line 491,
in <module>
from Gnumed.wxpython import gmGuiMain
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
address@hidden:/usr/share/icons> export LANG=de_DE
address@hidden:/usr/share/icons> gnumed
/usr/lib/python2.6/site-packages/Gnumed/pycommon/gmTools.py:13:
DeprecationWarning: the MimeWriter module is deprecated; use the email package
instead
import urllib2 as wget, decimal, StringIO, MimeWriter, mimetypes, mimetools
OnInit returned false, exiting...
I had a look at
http://packages.debian.org/sid/all/gnumed-client/filelist
If I am right (and this is the case on my system) GNUmed starts up only when
supplying LANG=es_ES but there is only a gnumed.mo in 'es'. There is no such
file in /usr/share/locale/es_ES
Sebastian