After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 266459 - Saturday and Sunday should not be considered weekends in every locale
Saturday and Sunday should not be considered weekends in every locale
Status: RESOLVED DUPLICATE of bug 214645
Product: evolution
Classification: Applications
Component: Calendar
1.5.x (obsolete)
Other All
: Normal enhancement
: Future
Assigned To: evolution-calendar-maintainers
Evolution QA team
Depends on: 267984
Blocks:
 
 
Reported: 2004-09-21 15:27 UTC by Meelad Zakaria
Modified: 2005-06-14 12:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Meelad Zakaria 2004-09-21 15:27:36 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
Comment 1 Roozbeh Pournader 2004-09-21 16:07:23 UTC
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.
Comment 2 Roozbeh Pournader 2004-09-21 16:12:13 UTC
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).
Comment 3 Roozbeh Pournader 2004-09-27 13:58:10 UTC
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.
Comment 4 André Klapper 2005-06-14 12:40:38 UTC
according to nags on irc, this is a duplicate.

*** This bug has been marked as a duplicate of 214645 ***