[nautilus/wip/csoriano/zoomsv3: 6/11] window: escape notification markup
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/csoriano/zoomsv3: 6/11] window: escape notification markup
- Date: Tue, 23 Feb 2016 15:47:23 +0000 (UTC)
commit 4fd05195448d1d631293394c01e41a98e0c01979
Author: Carlos Soriano <csoriano gnome org>
Date: Mon Feb 22 15:07:21 2016 +0100
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
src/nautilus-window.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 643d7a5..e1753f6 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]