GNOME Bugzilla – Bug 158630
Default location should depend on location code only
Last modified: 2008-11-25 22:39:11 UTC
Can the default location for new installations be set based on the time zone info vs that of Pittsburg Pennsylvania ?
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.
Further work on this can be done in G12 with weather.gnome.org
*** Bug 172691 has been marked as a duplicate of this bug. ***
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.
*** Bug 325573 has been marked as a duplicate of this bug. ***
Moving libgweather-specific bugs out of gweather-applet
Bug 562141 proposes something more generic. *** This bug has been marked as a duplicate of 562141 ***