[dconf-editor/gnome-3-24] Fix problem on localized strings.



commit 88508fd9114c04fbf3be14e4beae00de531765ad
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sun Nov 5 07:16:59 2017 +0100

    Fix problem on localized strings.

 editor/dconf-editor.vala     |    2 +-
 editor/dconf-window.vala     |    2 +-
 editor/key-list-box-row.vala |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/editor/dconf-editor.vala b/editor/dconf-editor.vala
index aa2f598..2e4ca4c 100644
--- a/editor/dconf-editor.vala
+++ b/editor/dconf-editor.vala
@@ -100,7 +100,7 @@ class ConfigurationEditor : Gtk.Application
     {
         if (gvariant == null)
             return;
-        copy (((!) gvariant).get_string ());
+        copy (((!) gvariant).get_string ().compress ());
     }
 
     public void copy (string text)
diff --git a/editor/dconf-window.vala b/editor/dconf-window.vala
index d0c3329..5dc307a 100644
--- a/editor/dconf-window.vala
+++ b/editor/dconf-window.vala
@@ -245,7 +245,7 @@ class DConfWindow : ApplicationWindow
         GLib.Menu section;
 
         GLib.Menu menu = new GLib.Menu ();
-        menu.append (_("Copy current path"), "app.copy(\"" + current_path.escape ("") + "\")");
+        menu.append (_("Copy current path"), "app.copy(\"" + current_path.escape (null).escape (null) + 
"\")");
 
         if (current_path.has_suffix ("/"))
         {
diff --git a/editor/key-list-box-row.vala b/editor/key-list-box-row.vala
index f3b283e..2fbeaba 100644
--- a/editor/key-list-box-row.vala
+++ b/editor/key-list-box-row.vala
@@ -418,7 +418,7 @@ private class ContextPopover : Popover
     public void new_copy_action (string text)
     {
         /* Translators: "copy to clipboard" action in the right-click menu on the list of keys */
-        current_section.append (_("Copy"), "app.copy(\"" + text.escape ("") + "\")");
+        current_section.append (_("Copy"), "app.copy(\"" + text.escape (null).escape (null) + "\")");
     }
 
     public void set_group (string group_name)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]