From 835171dc6ce2575ee6da40aa4e163b3bec09936f Mon Sep 17 00:00:00 2001 From: Nikos Skalkotos Date: Thu, 28 Jun 2012 13:50:33 +0300 Subject: [PATCH] Fix minor typos --- image_creator/dialog_main.py | 10 ++++++---- image_creator/disk.py | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/image_creator/dialog_main.py b/image_creator/dialog_main.py index 6870fd8..6b99af3 100644 --- a/image_creator/dialog_main.py +++ b/image_creator/dialog_main.py @@ -375,8 +375,9 @@ def kamaki_menu(session): (code, choice) = d.menu( text="Choose one of the following or press to go back.", - width=MENU_WIDTH, choices=choices, cancel="Back", - default_item=default_item, title="Image Registration Menu") + width=MENU_WIDTH, choices=choices, cancel="Back", height=13, + menu_height=5, default_item=default_item, + title="Image Registration Menu") if code in (d.DIALOG_CANCEL, d.DIALOG_ESC): return False @@ -607,7 +608,7 @@ def sysprep(session): syspreps = [s for s in all_syspreps if s not in session['exec_syspreps']] if len(syspreps) == 0: - d.msgbox("No system preparation task left to run!", width=MSGBOX_WIDTH) + d.msgbox("No system preparation task available to run!", title="System Preperation", width=MSGBOX_WIDTH) return while 1: @@ -677,7 +678,8 @@ def shrink(session): shrinked = 'shrinked' in session and session['shrinked'] if shrinked: - d.msgbox("You have already shrinked your image!") + d.msgbox("The image is already shrinked!", title="Image Shrinking", + width=MSGBOX_WIDTH) return True msg = "This operation will shrink the last partition of the image to " \ diff --git a/image_creator/disk.py b/image_creator/disk.py index 2c034a9..a283d7a 100644 --- a/image_creator/disk.py +++ b/image_creator/disk.py @@ -210,7 +210,7 @@ class DiskDevice(object): raise FatalError("No operating system found") if len(roots) > 1: raise FatalError("Multiple operating systems found." - "We only support images with one filesystem.") + "We only support images with one OS.") self.root = roots[0] self.guestfs_device = self.g.part_to_dev(self.root) self.meta['SIZE'] = self.g.blockdev_getsize64(self.guestfs_device) -- 1.7.10.4