]> git.0d.be Git - empathy.git/commitdiff
Call gettext for translated protocol names
authorWill Thompson <will.thompson@collabora.co.uk>
Tue, 25 Aug 2009 13:34:30 +0000 (14:34 +0100)
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>
Tue, 25 Aug 2009 14:06:14 +0000 (15:06 +0100)
libempathy/empathy-utils.c

index 028a24dd1e3d6a8d0f6289efc39e2ed5d1e7ff8b..1b49e5a808b638b3d91f18505fdc0c38ce930273 100644 (file)
@@ -372,23 +372,29 @@ empathy_protocol_name_to_display_name (const gchar *proto_name)
   static struct {
     const gchar *proto;
     const gchar *display;
+    gboolean translated;
   } names[] = {
-    { "jabber", "Jabber" },
-    { "msn", "MSN" },
-    { "local-xmpp", N_("People Nearby") },
-    { "irc", "IRC" },
-    { "icq", "ICQ" },
-    { "aim", "AIM" },
-    { "yahoo", "Yahoo!" },
-    { "groupwise", "GroupWise" },
-    { "sip", "SIP" },
+    { "jabber", "Jabber", FALSE },
+    { "msn", "MSN", FALSE, },
+    { "local-xmpp", N_("People Nearby"), TRUE },
+    { "irc", "IRC", FALSE },
+    { "icq", "ICQ", FALSE },
+    { "aim", "AIM", FALSE },
+    { "yahoo", "Yahoo!", FALSE },
+    { "groupwise", "GroupWise", FALSE },
+    { "sip", "SIP", FALSE },
     { NULL, NULL }
   };
 
   for (i = 0; names[i].proto != NULL; i++)
     {
       if (!tp_strdiff (proto_name, names[i].proto))
-        return names[i].display;
+        {
+          if (names[i].translated)
+            return _(names[i].display);
+          else
+            return names[i].display;
+        }
     }
 
   return NULL;