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 696236 - Weekdays/Weekends definition should be localized
Weekdays/Weekends definition should be localized
Status: RESOLVED OBSOLETE
Product: gnome-clocks
Classification: Applications
Component: world clock
unspecified
Other All
: Normal normal
: ---
Assigned To: Clocks maintainer(s)
Clocks maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-03-20 22:35 UTC by Fabiano Fidêncio
Modified: 2021-06-01 22:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add "Weekends" label for alarms set to Sat and Sun (1.19 KB, patch)
2013-03-20 22:35 UTC, Fabiano Fidêncio
committed Details | Review

Description Fabiano Fidêncio 2013-03-20 22:35:13 UTC
See patch
Comment 1 Fabiano Fidêncio 2013-03-20 22:35:15 UTC
Created attachment 239419 [details] [review]
Add "Weekends" label for alarms set to Sat and Sun

Clocks already has a similiar behavior for alarms set to
"Weekdays"/"Every Day".
Comment 2 André Klapper 2013-03-21 07:40:27 UTC
You are hardcoding that in your culture the weekend is Saturday and Sunday? That's quite unI18Nanble...
Comment 3 Fabiano Fidêncio 2013-03-21 08:39:09 UTC
(In reply to comment #2)
> You are hardcoding that in your culture the weekend is Saturday and Sunday?
> That's quite unI18Nanble...

In the same way that is already hardcoded that weekedays are not Saturday and not Sunday :-)
I got your point, André. But to cover what you're expecting Clocks should provide a way to set Weekdays/Weekends and it's not related to this patch (in my point of view).

Paolo, do you want to have this behavior in Clocks?
Comment 4 André Klapper 2013-03-21 08:44:24 UTC
(In reply to comment #3)
> In the same way that is already hardcoded that weekedays are not Saturday 
> and not Sunday :-)

Sure, I can file another bug report about that. :)

> But to cover what you're expecting Clocks should provide a way to set
> Weekdays/Weekends and it's not related to this patch (in my point of view).

Probably *GNOME* should provide a way to set weekdays/weekends (yeah, different request and way more complex), as Clocks is not the only app for this (e.g. Evolution provides a [rather crappy] UI for this under "Calendar Preferences").

Still I don't see how hardcoding helps anybody here. GSettings at least? :-/
Comment 5 Paolo Borelli 2013-03-21 09:24:36 UTC
I think we should investigate if we can get the information about which ones are the "week days" and which days are "weekend" from the libc localization information. This is a separate bug and I would appreciate a bugreport about that.


In the mean time using the "weekends" sounds good to me
Comment 6 Matthias Clasen 2013-03-22 19:03:48 UTC
nl_langinfo should be able to give you that information, with _NL_TIME_FIRST_WORKDAY
Comment 7 Fabiano Fidêncio 2013-03-29 01:29:05 UTC
(In reply to comment #5)
> I think we should investigate if we can get the information about which ones
> are the "week days" and which days are "weekend" from the libc localization
> information. This is a separate bug and I would appreciate a bugreport about
> that.
> 
> 
> In the mean time using the "weekends" sounds good to me

Could I push? :-)
Comment 8 Paolo Borelli 2013-03-29 08:10:19 UTC
> 
> Could I push? :-)

I am planning to branch after 3.8.1 so it has to wait a few more days.

Maybe while you wait you could give _NL_TIME_FIRST_WORKDAY a shot :P
Comment 9 Paolo Borelli 2013-06-10 19:55:18 UTC
I applied Fabiano's patch for 3.9.1.

Retitling the bug for the localization issue
Comment 10 André Klapper 2021-06-01 22:44:30 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new enhancement request ticket at
  https://gitlab.gnome.org/GNOME/gnome-clocks/-/issues/

Thank you for your understanding and your help.