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 158630 - Default location should depend on location code only
Default location should depend on location code only
Status: RESOLVED DUPLICATE of bug 562141
Product: libgweather
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: 2.24.0
Assigned To: libgweather-maint
libgweather-maint
: 172691 325573 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-11-18 18:11 UTC by Brian Dudek
Modified: 2008-11-25 22:39 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Brian Dudek 2004-11-18 18:11:14 UTC
Can the default location for new installations be set based on the time zone
info vs that of Pittsburg Pennsylvania ?
Comment 1 Danielle Madeley 2004-11-19 03:47:07 UTC
The code to handle this is already in gnome-applets, but it based around your
translation domain (this is the sane way to solve this problem IMHO).

On the other hand, the code to do this is very messy, and requires translators
to set 4 values (DEFAULT_CODE, DEFAULT_LOCATION, DEFAULT_RADAR, DEFAULT_ZONE), 3
of these we could learn automatically.
Comment 2 Danielle Madeley 2005-01-09 08:59:45 UTC
Further work on this can be done in G12 with weather.gnome.org
Comment 3 Brent Smith (smitten) 2005-07-15 16:56:10 UTC
*** Bug 172691 has been marked as a duplicate of this bug. ***
Comment 4 Danielle Madeley 2006-01-04 00:46:40 UTC
From Simos Xenitellis in bug #325573

Currently, the default location for different localisations comes from several
strings that the translator has to make sure they all have sensible values.
Specifically, see
http://mail.gnome.org/archives/gnome-i18n/2005-December/msg00157.html

The messages are DEFAULT_CODE, DEFAULT_LOCATION, DEFAULT_RADAR, DEFAULT_ZONE,
DEFAULT_COORDINATES.
As gweather already knows the full set of these values due to Locations.xml,
then simply providing the DEFAULT_CODE should be enough to traverse the tree
and find the rest of the information (name, coordinates, etc).

This would simplify the work of localisers to simply provide the correct
airport code.
Comment 5 Danielle Madeley 2006-01-04 00:48:04 UTC
*** Bug 325573 has been marked as a duplicate of this bug. ***
Comment 6 Dan Winship 2008-06-18 17:34:52 UTC
Moving libgweather-specific bugs out of gweather-applet
Comment 7 Vincent Untz 2008-11-25 22:39:11 UTC
Bug 562141 proposes something more generic.

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