GNOME Bugzilla – Bug 266459
Saturday and Sunday should not be considered weekends in every locale
Last modified: 2005-06-14 12:40:38 UTC
Description of Problem: In fa_IR (Persian for Iran) locale, in calendar week view, Saturday and Sunday are merged into one single box, where weekdays each have one box of their own. Since those two days are not holidays in Iran (their equivalents are Thursday and Friday). The bug doesn't get fixed when you set correct workdays in calendar settings. Steps to reproduce the problem: 1. Run LANG=fa_IR evolution-1.5 2. Switch to calendar, week view
Please note that the situation is the same for most Muslim countries, include most of the Arab ones and Afghanistan. I believe this should be done: 1) The default work days and week start day should be localizable in PO files. 2) Either the last two days of the week (based on the week start day) or the non-working days (if they are two and follow each other) should be packed into one box. Best may be making the zipped days configurable, but the default should definitely be definable in the PO file.
Ah, before I forget, there is already a setting/message in gtk+ that allows setting the first week day. See gtk+/gtk/gtkcalendar.c, and search for "calendar:week_start". For Persian for Iran, it is correctly set to 6 (Saturday).
Some comments from Rodrigo on IRC: rodrigo: it means dealing with the gnome canvas rodrigo: well, it might get fixed by changing some logic in the calendar views rodrigo: that is, to have the $weekend a setting roozbeh: also, will it be easy to use the gtk+ message for week start, or do you think we should define a new "configuration message" for evolution? rodrigo: so that you can have thu and fri as weekend rodrigo: "configuration message" rodrigo: ? roozbeh: it's something you do for things that should be localized for different languages. roozbeh: so there is a message in gtk+ that says for example "direction:RTL". roozbeh: then right to left languages translate it to "direction:RTL"/ roozbeh: gtk+ looks at the translation to find that the locale is RTL. rodrigo: I guess we should whatever gtk uses roozbeh: the code, in gtk+/gtk/gtkmain.c looks something like this: [...] rodrigo: so, we need to call gtk_widget_set_defaukt_direction for every widget in the app? roozbeh: i guess so. i'm not sure. but this is not about direction, it's about week start. that code should be somewhere in gtk/gtkcalendar.c, lemme see if i can find it.
according to nags on irc, this is a duplicate. *** This bug has been marked as a duplicate of 214645 ***