From 8f8d69de56449b6259d6567652dea8e9ac7930a8 Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Tue, 25 Aug 2009 14:34:30 +0100 Subject: Call gettext for translated protocol names --- libempathy/empathy-utils.c | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'libempathy') diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c index 028a24dd1..1b49e5a80 100644 --- a/libempathy/empathy-utils.c +++ b/libempathy/empathy-utils.c @@ -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; -- cgit v1.2.3