Browse Source

* fixed language germanism

* improved comments
master
age 15 years ago
parent
commit
bab09231d7
  1. 12
      plugins/partition/partition.py
  2. 2
      plugins/volume_mount/language.hdf

12
plugins/partition/partition.py

@ -481,20 +481,18 @@ class partition(cryptobox.plugins.base.CryptoBoxPlugin):
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):
## 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)
else:
## no 'p' necessary
## whole disk, no 'p' necessary
return "%s%d" % (blockdev, number)
def __format_one_partition(self, dev_name, fs_type):
"""Format a single partition
"""

2
plugins/volume_mount/language.hdf

@ -53,7 +53,7 @@ WarningMessage {
InvalidContainerType {
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.Rel = volume_format_fs
}

Loading…
Cancel
Save