GNOME Bugzilla – Bug 150567
Ability Monday to be the first day of the week
Last modified: 2004-12-22 21:47:04 UTC
It would be good the Properties dialog to have checkbox whether Monday to be the first day of the week instead of Sunday when showing calendar. It's natural to expect such option in any calendar. In cal(1), this option is -m.
What version of GNOME are you using? It should be automatically set to the right thing according to your locale. I think this was fixed in GTK+ 2.4
I'm using Debian Sarge. gnome-panel is 2.6.2-1. libgtk2.0-0 is 2.4.3-3. /etc/environment contains: LANG=bg_BG LC_MESSAGES=C Interestingly, cal(1) starts from Monday too, but month and week names are translated. That is, locale data is used. I'm wondering if bg locale has wrong information. Do you know how can I test it? And isn't 12/24 hour format part of the locale too? If so, then why there is a checkbox to control it?
I meant that cal(1) starts from *Sunday* too. Sorry.
You probably need to set LC_TIME correctly too. Or maybe the bg locale is wrong. Try this: 'locale -k -c LC_TIME' and look at first_weekday. As for the 12/24 hour format: the problem here is that in some countries, people use both formats. But there's already a bug about this (bug 102635).
The result is: first_weekday=2 first_workday=2 I guess this means that Monday is the first day of the week in Bulgaria, which is correct. I checked Single User Specification and there is mention of first_weekday, neither the 12/24 time format: http://www.opengroup.org/onlinepubs/000095399/basedefs/xbd_chap07.html#tag_07_03_05 I checked NetBSD implementation and there is no sign that these two are implemented, at least in the manual page: http://netbsd.gw.com/cgi-bin/man-cgi/man?nl_langinfo . So these two options (first_weekday and 12/24 time format) should be in Properties of clock applet in case the underlying libc doesn't go beyound POSIX locale definitions. And it's best if they are tristates -- yes, no, get from locale (undefined?).
GTK+ is not using nl_langinfo. In fact, the first day is set according through translations (so if you're running with LANG=en, you'll have the "en first day"). See http://bugzilla.gnome.org/show_bug.cgi?id=87977#c25 *** This bug has been marked as a duplicate of 87977 ***