[gnome-boxes] wizard-source: Minor refactor



commit 6ae49cb6d44b3354a6bd6e424b91b3b46eb824a4
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Sat Jan 4 14:47:41 2014 +0000

    wizard-source: Minor refactor

 data/ui/wizard-media-entry.ui |    1 +
 po/POTFILES.in                |    1 +
 src/wizard-source.vala        |    3 +--
 3 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/data/ui/wizard-media-entry.ui b/data/ui/wizard-media-entry.ui
index a8585f6..09f9249 100644
--- a/data/ui/wizard-media-entry.ui
+++ b/data/ui/wizard-media-entry.ui
@@ -51,6 +51,7 @@
                 <property name="visible">True</property>
                 <property name="ellipsize">end</property>
                 <property name="xalign">0.0</property>
+                <property name="label" translatable="yes">Unknown media</property>
                 <style>
                   <class name="boxes-step-label"/>
                 </style>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 1bce449..6ee20ac 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -3,6 +3,7 @@ data/gnome-boxes.desktop.in.in
 [type: gettext/ini]data/gnome-boxes-search-provider.ini.in
 data/org.gnome.boxes.gschema.xml.in
 [type: gettext/glade]data/ui/unattended-setup-box.ui
+[type: gettext/glade]data/ui/wizard-media-entry.ui
 [type: gettext/glade]data/ui/wizard-scrolled.ui
 [type: gettext/glade]data/ui/wizard-source.ui
 src/app.vala
diff --git a/src/wizard-source.vala b/src/wizard-source.vala
index 1506486..19c76e9 100644
--- a/src/wizard-source.vala
+++ b/src/wizard-source.vala
@@ -90,8 +90,7 @@ private class Boxes.WizardMediaEntry : Gtk.Button {
             if (media.os.vendor != null)
                 // Translator comment: %s is name of vendor here (e.g Canonical Ltd or Red Hat Inc)
                 details_label.label += _(" from %s").printf (media.os.vendor);
-        } else
-            details_label.label += _("Unknown media");
+        }
     }
 }
 


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