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 644933 - Use iso-codes, not /usr/share/zoneinfo/iso3166.tab
Use iso-codes, not /usr/share/zoneinfo/iso3166.tab
Status: RESOLVED DUPLICATE of bug 658653
Product: NetworkManager
Classification: Platform
Component: nm-applet
git master
Other Linux
: Normal normal
: ---
Assigned To: Dan Williams
Dan Williams
Depends on:
Blocks:
 
 
Reported: 2011-03-16 16:55 UTC by Dan Winship
Modified: 2011-11-07 17:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dan Winship 2011-03-16 16:55:26 UTC
nm-applet parses tzdata's iso3166 file to get country names for country codes, but it should be using iso-codes instead, which (a) is intended for this, (b) includes translations, (c) is not confused about the name of GB
Comment 1 Dan Williams 2011-03-16 20:25:35 UTC
Any quick pointers on using iso-codes?
Comment 2 Dan Williams 2011-03-16 20:26:54 UTC
Ie,what would I use to parse the XML and insert the translations on-the-fly...
Comment 3 Dan Winship 2011-03-16 21:15:55 UTC
There's no stock code for parsing it afaik. Use your favorite xml library. (There used to be a plain-text version of the file too, but they deprecated in favor of the XML. Meh.)

For the translations, just use dgettext("iso_3166", country_name)
Comment 4 Christopher Aillon 2011-04-02 05:29:14 UTC
Well, there's gst_tag_get_language_name(), but I don't think NM wants a dependency on gstreamer...

Else, could do what totem used to do before it switched to gst_tag_get_language_name() and do the parsing yourself with a GMarkupParser.

http://git.gnome.org/browse/totem/commit/?id=5ecafddf9438a1189c966932009fab64f84dfeb1
Comment 5 Dan Williams 2011-11-07 17:02:31 UTC
Got fixed due to 658653.

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