Language / locale mixup?

#1

I think there’s slight mixup in how language and locale are working together.

The locale is supposed to be language independent, yet the locale sets the language in apps like calendar, even though the language is set to a different language.

I want to set the following date/time preference and start day of the week:

%Y-%m-%d %H:%M:%S eg.: 2019-04-07 16:07:17
and week starting Monday

However, it seems that this is not possible. The only locale that does that is Esperanto, but it changes the language to Esperanto as well.

I am really puzzled by this. I can’t believe that it is impossible to set the date and time to an ISO format. Anyway, maybe there should be a way to define your own date/time and start-of-week day, but with using the language you selected in the language field.
That’s usually how it works. The locale does not set the language. It changes the way how data is presented, that’s it.

Please let me know how I can accomplish this simple task:

Date/time format: %Y-%m-%d %H:%M:%S eg.: 2019-04-07 16:07:17
Week starting: Monday
Language: English

P.S.: Please note that the locale technically also sets the language, but then you don’t need a language setting. I therefore thought that the locale in Nextcloud is strictly for data representation. So somehow I don’t understand how Nextcloud uses the terms Language and Locale. In any case, I still would like to use my own date/time format and start-of-week day.
I’m also more than happy to patch my local installation. Just let me know how I can accomplish the task I described above.

#2

Anyone? Seriouly? Nothing?

Let me try to make it a bit simpler, maybe the text above was too verbose:

I want to set the following date/time preference and start day of the week while using the language English (en_US):

%Y-%m-%d %H:%M:%S eg.: 2019-04-07 16:07:17
and week starting Monday

How can I do that?

#3

Anyone? Did I open this in the wrong category? Shall I open a github issue instead?

#4

have you tried setting it as a machine-default on your server, already?

other than that… maybe really github would be the right place to ask for that option.

1 Like
#5

I have no idea what you are talking about. Language and Locale do not have an item called system default or anything like that.

The question is which repo shall I use to open the issue?

#6

if you set language and locale on your machine (either while installing it or later via systemconfiguration) this is the default for your computer/server. so it could happen that a server is configured to use lang XY and locale ZZ while your client computer uses lang AB on locale CD… and thus you’d see the date-settings of the server on your client-computer…

why not here? they’re gonna let you know if it’s the right place

#7

This is true, but has nothing to do with web applications. Furthermore the sytem setting is as the name says a system setting. This does not mean a user (on the server) can’t use a different language/locale. Clients do not come to play here at all. The only applications where a client setting might override a server setting are database CLI drivers and/or applications.

The system setting could be used by a web application, however this is a very bad practice and never done (if you find such an app, do not ever use it, because its designers are imbeciles). This is also the reason why you set the language and locale in Nextcloud.

I will open an issue in the server repo, but I’m afraid I already know what will happen.

#8

all of this is true. and i am sure we meant the same thing and just used different words to explain it :wink:

most prolly nothing would happen and it would be closed for irrelevance or something.
but if that might happen you’d know that you’d need to devellop an app doing this setting for you.