diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-04-07 09:54:32 +0800 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-05-05 14:31:27 +0800 |
commit | 8d16f171e0e256e0d8c954c7deb7c410e8e66465 (patch) | |
tree | e2a9baaca77f635aea37b1aa026125e5dcb6ab02 | |
parent | 385dc5af3c16b6de75d92b989585e44f953967f6 (diff) | |
download | gsoc2013-empathy-8d16f171e0e256e0d8c954c7deb7c410e8e66465.tar gsoc2013-empathy-8d16f171e0e256e0d8c954c7deb7c410e8e66465.tar.gz gsoc2013-empathy-8d16f171e0e256e0d8c954c7deb7c410e8e66465.tar.bz2 gsoc2013-empathy-8d16f171e0e256e0d8c954c7deb7c410e8e66465.tar.lz gsoc2013-empathy-8d16f171e0e256e0d8c954c7deb7c410e8e66465.tar.xz gsoc2013-empathy-8d16f171e0e256e0d8c954c7deb7c410e8e66465.tar.zst gsoc2013-empathy-8d16f171e0e256e0d8c954c7deb7c410e8e66465.zip |
Add "(SMS)" to the tab name for SMS channels
-rw-r--r-- | libempathy-gtk/empathy-chat.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index ec8e79528..5c8bbce3b 100644 --- a/libempathy-gtk/empathy-chat.c +++ b/libempathy-gtk/empathy-chat.c @@ -3611,6 +3611,7 @@ empathy_chat_dup_name (EmpathyChat *chat) g_return_val_if_fail (EMPATHY_IS_CHAT (chat), NULL); ret = priv->name; + if (!ret && priv->remote_contact) { ret = empathy_contact_get_alias (priv->remote_contact); } @@ -3618,7 +3619,15 @@ empathy_chat_dup_name (EmpathyChat *chat) if (!ret) ret = priv->id; - return g_strdup (ret ? ret : _("Conversation")); + if (!ret) + ret = _("Conversation"); + + if (priv->sms_channel) + /* Translators: this string is a something like + * "Escher Cat (SMS)" */ + return g_strdup_printf (_("%s (SMS)"), ret); + else + return g_strdup (ret); } const gchar * |