indicator-weather mixes up languages

Bug #777732 reported by Christoph Buchner
48
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Weather Indicator
Fix Released
Low
Joshua Tasker

Bug Description

indicator-weather does not consistently respect language settings. I got an English language setting, but the rest is set to Austria (details below, and screenshot). In the indicator-weather menu, english and german are mixed.

Expected output: All the text should be in english, as per the LANG setting.

This is on 11.04, with indicator-weather 11.04.10+repack-0ubuntu2 (whoa, what a version string)
output of locale:
LANG=en_GB.UTF-8
LANGUAGE=en_GB:en
LC_CTYPE=de_AT.UTF-8
LC_NUMERIC=en_GB.UTF-8
LC_TIME=de_DE.UTF-8
LC_COLLATE=de_AT.UTF-8
LC_MONETARY=de_AT.UTF-8
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER=de_AT.UTF-8
LC_NAME=de_AT.UTF-8
LC_ADDRESS=de_AT.UTF-8
LC_TELEPHONE=de_AT.UTF-8
LC_MEASUREMENT=de_AT.UTF-8
LC_IDENTIFICATION=de_AT.UTF-8
LC_ALL=

Revision history for this message
Christoph Buchner (bilderbuchi) wrote :
Revision history for this message
Panagiotis Skintzos (ph7) wrote :

Indeed there is a mix. The get_locale used LC_CTYPE, but we should really use the LANGUAGE (the language for menus and windows in Language support dialog) .
Note that for formatting numbers and time, the LC_NUMERIC and LC_TIME are used.

Changed in weather-indicator:
status: New → Confirmed
Revision history for this message
Panagiotis Skintzos (ph7) wrote :

This patch should correct it

Changed in weather-indicator:
importance: Undecided → Low
assignee: nobody → Panagiotis Skintzos (ph7)
Changed in weather-indicator:
milestone: none → backlog
Revision history for this message
Sam_ (and-sam) wrote :

Still the case in Oneiric. Indicator-weather crashes constantly.
dpkg-reconfigure locales was already issued.

$ indicator-weather
(process:2270): Gtk-WARNING **: Locale not supported by C library.
 Using the fallback 'C' locale.
Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 1724, in <module>
    locale_name = locale.getlocale()[0].split('_')[0]
AttributeError: 'NoneType' object has no attribute 'split'

$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Kann LC_ALL nicht auf die Standard-Lokale einstellen: Datei oder Verzeichnis nicht gefunden
LANG=de
LANGUAGE=de:en
LC_CTYPE="de"
LC_NUMERIC="de"
LC_TIME="de"
LC_COLLATE="de"
LC_MONETARY="de"
LC_MESSAGES=de_DE.UTF-8
LC_PAPER="de"
LC_NAME="de"
LC_ADDRESS="de"
LC_TELEPHONE="de"
LC_MEASUREMENT="de"
LC_IDENTIFICATION="de"
LC_ALL=

Revision history for this message
fredtdtje (wfadvokaat) wrote :

Please see my information in my bug #820864, that I just marked as duplicate, after discovering this bug report.
The problem is not solved and appears different depending on the data source that is being uses (Yahoo! vs. Google).

$ locale

LANG=nl_NL.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="nl_NL.UTF-8"
LC_NUMERIC="nl_NL.UTF-8"
LC_TIME="nl_NL.UTF-8"
LC_COLLATE="nl_NL.UTF-8"
LC_MONETARY="nl_NL.UTF-8"
LC_MESSAGES=en_US.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=

Revision history for this message
fredtdtje (wfadvokaat) wrote :

In reaction to the original bug report:

Expected output is not "All the text should be in english, as per the LANG setting." but All text in English, as per the LANGUAGE setting. The LANG setting informs the system of the language that the user actively uses, whereas the LANGUAGE setting sets the language in which the system (and all applications) communicate with the user.

The problem persists on Ubuntu 11.04 Natty, in Weather Indicator 11.05.31 'Cloudy 8'

Changed in weather-indicator:
assignee: Panagiotis Skintzos (ph7) → nobody
Revision history for this message
Joshua Tasker (jtasker) wrote :

Can anyone confirm this issue is still present in the newer builds (e.g. 13.06.01)?

Changed in weather-indicator:
status: Confirmed → Incomplete
assignee: nobody → Joshua Tasker (jtasker)
Revision history for this message
Christoph Buchner (bilderbuchi) wrote :

I don't see this myself any more, on 13.05.17.

Revision history for this message
Joshua Tasker (jtasker) wrote :

Marking this as fixed, then.

Changed in weather-indicator:
milestone: backlog → 13.05.28
status: Incomplete → Fix Released
Revision history for this message
Christoph Buchner (bilderbuchi) wrote :

Thanks :-)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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