summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2016-02-22 15:07:21 +0100
committerCarlos Soriano <csoriano@gnome.org>2016-02-24 11:21:04 +0100
commit427d89e90c3039c3c1d65a58822e77ff9870fd4b (patch)
tree69fa235fc212cb65f904ce415d2c30f1ecae94bf
parent5abce3405a3c5775ca7222edd16d100740d38630 (diff)
downloadnautilus-427d89e90c3039c3c1d65a58822e77ff9870fd4b.tar.gz
window: escape notification markup
If not, ampersands and so on are parsed and makes the label on the notifications to disappear. https://bugzilla.gnome.org/show_bug.cgi?id=758447
-rw-r--r--src/nautilus-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 643d7a550..e1753f614 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -1579,12 +1579,12 @@ nautilus_window_notification_delete_get_label (NautilusFileUndoInfo *undo_info,
if (length == 1) {
file_label = g_file_get_basename (files->data);
/* Translators: only one item has been deleted and %s is its name. */
- label = g_strdup_printf (_("ā€œ%sā€ deleted"), file_label);
+ label = g_markup_printf_escaped (_("ā€œ%sā€ deleted"), file_label);
g_free (file_label);
} else {
/* Translators: one or more items might have been deleted, and %d
* is the count. */
- label = g_strdup_printf (ngettext ("%d file deleted", "%d files deleted", length), length);
+ label = g_markup_printf_escaped (ngettext ("%d file deleted", "%d files deleted", length), length);
}
return label;