Red Hat Bugzilla – Bug 80940
Gnome-panel shows incorrectly formated calender
Last modified: 2007-11-30 17:10:31 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003
Description of problem:
In Finnish calender monday is first day of week, not the sunday like in US calender.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Run cal with Finnish language enviroment.
Actual Results: $ cal
su ma ti ke to pe la
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Expected Results: $ cal
ma ti ke to pe la su
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Typing cal -m helps, but calender output format should depend on enviroment
Same applies by the way to the calender available GNOME panel when clicking clock.
Due to the complexities of locale settings, it was decided when this issue came up before
that people who want Monday-first behaviour would always have to pass the -m option.
Same applies by the way to the calender available onGNOME panel when clicking
This should be fixed. The calender has finnish month names and weekday
abreviations and Finland monday is realy first day of week.
Created attachment 89648 [details]
Picture of badly formated calender
Monday should be first day of week which Finnish locale.
I don't think this is a gnome-panel bug.
I was going to suggest that the fix would involve fixing
gnome-panel/applets/clock/clock.c and use the
But, looking at http://bugzilla.gnome.org/show_bug.cgi?id=87977, that
wouldn't work as that option is now ignored.
I think the right fix is to fix the translation file.
Specifically, line #1272 of fi.po
1265 #. Translate to calendar:week_start:1 if you want Monday to be the
1266 #. * first day of the week; otherwise translate to
1267 #. * Do *not* translate it to anything else, if it isn't
1268 #. * or calendar:week_start:0 it will not work.
1270 #: gtk/gtkcalendar.c:720
1271 msgid "calendar:week_start:0"
1272 msgstr ""
I think we just have to change line 1272 to:
Note, from http://bugzilla.gnome.org/show_bug.cgi?id=87977 there are
other translations that might need fixing.
Created attachment 96534 [details]
a patch, at least for the Finnish translation
Monday is the first day of the week also in Belgium. Most Belgians
speak Dutch, many speak French, and some speak German.
The po-files are per language, not per language-country. I don't think
this is a problem for Belgium, because I assume that in the
Netherlands and in France monday is also the first day of the week.
Are already good:
Needs a fix:
This is fixed for swedish locale in Fedora Core 2 Test 1 (gtk2-2.3.2-2)
Known upstream, see:
I think it would be nice to have an option for the first day of week,
regardless of the locale. The locale can be used to set the default
value for that option.
Okay, this should be fixed with the gtk2 in Raw Hide. Moving to gtk2
We do this with a magic-translated string in GTK+-2.4, so if you are
running with a localized user interface, it should work fine.
(Assuming that the string is translated correctly for your language.)
It would be nicer to base off the date locale settings, but that's
hard to do portably.