> Here is some information that might be useful to the Gnumed coders.
> I am running Suse 9.2 which has been out for almost 6 months now.
> It ships with wxGTK 2.5.2.8 (unicode compiled) as well as python-wxGTK 2.5.2.8
Trying to set up the menu with a translation for "About" (= "�ber"):
> [PANIC] (wxpython/gnumed.py:[EMAIL PROTECTED]): File
> "/usr/local/lib/python2.3/site-packages/Gnumed/wxpython/gmGuiMain.py", line
> 307, in __setup_main_menu<#10-0x0A-lf> self.menu_help.Append(ID_ABOUT,
> _("About GnuMed"), "")<#10-0x0A-lf>
Results in a unicode error:
> [PANIC] (wxpython/gnumed.py:[EMAIL PROTECTED]): File
> "/usr/lib/python2.3/site-packages/wx/_core.py", line 7792, in
> Append<#10-0x0A-lf> return _core_.Menu_Append(*args, **kwargs)<#10-0x0A-lf>
> [PANIC] (wxpython/gnumed.py:[EMAIL PROTECTED]): UnicodeDecodeError: 'ascii'
> codec can't decode byte 0xdc in position 0: ordinal not in
> range(128)<#10-0x0A-lf>
Apparently, standard Python gettext() does not return valid
Unicode. We may need to tell gettext() to return unicode
strings. Time to dive into Python docs...
Hm, the GNU gettext API (not the class based one) doesn't seem
to support unicode. We may need to switch to the class based
API one day after 0.1 ...
Morale: don't use unicode-compiled wxPython for now.
Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
_______________________________________________
Gnumed-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnumed-devel