After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 103079 - Weather applet defaults to non-metric units
Weather applet defaults to non-metric units
Status: RESOLVED DUPLICATE of bug 50595
Product: gnome-applets
Classification: Other
Component: gweather
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
Depends on:
Blocks:
 
 
Reported: 2003-01-11 07:39 UTC by Christian Rose
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4



Description Christian Rose 2003-01-11 07:39:11 UTC
Tested with the locale sv_SE.

The weather applet seems to always default to using non-metric units.
That's most likely not very clever, since almost all parts of the world
(with the US as the most notable exception) does use metric units.

The locale information (to be precise LC_MEASUREMENT) includes information
about which unit system to use (1=metric, 2=US). It's probably a god idea
to make use of that. If the locale information cannot be found or the
locale is unset, using metric as the fallback is probably a good idea.

In short:
1) Use locale info (en_US would return 2, all other locales will probably
return 1)
2) If the above fails, use metric
Comment 1 Jörgen Viksell 2003-01-17 20:34:42 UTC
This would probably require changing the UI to have a drop-down box
(or whatever it's called) with something in the lines of:

System default
Metric units
English units

The gconf schema file has to be changed as well. But that's just
details... ;-)
Comment 2 André Dahlqvist 2004-02-15 21:52:04 UTC
GNOME usually has sane defaults that I rarely need to change, but
gweather is an exception in this regard. Obeying the locale would be a
nice addition to the "just works" category.
Comment 3 Dennis Smit 2004-06-11 12:04:18 UTC
This problem is worked on in the patch that is in bug #50595.

For that reason i'm marking this as a duplicate to #50595


*** This bug has been marked as a duplicate of 50595 ***