[gnome-boxes] Mark live media as such in its label



commit 21a00127c721cc4705d1f3e03ae231c1b4984770
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Apr 25 05:42:35 2012 +0300

    Mark live media as such in its label
    
    This would also imply having this suffix in VM names.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=674328

 src/installer-media.vala |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/installer-media.vala b/src/installer-media.vala
index 24f341c..39689fb 100644
--- a/src/installer-media.vala
+++ b/src/installer-media.vala
@@ -25,6 +25,9 @@ private class Boxes.InstallerMedia : Object {
         this.os_media = media;
         this.resources = resources;
         from_image = true;
+
+        if (media.live)
+            this.label = _("%s (Live)").printf (label);
     }
 
     public static async InstallerMedia create_for_path (string       path,
@@ -51,6 +54,10 @@ private class Boxes.InstallerMedia : Object {
 
         if (os != null)
             label = os.get_name ();
+            if (os_media.live)
+                // Translators: We are appending " (Live)" suffix to name of OS media to indication that it's live.
+                //              http://en.wikipedia.org/wiki/Live_CD
+                label = _("%s (Live)").printf (label);
 
         if (label == null)
             label = Path.get_basename (device_file);



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