* fixed language germanism

* improved comments
This commit is contained in:
age 2007-07-31 10:02:57 +00:00
parent d5c630393a
commit bab09231d7
2 changed files with 6 additions and 8 deletions

View file

@ -481,20 +481,18 @@ class partition(cryptobox.plugins.base.CryptoBoxPlugin):
def __get_partition_name(self, blockdev, number): def __get_partition_name(self, blockdev, number):
"""Return the name of a specific partition of a device """Return the devicename of a specific partition of a device
No tests are performed, whether the partition exists or
not.
""" """
## do we need to put a "p" between name and number?
## TODO: should we check for existence?
if re.search("[0-9]$", blockdev): if re.search("[0-9]$", blockdev):
## blockdev endswith a digit - we need a 'p' ## blockdev ends with a digit, so it is a partition, we insert a 'p'
return "%sp%d" % (blockdev, number) return "%sp%d" % (blockdev, number)
else: else:
## no 'p' necessary ## whole disk, no 'p' necessary
return "%s%d" % (blockdev, number) return "%s%d" % (blockdev, number)
def __format_one_partition(self, dev_name, fs_type): def __format_one_partition(self, dev_name, fs_type):
"""Format a single partition """Format a single partition
""" """

View file

@ -53,7 +53,7 @@ WarningMessage {
InvalidContainerType { InvalidContainerType {
Title = Unknown format Title = Unknown format
Text = The type of this volume ist not known. Maybe you want to initialize it first? Text = The type of this volume is not known. Maybe you want to initialize it first?
Link.Text = Format volume Link.Text = Format volume
Link.Rel = volume_format_fs Link.Rel = volume_format_fs
} }