Michael P JasonSmith wrote:
>The GnomeDateEdit widget insists in displaying the dates in mm/dd/yyyy
>format, when I want it in dd/mm/yyyy format. I carefully do a
> import locale
> locale.setlocale(locale.LC_ALL, "")
>at the start of my program (before the import of gnome) and LC_ALL is
>set to en_NZ (en_GB and en_AU have also been tried with no success).
>Any ideas how I get GnomeDateEdit to display my dates in dd/mm/yyyy
>format using Python 2.1 and PyGNOME 1.4.1?
>
This is not a pygtk bug, and most likely won't be fixed in
gnome-libs-1.x. The offending lines of code are in
gnome-libs/libgnomeui/gnome-dateedit.c:
/* FIXME: internationalize this - strftime()*/
g_snprintf (buffer, sizeof(buffer), "%d/%d/%d", month + 1, day,
year);
In the 2.0 tree, it uses the strftime "%x" format string, so it
internationalises correctly (ie. doesn't use silly date order in en_AU).
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk