Date is shown in locality language instead of system language

Bug #1291508 reported by Vincent
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Weather App
Invalid
Undecided
Unassigned

Bug Description

Although I live in the Netherlands, I have my computer configured to use English as its language. However, the weather app shows dates in Dutch.

Output of the locale command:

$ 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=

Vincent (vinnl)
description: updated
Revision history for this message
Martin Borho (martin-borho) wrote :

Does this happen only happens on the desktop or on a device too?

Attaching a screenshot would be great, because I can't figuring out exactly what you meant at the moment...sorry.

Cheers
Martin

Revision history for this message
Vincent (vinnl) wrote :

This is on the desktop - not sure about the device as I have none. A screenshot is attached. As you can see, as date it says "Vrijdag, 21 maart" whereas the toolbar at the bottom correctly uses English terms ("Refresh", "Edit", "Settings").

Revision history for this message
Martin Borho (martin-borho) wrote :

Thanks, I will investigate!

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

Hi Vincent,

In order to be able to debug this, could you please:

1. Open a terminal with Ctrl+Alt+t
2. Type the following command:

locale

3. Edit the original bug description and paste the output of the command (alternatively, you can paste the output in a comment)

Thanks!

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

Done! See above, or here:

$ 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=

description: updated
Changed in ubuntu-weather-app:
status: Incomplete → Confirmed
Revision history for this message
David Planella (dpm) wrote :

Looking at the output, it seems it's simply because you've got LC_TIME=nl_NL.UTF-8, and my guess is that the time format is taken from there. If you set LC_TIME to en_GB.UTF-8, I'm guessing it should work as you expect.

Changed in ubuntu-weather-app:
status: Confirmed → 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-weather-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.