[network-manager-applet] mobile-wizard: s/Britain (UK)/United Kingdom (rh #556292)



commit 6af243a11c19e5bdd5c297ad9f79b74c5e5cf70a
Author: Dan Williams <dcbw redhat com>
Date:   Thu Apr 29 16:39:36 2010 -0700

    mobile-wizard: s/Britain (UK)/United Kingdom (rh #556292)
    
    iso3166.tab is just wrong here.

 src/utils/nmn-mobile-providers.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/utils/nmn-mobile-providers.c b/src/utils/nmn-mobile-providers.c
index a496403..7252512 100644
--- a/src/utils/nmn-mobile-providers.c
+++ b/src/utils/nmn-mobile-providers.c
@@ -68,7 +68,15 @@ read_country_codes (void)
                 char **pieces;
 
                 pieces = g_strsplit (buffer->str, "\t", 2);
-                g_hash_table_insert (table, pieces[0], g_strchomp (pieces[1]));
+
+                /* Hack for rh#556292; iso3166.tab is just wrong */
+                pieces[1] = pieces[1] ? g_strchomp (pieces[1]) : NULL;
+                if (pieces[1] && !strcmp (pieces[1], "Britain (UK)")) {
+                    g_free (pieces[1]);
+                    pieces[1] = g_strdup (_("United Kingdom"));
+                }
+
+                g_hash_table_insert (table, pieces[0], pieces[1]);
                 g_free (pieces);
             }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]