[libslab] Avoid markup in translatable strings
- From: Piotr DrÄg <piotrdrag src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libslab] Avoid markup in translatable strings
- Date: Wed, 5 Sep 2012 19:54:49 +0000 (UTC)
commit 8c981437222e4a76c8ee65ce65ddec5a85c6d8f6
Author: Gabor Kelemen <kelemeng gnome hu>
Date: Wed Sep 5 21:54:08 2012 +0200
Avoid markup in translatable strings
libslab/directory-tile.c | 2 +-
libslab/system-tile.c | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/libslab/directory-tile.c b/libslab/directory-tile.c
index f5a7ef1..d1c982c 100644
--- a/libslab/directory-tile.c
+++ b/libslab/directory-tile.c
@@ -166,7 +166,7 @@ directory_tile_new (const gchar *in_uri, const gchar *title, const gchar *icon_n
/* make open with default action */
- markup = g_markup_printf_escaped (_("<b>Open</b>"));
+ markup = g_markup_printf_escaped ("<b>%s</b>", _("Open"));
action = tile_action_new (TILE (this), open_with_default_trigger, markup, TILE_ACTION_OPENS_NEW_WINDOW);
g_free (markup);
diff --git a/libslab/system-tile.c b/libslab/system-tile.c
index 55c7a8d..899e3c1 100644
--- a/libslab/system-tile.c
+++ b/libslab/system-tile.c
@@ -76,6 +76,7 @@ system_tile_new (const gchar *desktop_item_id, const gchar *title)
gchar *header_txt = NULL;
gchar *markup;
+ gchar *str;
AtkObject *accessible = NULL;
@@ -123,10 +124,12 @@ system_tile_new (const gchar *desktop_item_id, const gchar *title)
menu_ctnr = GTK_CONTAINER (TILE (this)->context_menu);
- markup = g_markup_printf_escaped (_("<b>Open %s</b>"), header_txt);
+ str= g_strdup_printf(_("Open %s"), header_txt);
+ markup = g_markup_printf_escaped ("<b>%s</b>", str);
action = tile_action_new (TILE (this), open_trigger, markup, TILE_ACTION_OPENS_NEW_WINDOW);
actions [SYSTEM_TILE_ACTION_OPEN] = action;
g_free (markup);
+ g_free (str);
menu_item = GTK_WIDGET (tile_action_get_menu_item (action));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]