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

Dedicated locale/region option #1781

Closed
georgehrke opened this issue Oct 18, 2016 · 46 comments
Closed

Dedicated locale/region option #1781

georgehrke opened this issue Oct 18, 2016 · 46 comments
Assignees
Milestone

Comments

@georgehrke
Copy link
Member

georgehrke commented Oct 18, 2016

There should be a dedicated option for choosing the locale independent from the language.

There is a common use case, that people want to use software in english, but they don't want MM/DD/YYYY or a weekstart on Monday.

In iOS you can just choose a different language and locale:

gg

cc @jancborchardt

@georgehrke georgehrke added enhancement 1. to develop Accepted and waiting to be taken care of labels Oct 18, 2016
@jancborchardt
Copy link
Member

Yes, and that region format should be used by the Calendar, instead of having its own settings. :)

@georgehrke
Copy link
Member Author

The calendar uses the language at the moment 🙈
We already ditched the checkbox for 12/24 and start of week for good.

@jancborchardt
Copy link
Member

Ah right, awesome! :)

@georgehrke
Copy link
Member Author

@jancborchardt What are your requirements for this feature? :)

What is the region dropdown going to look like?
A list of all countries?

@adsworth
Copy link

adsworth commented Feb 8, 2017

For reference this is what the dialog looks like in GNOME.
grafik

and both are basically a list of a locales available on the system.

@georgehrke
Copy link
Member Author

georgehrke commented Feb 8, 2017

moment.locales() gives a list of all available locales in moment.js

["en", "af", "ar-ly", "ar-ma", "ar-sa", "ar-tn", "ar", "az", "be", "bg", "bn",  ...]

We just need to map the array elements:

en => United States (english)
de => Germany (german)
de-at => Austria (german)

We probably want to filter the list though. It contains as much as 107 elements.

@jancborchardt
Copy link
Member

Exactly, it should be directly together with the language dropdown, and default to the same as the language.

@skjnldsv
Copy link
Member

Youhou!! :D
Also: why not have an option for h24 and monday? I think it would be easier to understand that choosing a locale (since even around me people uses different way to say the date/time)

@georgehrke
Copy link
Member Author

@adsworth Do you want to work on this? :)

@adsworth
Copy link

adsworth commented Mar 1, 2017

Yeah, I would like to work on this. I'll need some help pointers concerning Javascript and how it all works together on the server side. But I guess I can get that in the IC dev channel.

Also I can't really give at time line. If that's OK then I'll assign it to me.

@ralin3
Copy link

ralin3 commented Jun 3, 2017

Can someone please confirm or deny whether this will end up being user selectable "somehow"?
NC12 lost en_GB, so I have no option to have english language, 24h clock and weekday starting on monday.

The comment made by @jancborchardt makes me think that this will not be a user selectable option, rather force users to select a language that has the needed options, instead of providing sane defaults (detected based on users language) which can be overridden.

@georgehrke
Copy link
Member Author

@ralin3 Every user will have a new region input below the language input in the personal settings.

@founderio
Copy link

Will there be an option for ISO dates? (2017-01-01 ...)

Right now, I have the option of using US format (for me, German, that is just a weird format.)
The other language that I understand is German - with weeks beginning on Monday and Clock in 24h format. But I dislike our date format. (And I do not use German software translation.. Too many incomplete or weird translations out there...)

I guess there will always be "the odd person" who is not keen on their own country's date formatting.

For reference, Jira allows overriding the date formats to a completely custom one:
Agile Date Format

@georgehrke
Copy link
Member Author

As far as I can tell there is no way to tell moment.js to use ISO as a locale, so probably not.

But I dislike our date format.

Out of curiosity, what do you dislike about it?

For reference, Jira allows overriding the date formats to a completely custom one:

I'm sorry, but that's a completely overkill. It might benefit a small share of users, but vastly increases code complexity and clutters the interface with even more inputs. That will have a negative result on general user experience.

@MorrisJobke
Copy link
Member

Fixed with #5623

@jkelly99
Copy link

I would also like to put my vote in for 24 h clock settings and Monday start of week without needing to change locale settings. I am in the US and work in a medical setting. We use US date format, 24 hr clock, and Monday start of week.

@dugganjl
Copy link

I would also prefer to have date, time, and start-of-week settings independent of the Locale setting.
I'd like to be able to set a 24 hour clock, yyyy-mm-dd, and Monday as start-of-week.

@telmich
Copy link

telmich commented May 19, 2020

Hello! This issue seems to be closed on github, however I don't see how I can select 24h, Monday week start or iso format anywhere in nextcloud 16.0.8. Am I just blind or is it not there?

@jkelly99
Copy link

My workaround is setting my local as English(Ireland). That gets you 24 hr clock with Monday week start. Stuck with European date format, but I can live with that.

@haarp
Copy link

haarp commented Nov 14, 2020

I don't understand what got merged here, but it's still impossible to select ISO-8601 (yyyy-mm-dd) date formats, 24h time, week starting monday, English strings in NC 19.0.4. Is there another issue that I missed?

@haarp
Copy link

haarp commented Nov 14, 2020

Ok, I've just opened #24134 which, once fixed, should finally give us English ISO-8601.

@remram44
Copy link

Can we just have separate settings for that instead of making people use en_DK? Are we sure there is a locale that use 24h for each language that Nextcloud supports, or do we only care about English?

@Fuseteam
Copy link

Fuseteam commented Dec 15, 2020

agreed can we just have independent options? how do i figure out how to get 24hours, dd/mm/yyyy date format and weeks that start on mondays? feels like i have to test all the locales one by one.......

@davralin
Copy link

In latest NC20, one can select the language and locale independently.

I have both english language, and Norwegian locale - giving me:

16.12.2020 13:29:22
Week starts on Monday

as date-format, and all the text in english.

@Fuseteam
Copy link

@davralin cool thanks that's rather close to what i want, i would rather have / instead of . for example
that said i'll probably switch the norwegian locale for the time being

@Fuseteam
Copy link

actually nevermind that turns it into this
2020-12-16-094224_121x612_scrot

@davralin
Copy link

Indeed, that's weird, from my activity-feed:

You moved 12 to 2020     5 dager siden

First part is english, second part is norwegian.

@jm355
Copy link

jm355 commented Feb 10, 2024

Has anyone found a way to fix this?

@didli
Copy link

didli commented Oct 16, 2024

8 years and still no way to start the week on monday but keep an english locale ?
Did I miss something please ?
EDIT : Nevermind. Choosing English (British English) as a workaround will do for now. I don't mind the date format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests