[nautilus] window: escape notification markup



commit 427d89e90c3039c3c1d65a58822e77ff9870fd4b
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]