Dates do not respect locale setting

Bug #1297869 reported by Vincent
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Calendar App
Invalid
Low
Unassigned

Bug Description

On my desktop, my system locale is set to en (GB), even though my timezone is Amsterdam/The Netherlands. Now, as can be seen in the screenshot, the header tabs and options are in English (as they should be), but the month name is Dutch ("maart"), and the week days are as well ("ma di wo do vr za zo"), while they should be in English too.

Revision history for this message
Vincent (vinnl) wrote :
Revision history for this message
David Planella (dpm) wrote :

Weird, the month names should be taken from the LC_MESSAGES locale category, which is set by the language. We'll need to investigate how Qt handles month localization.

Changed in ubuntu-calendar-app:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
David Planella (dpm) wrote :

Could you give us the output of the 'locale' command on your device?

You can do it from your PC and a device connected via USB by opening a terminal on the PC and running:

adb shell locale

Revision history for this message
David Planella (dpm) wrote :

Ah, I just noticed you meant on your desktop. In any case, can you open a terminal and run this command:

locale

and then paste the output on a comment? Thanks!

Changed in ubuntu-calendar-app:
status: Triaged → Incomplete
Revision history for this message
Vincent (vinnl) wrote :

Desktop it is :)

$ locale
LANG=en_GB.UTF-8
LANGUAGE=en_GB:en
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC=nl_NL.UTF-8
LC_TIME=nl_NL.UTF-8
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY=nl_NL.UTF-8
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER=nl_NL.UTF-8
LC_NAME=nl_NL.UTF-8
LC_ADDRESS=nl_NL.UTF-8
LC_TELEPHONE=nl_NL.UTF-8
LC_MEASUREMENT=nl_NL.UTF-8
LC_IDENTIFICATION=nl_NL.UTF-8
LC_ALL=

Note: I guess my Bug #1291508 might be relevant as well then.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Ubuntu Calendar App because there has been no activity for 60 days.]

Changed in ubuntu-calendar-app:
status: Incomplete → Expired
Revision history for this message
Vincent (vinnl) wrote :

Oh crap, I left it at Incomplete. In any case, it is still an issue...

Changed in ubuntu-calendar-app:
status: Expired → New
Revision history for this message
David Planella (dpm) wrote :

Hi Vincent,

Could you try to set LC_TIME=en_GB.UTF-8? I'm guessing that will make the format work as you expect.

Changed in ubuntu-calendar-app:
status: New → Incomplete
Revision history for this message
Vincent (vinnl) wrote :

Hmm, odd. I now see that indicator-datetime does the same. Indeed, running it with LC_TIME=en_GB.UTF-8 uses English names. I suppose this also means it does not use the Dutch date notation, <day>/<month>/<year>? I guess there isn't really a way around that...

Changed in ubuntu-calendar-app:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.