diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2010-01-01 21:02:23 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-01-06 23:18:29 +0800 |
commit | e38cc7c99febaf760bc07e118c8ce3f2d1ffe615 (patch) | |
tree | f7045b37466cbe75e0ae4ac6dc8a3e6c25a4eb6d /libempathy-gtk/empathy-contact-widget.c | |
parent | 909a8b53b6ef8ec6e4a9e5bed8bbb5226dc061f4 (diff) | |
download | gsoc2013-empathy-e38cc7c99febaf760bc07e118c8ce3f2d1ffe615.tar gsoc2013-empathy-e38cc7c99febaf760bc07e118c8ce3f2d1ffe615.tar.gz gsoc2013-empathy-e38cc7c99febaf760bc07e118c8ce3f2d1ffe615.tar.bz2 gsoc2013-empathy-e38cc7c99febaf760bc07e118c8ce3f2d1ffe615.tar.lz gsoc2013-empathy-e38cc7c99febaf760bc07e118c8ce3f2d1ffe615.tar.xz gsoc2013-empathy-e38cc7c99febaf760bc07e118c8ce3f2d1ffe615.tar.zst gsoc2013-empathy-e38cc7c99febaf760bc07e118c8ce3f2d1ffe615.zip |
Remove Pango markup from translatable strings where possible
Use GtkBuilder attributes on labels instead, and change one instance of code
to automatically add markup to the translated string.
Diffstat (limited to 'libempathy-gtk/empathy-contact-widget.c')
-rw-r--r-- | libempathy-gtk/empathy-contact-widget.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c index 134f67fb3..8b1522dc4 100644 --- a/libempathy-gtk/empathy-contact-widget.c +++ b/libempathy-gtk/empathy-contact-widget.c @@ -1365,7 +1365,11 @@ contact_widget_location_update (EmpathyContactWidget *information) value = g_hash_table_lookup (location, EMPATHY_LOCATION_TIMESTAMP); if (value == NULL) - gtk_label_set_markup (GTK_LABEL (information->label_location), _("<b>Location</b>")); + { + gchar *location = g_strdup_printf ("<b>%s</b>", _("Location")); + gtk_label_set_markup (GTK_LABEL (information->label_location), location); + g_free (location); + } else { gchar *user_date; |