[PATCH] Translate None for LVM RAID selection (#974801)

Brian C. Lane bcl at redhat.com
Mon Jun 24 19:12:05 UTC 2013


From: "Brian C. Lane" <bcl at redhat.com>

---
 pyanaconda/ui/gui/spokes/custom.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index da2808c..dfda5dc 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -541,7 +541,7 @@ class ContainerDialog(GUIObject):
 
         selected_level_string = store[itr][0]   # eg: "RAID1 (Redundancy)"
         level = selected_level_string.split()[0].lower()    # -> "raid1"
-        if level == "none":
+        if level == "none" or level == _("None").lower():
             level = None
 
         return level
@@ -557,7 +557,7 @@ class ContainerDialog(GUIObject):
 
         raid_level = self.raid_level
         if not raid_level or raid_level == "single":
-            raid_level = "None"
+            raid_level = _("None")
 
         # Set a default RAID level in the combo.
         for (i, row) in enumerate(raid_combo.get_model()):
-- 
1.8.1.4



More information about the anaconda-patches mailing list