GNOME Bugzilla – Bug 644933
Use iso-codes, not /usr/share/zoneinfo/iso3166.tab
Last modified: 2011-11-07 17:02:31 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
Any quick pointers on using iso-codes?
Ie,what would I use to parse the XML and insert the translations on-the-fly...
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)
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
Got fixed due to 658653. *** This bug has been marked as a duplicate of bug 658653 ***