From cb6f0691b1129d7ba2e5d88147733b8e87241ad5 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 27 Aug 2010 12:49:31 +0200 Subject: [PATCH] remove markups around 'Location' --- libempathy-gtk/empathy-contact-widget.c | 6 +++++- libempathy-gtk/empathy-individual-widget.c | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c index da4e002e..4ee188cd 100644 --- a/libempathy-gtk/empathy-contact-widget.c +++ b/libempathy-gtk/empathy-contact-widget.c @@ -695,13 +695,17 @@ contact_widget_location_update (EmpathyContactWidget *information) gchar *text; gint64 stamp; time_t time_; + gchar *tmp; stamp = g_value_get_int64 (value); time_ = stamp; user_date = empathy_time_to_string_relative (time_); - text = g_strconcat ( _("Location, "), user_date, NULL); + tmp = g_strdup_printf ("%s", _("Location")); + /* translators: format is "Location, $date" */ + text = g_strdup_printf (_("%s, %s"), tmp, user_date); + g_free (tmp); gtk_label_set_markup (GTK_LABEL (information->label_location), text); g_free (user_date); g_free (text); diff --git a/libempathy-gtk/empathy-individual-widget.c b/libempathy-gtk/empathy-individual-widget.c index 302aa4fb..8c2604c8 100644 --- a/libempathy-gtk/empathy-individual-widget.c +++ b/libempathy-gtk/empathy-individual-widget.c @@ -585,13 +585,17 @@ location_update (EmpathyIndividualWidget *self) gchar *text; gint64 stamp; time_t time_; + gchar *tmp; stamp = g_value_get_int64 (value); time_ = stamp; user_date = empathy_time_to_string_relative (time_); - text = g_strconcat ( _("Location, "), user_date, NULL); + tmp = g_strdup_printf ("%s", _("Location")); + /* translators: format is "Location, $date" */ + text = g_strdup_printf (_("%s, %s"), tmp, user_date); + g_free (tmp); gtk_label_set_markup (GTK_LABEL (priv->label_location), text); g_free (user_date); g_free (text); -- 2.39.2