diff options
author | Mike Fulbright <msf@redhat.com> | 2002-07-23 21:51:53 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2002-07-23 21:51:53 +0000 |
commit | 166d1a7039821376b586bbeca3b2e49c55311260 (patch) | |
tree | 8fee89f0789bb4fcac0c621a1f266ae223fe932c /partIntfHelpers.py | |
parent | da108bdc6d075d48dcbc50cb32c1c5b7e50e58c9 (diff) | |
download | anaconda-166d1a7039821376b586bbeca3b2e49c55311260.tar.gz anaconda-166d1a7039821376b586bbeca3b2e49c55311260.tar.xz anaconda-166d1a7039821376b586bbeca3b2e49c55311260.zip |
fixes for bug 68470
Diffstat (limited to 'partIntfHelpers.py')
-rw-r--r-- | partIntfHelpers.py | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/partIntfHelpers.py b/partIntfHelpers.py index 799772954..597f5b2f7 100644 --- a/partIntfHelpers.py +++ b/partIntfHelpers.py @@ -101,26 +101,24 @@ def sanityCheckMountPoint(mntpt, fstype, preexisting): def isNotChangable(request, requestlist): if request: if request.getProtected(): - return _("You cannot %s this partition, as it is holding the data " + return _("This partition is holding the data " "for the hard drive install.") if requestlist.isRaidMember(request): parentreq = requestlist.getRaidMemberParent(request) if parentreq.raidminor is not None: - return _("You cannot %%s this partition as it is part of " + return _("This partition is part of " "the RAID device /dev/md%s.") % (parentreq.raidminor,) else: - return _("You cannot %s this partition as it is part of a " - "RAID device.") + return _("This partition is part of a RAID device.") if requestlist.isLVMVolumeGroupMember(request): parentreq = requestlist.getLVMVolumeGroupMemberParent(request) if parentreq.volumeGroupName is not None: - return _("You cannot %%s this partition, as it is part of the " + return _("This partition is part of the " "LVM volume group '%s'.") % (parentreq.volumeGroupName,) else: - return _("You cannot %s this partition, as it is part of a " - "LVM volume group.") + return _("This partition is part of a LVM volume group.") return None @@ -176,7 +174,9 @@ def doDeletePartitionByRequest(intf, requestlist, partition, state = isNotChangable(request, requestlist) if state is not None: if not quiet: - intf.messageWindow(_("Unable To Delete"), state % ("delete",), custom_icon="error") + intf.messageWindow(_("Unable To Delete"), + _("You cannot delete this partition:\n\n") + state, + custom_icon="error") return (None, None) if confirm and not confirmDeleteRequest(intf, request): @@ -311,7 +311,8 @@ def doEditPartitionByRequest(intf, requestlist, part): if request: state = isNotChangable(request, requestlist) if state is not None: - intf.messageWindow(_("Unable To Edit"), state % ("edit",), custom_icon="error") + intf.messageWindow(_("Unable To Edit"), _("You cannot edit this partition:\n\n") + state, + custom_icon="error") return (None, None) if request.type == REQUEST_RAID: @@ -352,7 +353,8 @@ def doEditPartitionByRequest(intf, requestlist, part): if request: state = isNotChangable(request, requestlist) if state is not None: - intf.messageWindow(_("Unable To Edit"), state % ("edit",), custom_icon="error") + intf.messageWindow(_("Unable To Edit"), + _("You cannot edit this partition:\n\n") + state, custom_icon="error") return (None, None) return ("PARTITION", request) |