Исправлен английский

master3.3
parent f3d26b8ad2
commit f75e4ebd97

@ -509,31 +509,33 @@ class VariableClAutopartitionScheme(AutopartitionHelper,Variable,AutoPartition):
("data",_("/var/calculate partition")), ("data",_("/var/calculate partition")),
("home",_("Mount /var/calculate/home to /home")), ("home",_("Mount /var/calculate/home to /home")),
("boot",_("Separate boot partition")), ("boot",_("Separate boot partition")),
("uefi",_("Use UEFI bootloader")), ("uefi",_("Use the UEFI bootloader")),
("lvm",_("Use LVM")), ("lvm",_("Use LVM")),
("grub",_("Create bios_grub partition")), ("grub",_("Create the bios_grub partition")),
] ]
def check(self,value): def check(self,value):
if "uefi" in value: if "uefi" in value:
if self.Get('os_uefi_set') == 'off': if self.Get('os_uefi_set') == 'off':
raise VariableError( raise VariableError(
_("System must be loaded in UEFI for using this bootloader")) _("Your system must be loaded in UEFI for using this "
"bootloader"))
if self.Get('os_install_arch_machine') != 'x86_64': if self.Get('os_install_arch_machine') != 'x86_64':
raise VariableError( raise VariableError(
_("Architecture of the target system must be x86_64 " _("Architecture of the target system must be x86_64 "
"for using UEFI bootloader")) "for using the UEFI bootloader"))
if self.Get('cl_autopartition_table') != 'gpt': if self.Get('cl_autopartition_table') != 'gpt':
raise VariableError( raise VariableError(
_("Partition table must be GPT for using UEFI bootloader")) _("Partition table must be GPT for using UEFI bootloader"))
else: else:
if self.Get('cl_autopartition_table') == 'gpt' and not "grub" in value: if self.Get('cl_autopartition_table') == 'gpt' and not "grub" in value:
raise VariableError( raise VariableError(
_("For grub installation need bios_grub partition")) _("The 'bios_grub' partition is needed for grub install"))
if "grub" in value: if "grub" in value:
if self.Get('cl_autopartition_table') != 'gpt': if self.Get('cl_autopartition_table') != 'gpt':
raise VariableError( raise VariableError(
_("Partition table must be GPT for bios_grub partition")) _("For the bios_grub partition, the partition table "
"must be GPT"))
class VariableClAutopartitionRootSize(AutopartitionHelper,Variable): class VariableClAutopartitionRootSize(AutopartitionHelper,Variable):

@ -910,7 +910,7 @@ class VariableOsLocationDest(LocationHelper,Variable):
where='os_install_disk_type', where='os_install_disk_type',
ne='disk-partition') ne='disk-partition')
if set(efiDisks) & set(wrongPart): if set(efiDisks) & set(wrongPart):
raise VariableError(_("UEFI partition must be partition on disk")) raise VariableError(_("UEFI partition must be a disk partition"))
############################### ###############################
# check cross bind mount points # check cross bind mount points
############################### ###############################
@ -1701,7 +1701,7 @@ class VariableOsInstallMbr(LocationHelper,Variable):
where='os_disk_id',eq='EF02') where='os_disk_id',eq='EF02')
if not mbrDisk in bios_grub: if not mbrDisk in bios_grub:
raise VariableError( raise VariableError(
_("Disk %s must has 'bios_grub' partition")%mbrDisk) _("Disk %s must have a 'bios_grub' partition")%mbrDisk)
if value: if value:
if self.Get('os_grub2_path'): if self.Get('os_grub2_path'):
self.checkForGrub2() self.checkForGrub2()
@ -1749,7 +1749,7 @@ class VariableOsInstallMbr(LocationHelper,Variable):
Network setting up unavailable for flash installation Network setting up unavailable for flash installation
""" """
if self.Get('os_install_uefi_set') == "on": if self.Get('os_install_uefi_set') == "on":
return _("MBR is not using with UEFI bootloader") return _("MBR is not used with the UEFI bootloader")
if self.Get('cl_autopartition_set') == "on": if self.Get('cl_autopartition_set') == "on":
return \ return \
_("The layout is not available with autopartitioning") _("The layout is not available with autopartitioning")

@ -539,8 +539,8 @@ class VariableClImageNewOnly(Variable):
value = "off" value = "off"
def init(self): def init(self):
self.label = _("Install newer images only") self.label = _("Install the newer image only")
self.help = _("install newer images only") self.help = _("install the newer image only")
def installedBuild(self): def installedBuild(self):
""" """

@ -289,7 +289,7 @@ class VariableOsInstallNetStatus(NetHelper,Variable):
def choice(self): def choice(self):
return (("dhcp",_("DHCP")), return (("dhcp",_("DHCP")),
("off", _("disable")), ("off", _("Disabled")),
("auto", _("Auto"))) ("auto", _("Auto")))
class VariableOsInstallNetIp(NetHelper,ReadonlyVariable): class VariableOsInstallNetIp(NetHelper,ReadonlyVariable):

@ -622,14 +622,16 @@ class VariableOsInstallUefiSet(Variable):
if self.Get('os_uefi_set') == 'off' and \ if self.Get('os_uefi_set') == 'off' and \
self.Get('os_install_root_type') == 'hdd': self.Get('os_install_root_type') == 'hdd':
raise VariableError( raise VariableError(
_("System must be loaded in UEFI for using this bootloader")) _("Your system must be loaded in UEFI for using this "
"bootloader"))
if not 'gpt' in self.Get('os_device_table'): if not 'gpt' in self.Get('os_device_table'):
raise VariableError( raise VariableError(
_("Need GPT for using UEFI bootloader")) _("GPT is needed for using the UEFI bootloader"))
if not (self.Get('os_install_disk_efi') or \ if not (self.Get('os_install_disk_efi') or \
"/boot/efi" in self.Get('os_location_dest')): "/boot/efi" in self.Get('os_location_dest')):
raise VariableError( raise VariableError(
_("Need EF00 partition for using UEFI bootloader")) _("A EF00 partition is needed for using "
"the UEFI bootloader"))
if self.Get('os_install_arch_machine') != 'x86_64': if self.Get('os_install_arch_machine') != 'x86_64':
raise VariableError( raise VariableError(
_("Architecture of the target system must be x86_64")) _("Architecture of the target system must be x86_64"))

Loading…
Cancel
Save