Pere Pujal Carabantes wrote: >Hi! sorry if this is not the right list. If so, please tell me where can I post this > >I am doing a gnome app that parses a text file and puts its results on a GtkCtree and >GtkClist >I have this extrange behaviour in catalan, spanish or french locales were comma is >decimal separator: > >a float number with decimals is displayed as number comma decimals >a float number without decimals is displayed as number point 0 > >Am I doing something wrong? > > Which version of gnome-python and pygtk are you using? There are some bugs in previous 1.99.x releases of pygtk, where it was not setting NC_NUMERIC back to "C" after gtk_init().
Unfortunately, Python requires that the NC_NUMERIC i18n category is set to "C" which uses a '.' for the decimal point. This is a bit of a pain for localising GUI apps, but it is a bit difficult to fix. James. -- Email: [EMAIL PROTECTED] | Linux.conf.au 2003 Call for Papers out WWW: http://www.daa.com.au/~james/ | http://conf.linux.org.au/cfp.html _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
