Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for changing the First day of Week #86

Open
lainsce opened this issue May 31, 2019 · 10 comments
Open

Support for changing the First day of Week #86

lainsce opened this issue May 31, 2019 · 10 comments

Comments

@lainsce
Copy link

lainsce commented May 31, 2019

Some users might use English or some such locales with a predefined first day in their installs, but that shouldn't lock them from customizing the arrangement of how the week starts (Sunday, Monday, Tuesday etc.) systemwide as well.

Prior Art Gallery:

OS Picture
macOS
Windows 10
@lainsce
Copy link
Author

lainsce commented Jun 19, 2019

Mockup of this UI inside the plug:
Screenshot from 2019-06-19 07 56 59

@ryonakano
Copy link
Contributor

Essentially the same ticket seems to have been posted on elementary/switchboard-plug-datetime#11. I wonder which Plug is appropriate to expose this setting.

@danirabbit
Copy link
Member

I think I'm more inclined to call this a locale issue.

I'm not sure if there's already a place this key is stored. It looks like Evolution carries its own key for this at /org/gnome/evolution/calendar/week-start-day-name. This appears to be part of the app and not part of the data server.

@lainsce
Copy link
Author

lainsce commented Sep 26, 2019

@danrabbit It'd be a way to override the weekday order that shows in Calendar and the Date Time indicator, for people that have other locale needs but a PC set as English (US), for example. It's more of a "I live in X country where week starts on Monday, but my PC isn't in my locale because I set it so, and as such, my week is starting on Sunday." issue.

My suggestion is to make a global settings key that Calendar and the Date Time indicator both listen to, and make a widget for choosing the weekday you want to start the week on, that edits this key internally.

@mcclurgm
Copy link

FWIW I did a bit of digging on week formatting a while back, and setting this globally could be messy. It looks like you're going the settings key route anyway, but here's what I dug up.

I found a super useful description of how the systemwide date system works: https://sourceware.org/glibc/wiki/Locales. It's not exactly nice...
There are also ways to change the system locale (https://www.gnu.org/software/libc/manual/html_node/Setting-the-Locale.html and https://askubuntu.com/questions/6016/how-to-set-monday-as-the-first-day-of-the-week-in-gnome-calendar-applet/69288#69288) but they can only set the whole time format (change LC_TIME to some other installed locale, like EN_GB), not individual parts of it. I think the only way to modify only the week data would be to compile a new locale with that data modified. Also looks like KDE implemented this at some point, but it may have been a settings key for them too. (I can't tell based on that post) It would be nice if we could do this, so it would work outside of just those 2 apps. (also, aren't we not supposed to access system settings keys in flatpak?) But it may not be feasible, and the settings key would fix probably the most relevant 2 apps.

@lainsce
Copy link
Author

lainsce commented Nov 12, 2020

I think the only way to do this real-time without having to logon again is the settings key.
Problem is, I need to plan how this will be done, or else it will start becoming messy code.

@lainsce
Copy link
Author

lainsce commented Nov 14, 2020

@marbetschar
Copy link
Member

What's the current state of the custom defined start of a weekday in Switchboards locale plug? Is this still something beeing actively worked on?

@lainsce
Copy link
Author

lainsce commented Jan 11, 2022

I've left it in a working state last I remember

@danirabbit
Copy link
Member

Gonna link here that there’s been some movement from GNOME and portals on this feature as well so worth following up to make sure we’re working in a cross platform way https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/160#note_1872970

@danirabbit danirabbit added this to OS 9 Oct 21, 2024
@danirabbit danirabbit moved this to Needs Discussion in OS 9 Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs Discussion
Development

Successfully merging a pull request may close this issue.

5 participants