[Gpe-list] Follow-up: Week starts on Sunday

Graham Cobb g+gpe at cobb.uk.net
Sun Jul 13 00:34:08 CEST 2008


On Tuesday 08 July 2008 09:34:50 Lars Persson Fink wrote:
> I may have made a mistake by saying the information of which day starts
> the week was available in g_date_strftime.

Presumably it is available using nl_langinfo.  I note 
that /usr/include/langinfo.h defines an item code called 
_NL_TIME_FIRST_WEEKDAY which might be it.  But I don't know.

> Lars Persson Fink skrev:
> > Hi,
> >
> > Something about your post Fyodor got me thinking. Shouldn´t the
> > information about first day of the week be taken from the current
> > locale? I looked around in Glib-docs and the information is there (I
> > think it was in strftime or something similar).  That way it would
> > not have a special setting for it. Just a suggestion.

What would be really great would be to have it default from the locale but to 
keep the menu item to allow people to override it!  I am sure that the UK 
locale specifies Sunday but I happen to have got used to my electronic 
calendar starting on a Monday (so the weekend is not broken in two).

I am sure I would not be the only person to be very unhappy to suddenly find 
GPE calendar changed the month display to begin on Sunday just because that 
is what the locale says!

Whichever way is chosen to select the starting day, it should also be applied 
to the EventCal widget (the small monthly calendar which can be displayed in 
the right hand pane).  calendar_consider() honours the week_starts_sunday  
flag when creating the widget but the widget might need to be destroyed and 
recreated if the flag changes.

Graham



More information about the Gpe-list mailing list