diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2009-08-25 21:34:30 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-08-25 22:06:14 +0800 |
commit | 8f8d69de56449b6259d6567652dea8e9ac7930a8 (patch) | |
tree | ffad99f5936ce5a278bc49985bc55b04fda4239c /libempathy/empathy-utils.c | |
parent | 19ccd0e26d96beaeb2c649004aaa04110d1d8d4a (diff) | |
download | gsoc2013-empathy-8f8d69de56449b6259d6567652dea8e9ac7930a8.tar.gz gsoc2013-empathy-8f8d69de56449b6259d6567652dea8e9ac7930a8.tar.zst gsoc2013-empathy-8f8d69de56449b6259d6567652dea8e9ac7930a8.zip |
Call gettext for translated protocol names
Diffstat (limited to 'libempathy/empathy-utils.c')
-rw-r--r-- | libempathy/empathy-utils.c | 26 |
1 files changed, 16 insertions, 10 deletions
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; |