Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 80940
Summary: | Gnome-panel shows incorrectly formated calender | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Petri T. Koistinen <thoron> | ||||||
Component: | gtk2 | Assignee: | Owen Taylor <otaylor> | ||||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 1 | CC: | bart.martens, mitr, sspitzer | ||||||
Target Milestone: | --- | Keywords: | Triaged | ||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2004-04-05 14:57:46 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 79579, 100644 | ||||||||
Attachments: |
|
Description
Petri T. Koistinen
2003-01-02 17:10:32 UTC
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 the clock. 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 create_calendar() in gnome-panel/applets/clock/clock.c and use the GTK_CALENDAR_WEEK_START_MONDAY option. 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 http://cvs.gnome.org/lxr/source/gtk+/po/fi.po#1271 1265 #. Translate to calendar:week_start:1 if you want Monday to be the 1266 #. * first day of the week; otherwise translate to calendar:week_start:0. 1267 #. * Do *not* translate it to anything else, if it isn't calendar:week_start:1 1268 #. * or calendar:week_start:0 it will not work. 1269 #. 1270 #: gtk/gtkcalendar.c:720 1271 msgid "calendar:week_start:0" 1272 msgstr "" I think we just have to change line 1272 to: msgstr "calendar:week_start:1" 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: http://cvs.gnome.org/lxr/source/gtk+/po/nl.po#1263 http://cvs.gnome.org/lxr/source/gtk+/po/de.po#1287 Needs a fix: http://cvs.gnome.org/lxr/source/gtk+/po/fr.po#1289 This is fixed for swedish locale in Fedora Core 2 Test 1 (gtk2-2.3.2-2) Known upstream, see: http://bugzilla.gnome.org/show_bug.cgi?id=123447 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 for confirmation. 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. |