aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-log-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk/empathy-log-window.c')
-rw-r--r--libempathy-gtk/empathy-log-window.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index bd27568d3..6088874ea 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -739,7 +739,7 @@ get_parent_iter_for_message (TplEvent *event,
pretty_date = g_date_time_format (date,
C_("A date with the time", "%A, %e %B %Y %X"));
- body = g_strdup_printf (_("Chat with %s"),
+ body = g_markup_printf_escaped (_("Chat with %s"),
get_contact_alias_for_message (message));
gtk_tree_store_append (store, &iter, NULL);
@@ -803,14 +803,16 @@ log_window_append_chat_message (TplEvent *event,
if (tpl_text_event_get_message_type (TPL_TEXT_EVENT (event))
== TP_CHANNEL_TEXT_MESSAGE_TYPE_ACTION)
{
- body = g_strdup_printf ("* %s %s",
+ /* Translators: this is an emote: '* Danielle waves' */
+ body = g_markup_printf_escaped (_("<i>* %s %s</i>"),
tpl_entity_get_alias (tpl_event_get_sender (event)),
empathy_message_get_body (message));
}
else
{
- body = g_strdup_printf (
- C_("First is a contact, second is what was said", "%s: %s"),
+ /* Translators: this is a message: 'Danielle: hello'
+ * The string in bold is the sender's name */
+ body = g_markup_printf_escaped (_("<b>%s:</b> %s"),
tpl_entity_get_alias (tpl_event_get_sender (event)),
empathy_message_get_body (message));
}
@@ -1885,7 +1887,7 @@ log_window_events_setup (EmpathyLogWindow *window)
cell = gtk_cell_renderer_text_new ();
gtk_tree_view_column_pack_start (column, cell, TRUE);
gtk_tree_view_column_add_attribute (column, cell,
- "text", COL_EVENTS_TEXT);
+ "markup", COL_EVENTS_TEXT);
cell = gtk_cell_renderer_text_new ();
g_object_set (cell, "xalign", 1.0, NULL);