]> git.0d.be Git - empathy.git/commitdiff
Add "(SMS)" to the tab name for SMS channels
authorDanielle Madeley <danielle.madeley@collabora.co.uk>
Thu, 7 Apr 2011 01:54:32 +0000 (11:54 +1000)
committerDanielle Madeley <danielle.madeley@collabora.co.uk>
Thu, 5 May 2011 06:31:27 +0000 (16:31 +1000)
libempathy-gtk/empathy-chat.c

index ec8e795289ff1c5546748c59657c88e6e7a681e7..5c8bbce3b4f094e850e7c066c6a05774c1c7fa71 100644 (file)
@@ -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 *