[empathy: 8/14] Add "(SMS)" to the tab name for SMS channels



commit 8d16f171e0e256e0d8c954c7deb7c410e8e66465
Author: Danielle Madeley <danielle madeley collabora co uk>
Date:   Thu Apr 7 11:54:32 2011 +1000

    Add "(SMS)" to the tab name for SMS channels

 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 ec8e795..5c8bbce 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 *



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]