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-23 16:46:18 +0100
commit4fd05195448d1d631293394c01e41a98e0c01979 (patch)
treedda19724f7b3a84fb98cd75e454824fbb69d47bd
parenteb725fc71e648a079b59ccbca510d9b71453848b (diff)
downloadnautilus-4fd05195448d1d631293394c01e41a98e0c01979.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;