server icon indicating copy to clipboard operation
server copied to clipboard

Dedicated locale/region option

Open georgehrke opened this issue 10 years ago • 46 comments

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 avatar Oct 18 '16 14:10 georgehrke

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

jancborchardt avatar Oct 18 '16 14:10 jancborchardt

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

georgehrke avatar Oct 18 '16 14:10 georgehrke

Ah right, awesome! :)

jancborchardt avatar Oct 18 '16 14:10 jancborchardt

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

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

georgehrke avatar Feb 08 '17 14:02 georgehrke

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.

adsworth avatar Feb 08 '17 14:02 adsworth

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.

georgehrke avatar Feb 08 '17 14:02 georgehrke

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

jancborchardt avatar Feb 14 '17 14:02 jancborchardt

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)

skjnldsv avatar Feb 20 '17 14:02 skjnldsv

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

georgehrke avatar Mar 01 '17 12:03 georgehrke

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.

adsworth avatar Mar 01 '17 12:03 adsworth

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.

ralin3 avatar Jun 03 '17 19:06 ralin3

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

georgehrke avatar Jun 03 '17 20:06 georgehrke

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

founderio avatar Jun 09 '17 14:06 founderio

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.

georgehrke avatar Jun 09 '17 14:06 georgehrke

@jancborchardt btw, if a user selected the language english but the region german, should day and month names appear in german or english?

georgehrke avatar Jun 09 '17 14:06 georgehrke

Out of curiosity, what do you dislike about it?

It has the wrong ordering. When using yyyy-mm-dd you can use alphanumeric sorting and have ascending dates. The German format defines dd.mm.yyyy. Personal preference I guess.

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

Is there a locale called en_DK? On Linux this is sometimes used to have ISO dates in English language...

I'm sorry, but that's a completely overkill. [...]

Fair point. But ISO dates should be an option somehow, no? It is an international standard after all.

founderio avatar Jun 09 '17 14:06 founderio

Is there a locale called en_DK?

I don't think so. You can see the list at the bottom of https://momentjs.com/

But ISO dates should be an option somehow, no?

Yes, it would definitely be nice to have. We have to see how easy it is to get an iso locale in moment.js.

It actually offers you to define your own locales, so that might be fairly easy after all. We have to see.

georgehrke avatar Jun 09 '17 14:06 georgehrke

@georgehrke region sets regional preferences, such as date, time and currency formats.

I agree that JIRA override is a huge overkill. It makes sense in JIRA, only because you might want to import from/export to a weirdly formatted 3rd party service

pixelipo avatar Jun 09 '17 15:06 pixelipo

if a user selected the language english but the region german, should day and month names appear in german or english?

language is language, region is format

nickvergessen avatar Jun 09 '17 15:06 nickvergessen

@founderio try en_IE - if I'm not mistaken, it has "European" date format

pixelipo avatar Jun 09 '17 15:06 pixelipo