[gnome-documents] Add context to disambiguate strings



commit 5ab1a202ce2bec254d0bfba85b4f1ce06c2feee9
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun Jul 31 15:30:37 2016 -0700

    Add context to disambiguate strings
    
    https://bugzilla.gnome.org/show_bug.cgi?id=760726

 data/ui/app-menu.ui |    2 +-
 src/mainToolbar.js  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/data/ui/app-menu.ui b/data/ui/app-menu.ui
index 62c1179..1133224 100644
--- a/data/ui/app-menu.ui
+++ b/data/ui/app-menu.ui
@@ -25,7 +25,7 @@
       </item>
       <item>
         <attribute name="action">app.quit</attribute>
-        <attribute name="label" translatable="yes">Quit</attribute>
+        <attribute name="label" translatable="yes" context="app menu">Quit</attribute>
       </item>
     </section>
   </menu>
diff --git a/src/mainToolbar.js b/src/mainToolbar.js
index 917831e..d2f9c08 100644
--- a/src/mainToolbar.js
+++ b/src/mainToolbar.js
@@ -88,7 +88,7 @@ const MainToolbar = new Lang.Class({
 
     addSearchButton: function() {
         let searchButton = new Gtk.ToggleButton({ image: new Gtk.Image ({ icon_name: 'edit-find-symbolic' }),
-                                                  tooltip_text: _("Search"),
+                                                  tooltip_text: Gettext.pgettext("toolbar button tooltip", 
"Search"),
                                                   action_name: 'app.search' });
         this.toolbar.pack_end(searchButton);
         return searchButton;


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