ui/guided: FDE string improvements
Remove references to the "model", which isn't a concept we expect the user to know about. General text tweaks on top of that.
This commit is contained in:
parent
4855fd316d
commit
b8ca9c54e8
|
@ -129,40 +129,42 @@ class TPMChoice:
|
||||||
help: str
|
help: str
|
||||||
|
|
||||||
|
|
||||||
|
help_texts = {
|
||||||
|
StorageEncryptionSupport.DISABLED:
|
||||||
|
_("TPM backed full-disk encryption has been disabled."),
|
||||||
|
StorageEncryptionSupport.AVAILABLE:
|
||||||
|
_("The entire disk will be encrypted and protected by the "
|
||||||
|
"TPM. If this option is deselected, the disk will be "
|
||||||
|
"unencrypted and without any protection."),
|
||||||
|
StorageEncryptionSupport.UNAVAILABLE:
|
||||||
|
# for translators: 'reason' is the reason FDE is unavailable.
|
||||||
|
_("TPM backed full-disk encryption is not available "
|
||||||
|
"on this device (the reason given was \"{reason}\")."),
|
||||||
|
}
|
||||||
|
|
||||||
choices = {
|
choices = {
|
||||||
StorageEncryptionSupport.DISABLED: {
|
StorageEncryptionSupport.DISABLED: {
|
||||||
safety: TPMChoice(
|
safety: TPMChoice(
|
||||||
enabled=False, default=False,
|
enabled=False, default=False,
|
||||||
help=_("The model being installed does not support TPM backed "
|
help=help_texts[StorageEncryptionSupport.DISABLED])
|
||||||
"full-disk encryption")) for safety in StorageSafety
|
for safety in StorageSafety
|
||||||
},
|
},
|
||||||
StorageEncryptionSupport.AVAILABLE: {
|
StorageEncryptionSupport.AVAILABLE: {
|
||||||
StorageSafety.ENCRYPTED: TPMChoice(
|
StorageSafety.ENCRYPTED: TPMChoice(
|
||||||
enabled=False, default=True,
|
enabled=False, default=True,
|
||||||
help=_("The model being installed requires TPM backed full-disk "
|
help=help_texts[StorageEncryptionSupport.AVAILABLE]),
|
||||||
"encryption")),
|
|
||||||
StorageSafety.PREFER_ENCRYPTED: TPMChoice(
|
StorageSafety.PREFER_ENCRYPTED: TPMChoice(
|
||||||
enabled=True, default=True,
|
enabled=True, default=True,
|
||||||
help=_("The entire disk will be encrypted and protected by the "
|
help=help_texts[StorageEncryptionSupport.AVAILABLE]),
|
||||||
"TPM. If this option is deselected, the disk will be "
|
|
||||||
"unencrypted and without any protection.")),
|
|
||||||
StorageSafety.PREFER_UNENCRYPTED: TPMChoice(
|
StorageSafety.PREFER_UNENCRYPTED: TPMChoice(
|
||||||
enabled=True, default=False,
|
enabled=True, default=False,
|
||||||
help=_("The model being installed does not prefer but allows TPM "
|
help=help_texts[StorageEncryptionSupport.AVAILABLE]),
|
||||||
"backed full-disk encryption")),
|
|
||||||
},
|
},
|
||||||
StorageEncryptionSupport.UNAVAILABLE: {
|
StorageEncryptionSupport.UNAVAILABLE: {
|
||||||
StorageSafety.PREFER_ENCRYPTED: TPMChoice(
|
safety: TPMChoice(
|
||||||
enabled=False, default=False,
|
enabled=False, default=False,
|
||||||
help=_("The model being installed prefers but does not require "
|
help=help_texts[StorageEncryptionSupport.UNAVAILABLE])
|
||||||
"TPM backed full-disk encryption and it is not available "
|
for safety in StorageSafety
|
||||||
"on this device (the reason given was \"{reason}\").")),
|
|
||||||
StorageSafety.PREFER_UNENCRYPTED: TPMChoice(
|
|
||||||
enabled=False, default=False,
|
|
||||||
# for translators: 'reason' is the reason FDE is unavailable.
|
|
||||||
help=_("The model being installed does not prefer TPM backed "
|
|
||||||
"full-disk encryption and it is not available on this "
|
|
||||||
"device (the reason given was \"{reason}\").")),
|
|
||||||
},
|
},
|
||||||
# StorageEncryptionSupport.DEFECTIVE: handled in controller code
|
# StorageEncryptionSupport.DEFECTIVE: handled in controller code
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue