[gnome-boxes] wizard-source: Mnemonics for media menu buttons



commit 34261f5a5919b143c3e073f6c6405a04ca7a1398
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Aug 6 21:09:04 2015 +0100

    wizard-source: Mnemonics for media menu buttons
    
    Add mnemonic to following media menu buttons:
    
    * Enter URL
    * Select a file
    * Import system libvirt VM(s)
    
    https://bugzilla.gnome.org/show_bug.cgi?id=731970

 data/ui/wizard-source.ui         |    7 +++++--
 src/libvirt-system-importer.vala |    6 +++---
 2 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/data/ui/wizard-source.ui b/data/ui/wizard-source.ui
index 14aac09..661a9d3 100644
--- a/data/ui/wizard-source.ui
+++ b/data/ui/wizard-source.ui
@@ -62,7 +62,8 @@
                   <object class="GtkLabel" id="enter_url_label">
                     <property name="visible">True</property>
                     <property name="halign">start</property>
-                    <property name="label" translatable="yes">Enter URL</property>
+                    <property name="use-underline">True</property>
+                    <property name="label" translatable="yes">_Enter URL</property>
                   </object>
                   <packing>
                     <property name="expand">True</property>
@@ -104,7 +105,8 @@
                   <object class="GtkLabel" id="select_file_label">
                     <property name="visible">True</property>
                     <property name="halign">start</property>
-                    <property name="label" translatable="yes">Select a file</property>
+                    <property name="use-underline">True</property>
+                    <property name="label" translatable="yes">_Select a file</property>
                   </object>
                   <packing>
                     <property name="expand">True</property>
@@ -146,6 +148,7 @@
                   <object class="GtkLabel" id="libvirt_sys_import_label">
                     <property name="visible">True</property>
                     <property name="halign">start</property>
+                    <property name="use-underline">True</property>
                   </object>
                   <packing>
                     <property name="expand">True</property>
diff --git a/src/libvirt-system-importer.vala b/src/libvirt-system-importer.vala
index 43c4ef4..80ad064 100644
--- a/src/libvirt-system-importer.vala
+++ b/src/libvirt-system-importer.vala
@@ -15,11 +15,11 @@ private class Boxes.LibvirtSystemImporter: GLib.Object {
             var num_domains = domains.length ();
 
             if (num_domains == 1)
-                return _("Import '%s' from system broker").printf (domains.data.get_name ());
+                return _("_Import '%s' from system broker").printf (domains.data.get_name ());
             else
                 // Translators: %u here is the number of boxes available for import
-                return ngettext ("Import %u box from system broker",
-                                 "Import %u boxes from system broker",
+                return ngettext ("_Import %u box from system broker",
+                                 "_Import %u boxes from system broker",
                                  num_domains).printf (num_domains);
         }
     }


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