Sync english messages with i18n.

master
Mike Hiretsky 13 years ago
parent 9d78580544
commit 095107a219

@ -197,7 +197,7 @@ class cl_builder(color_print):
except KeyboardInterrupt:
chrootCommand.kill()
raise BuilderError(
_("An interrupt occurred during the command executing")+
_("Interrupted while executing the command")+
":\n %s"%self._getCommand(chrootCommand.command))
return chrootCommand
@ -250,7 +250,7 @@ class cl_builder(color_print):
self.printMessageForTest(_("Unmounting %s")%(target[len(mp):]))
umountProcess = process("umount",target)
if umountProcess.failed():
raise BuilderError(_("Can not umount %s")%target)
raise BuilderError(_("Failed to unmount %s")%target)
self.printByResult(True)
distrPath = distr.convertToDirectory().getDirectory()
self.cleanNeedlessKernelData(distrPath)
@ -283,7 +283,7 @@ class cl_builder(color_print):
"""Restore profile"""
if not self.curProfile:
return
self.printMessageForTest(_("Restore system profile"))
self.printMessageForTest(_("Restoring the system profile"))
builderPath = self.clVars.Get('cl_builder_path')
curProfileFile = pathJoin(builderPath,"etc/make.profile")
profile = self.clVars.Get('os_builder_profile')
@ -301,7 +301,7 @@ class cl_builder(color_print):
self.sourceDistr.close()
self.printByResult(True)
self.sourceDistr = None
self.printMessageForTest(_("Creating iso image"))
self.printMessageForTest(_("Creating the iso image"))
def flashPrepacking(self,directory):
self.printByResult(True)
@ -358,17 +358,18 @@ class cl_builder(color_print):
open(configPath,'r'))
if not res:
self.printERROR(_("ERROR") +": " +
_("kernel not support '%s' compression format for squashfs")%
_("the kernel does not support '%s' "
"compression format for squashfs")%
self.compression)
return False
return True
def printInfo(self):
self.printSUCCESS(_("Creating image of") + " Calculate Linux")
self.printSUCCESS(_("Creating an image of") + " Calculate Linux")
self.defaultPrint("%s\n"%_("System information"))
subname = self.clVars.Get('os_builder_linux_subname')
subname = (" %s"%subname) if subname else ""
self.printSUCCESS(_("Building system")+": %s"%
self.printSUCCESS(_("System to be built")+": %s"%
self.clVars.Get('os_builder_linux_name')+subname)
self.printSUCCESS(_("System version")+": %s"%
self.clVars.Get('os_builder_linux_ver'))
@ -377,33 +378,35 @@ class cl_builder(color_print):
self.printSUCCESS(_("Free disk space for iso building: %s")%
self.getFreeFor(path.dirname(path.normpath(
self.clVars.Get('cl_builder_iso_path')))))
self.printSUCCESS(_("Free disk space for iso image: %s")%
self.printSUCCESS(_("Free disk space for the iso image: %s")%
self.getFreeFor(path.dirname(path.normpath(
self.clVars.Get('cl_builder_image')))))
self.defaultPrint("%s\n"%_("Perform pre-install checkups"))
self.defaultPrint("%s\n"%_("Performing pre-install checkups"))
imagefile = self.clVars.Get('cl_builder_image')
if imagefile:
self.printSUCCESS(_("Image will be created at: %s")% imagefile)
self.printSUCCESS(_("Image to be created at: %s")% imagefile)
if not self.checkSquashCompress():
return False
if path.exists(imagefile):
self.printWARNING(_("WARNING") +": " +
_("image already exists") + ", "+
_("continuation of the operation will overwrite it"))
_("this image already exists") + ", "+
_("continuing the operation will overwrite it"))
if self.getParentMountFor(path.dirname(path.normpath(
imagefile))) == "/":
if self.clVars.Get('os_root_type')=='livecd':
self.printWARNING(_("WARNING") +": " +
_("image will be created on temporary filesystem"))
_("the image will be created on a "
"temporary filesystem"))
else:
self.printWARNING(_("WARNING") +": " +
_("image will be created on disk which mounted to root"))
_("the image will be created on the disk mounted to root"))
warningProc = \
self.getProcessByRoot(self.clVars.Get('cl_builder_path'))
if warningProc:
self.printWARNING(_("WARNING") +": " +
_("continuation of the operation will kill follow process:"))
_("continuing the operation will kill the "
"following processes:"))
for procObj in warningProc:
self.printWARNING(
" %s"%" ".join(
@ -416,11 +419,12 @@ class cl_builder(color_print):
return True
def printRescratchInfo(self):
self.printSUCCESS(_("Rebuilding live image of") + " Calculate Linux")
self.printSUCCESS(_("Rebuilding the live image of") +
" Calculate Linux")
self.defaultPrint("%s\n"%_("System information"))
subname = self.clVars.Get('os_builder_linux_subname')
subname = (" %s"%subname) if subname else ""
self.printSUCCESS(_("Building system")+": %s"%
self.printSUCCESS(_("System to be built")+": %s"%
self.clVars.Get('os_builder_linux_name')+subname)
self.printSUCCESS(_("System version")+": %s"%
self.clVars.Get('os_builder_linux_ver'))
@ -429,15 +433,15 @@ class cl_builder(color_print):
self.printSUCCESS(_("Free disk space on flash: %s")%
self.getFreeFor(path.normpath(
self.clVars.Get('cl_builder_iso_path'))))
self.defaultPrint("%s\n"%_("Perform pre-install checkups"))
self.defaultPrint("%s\n"%_("Performing pre-install checkups"))
self.printSUCCESS(_("Image will be created in: %s")%
self.printSUCCESS(_("Image to be created in: %s")%
self.clVars.Get('cl_builder_iso_path'))
if not self.checkSquashCompress():
return False
if self.clVars.Get('cl_builder_remove_squash'):
self.printSUCCESS(
_("Follow squash images will be removed: %s\n")%
_("The following squash images will be removed: %s\n")%
", ".join(self.clVars.Get('cl_builder_remove_squash')))
else:
self.defaultPrint("\n")
@ -448,30 +452,30 @@ class cl_builder(color_print):
buildDirectory = self.clVars.Get('cl_builder_iso_path')
if len(filter(lambda x:"cl-builder" in x,getRunCommands()))>2:
self.printERROR(
_("Before proceeding, complete the program cl-builder"))
_("Before proceeding, complete the cl-builder program"))
return False
if path.realpath(self.clVars.Get('cl_builder_path')) == "/":
self.printERROR(_("Source system should not be '/'"))
self.printERROR(_("The source system should not be '/'"))
return False
minver = "10.8"
if getTupleVersion(self.clVars.Get('os_builder_linux_ver')) < \
getTupleVersion(minver):
self.printERROR(_("Command is supported for system not less version"
" %s") % minver )
self.printERROR(_("Command supported only on system %s and higher")
% minver )
return False
elif not self.clVars.Get('os_builder_linux_shortname') in \
varsShare.dictNameSystem.keys():
self.printERROR(_("Distributive is not Calculate Linux"))
self.printERROR(_("This distribution is not Calculate Linux"))
return False
elif not self.clVars.Get('cl_builder_kernel'):
self.printERROR(_("Can not detect kernel"))
self.printERROR(_("Cannot detect the kernel"))
return False
elif not self.clVars.Get('cl_builder_initrd_install'):
self.printERROR(_("Can not detect initramfs"))
self.printERROR(_("Cannot detect initramfs"))
return False
elif not rescratch and path.exists(buildDirectory):
self.printWARNING(
_("Directory '%s' for building iso is already exists")%
_("Directory '%s' for iso building already exists")%
buildDirectory)
return False
return True
@ -503,18 +507,18 @@ class cl_builder(color_print):
self.sourceDistr = DirectoryDistributive(sourceDirectory,
mdirectory=bindDirectory)
if not force:
dialogMessage = _("Continue the creating image of the system") \
dialogMessage = _("Continue creating the system image") \
+ " (yes/no)"
dialogRes = dialogYesNo(dialogMessage)
if dialogRes in (None,False):
self.assembleIso = False
self.printERROR(_("Interrupting the image creating"))
self.printERROR(_("Image creating interrupted"))
return False
killMap = [(0,15,_("Terminating %s processes")),
(4,9,_("Kill %s processes")),
(2,0,None),
(10,9,_("Repeat kill %s processes"))]
(10,9,_("Killing again %s processes"))]
listing = self.getProcessByRoot(self.clVars.Get('cl_builder_path'))
for waitTime,killCode,msg in killMap:
sleep(waitTime)
@ -529,30 +533,22 @@ class cl_builder(color_print):
continue
for i in listing:
os.kill(int(i['pid']),killCode)
self.printMessageForTest(_("Prepare data for live image"))
self.printMessageForTest(_("Preparing data for the live image"))
self.prepareSourceDistributive(self.sourceDistr)
self.printByResult(True)
self.targetDistr.prepareIso = self.isoPrepacking
self.printMessageForTest(_("Creating squash image"))
self.printMessageForTest(_("Creating the squash image"))
self.targetDistr.installFrom(self.sourceDistr)
self.printByResult(True)
if self.clVars.Get('cl_builder_isohybrid_set') == 'on':
self.printMessageForTest(_("Performing isohybrid"))
processIsoHybrid = process("/usr/bin/isohybrid",isoFile)
self.printByResult(processIsoHybrid.success())
self.printMessageForTest(_("Creating installed package list"))
self.printMessageForTest(_("Generating the list of installed packages"))
self.printByResult(self.createPackageList(sourceDirectory,
isoFile[:-4]+".list"))
self.printMessageForTest(_("Creating DIGESTS file"))
self.printMessageForTest(_("Creating the DIGESTS file"))
self.printByResult(self.createDigest(isoFile,isoFile+".DIGESTS"))
#self.targetDistr = PartitionDistributive(rootPartdev,flagRemoveDir=False)
#dd = DirectoryDistributive(mp,parent=self.targetDistr)
#self.removeVars('os_assemble_linux_ver', 'os_assemble_linux_shortname',
# 'cl_assemble_image', 'cl_assemble_step_system',
# 'cl_assemble_make', 'cl_assemble_step_world',
# 'cl_assemble_step_newuse', 'cl_assemble_step_update',
# 'cl_assemble_path')
return True
def removeVars(self,*varsname):
@ -572,7 +568,7 @@ class cl_builder(color_print):
if not (self.clVars.Get('os_root_type') == 'livecd' \
and os.access(self.clVars.Get('cl_builder_iso_path'),os.W_OK)):
self.printERROR(
_("The computer must be load from the flash in Builder mode"))
_("Your computer must be booted from flash in Builder mode"))
return False
if not self.printRescratchInfo():
return False
@ -586,7 +582,7 @@ class cl_builder(color_print):
self.sourceDistr = DirectoryDistributive(sourceDirectory,
mdirectory=bindDirectory)
if not force:
dialogMessage = _("Continue the rebuilding flash live system") \
dialogMessage = _("Continue rebuilding the flash live system") \
+ " (yes/no)"
dialogRes = dialogYesNo(dialogMessage)
if dialogRes in (None,False):
@ -598,18 +594,18 @@ class cl_builder(color_print):
try:
map(lambda x:os.unlink(x),oldImages)
except (Exception,KeyboardInterrupt),e:
raise BuilderError(_("Can not remove old files")+":\n%s"%str(e))
raise BuilderError(_("Failed to remove old files")+":\n%s"%str(e))
self.printByResult(True)
self.printMessageForTest(_("Prepare data for live image"))
self.printMessageForTest(_("Preparing data for the live image"))
self.prepareSourceDistributive(self.sourceDistr)
self.printByResult(True)
self.targetDistr.prepareIso = self.flashPrepacking
self.printMessageForTest(_("Creating squash image"))
self.printMessageForTest(_("Creating the squash image"))
self.targetDistr.installFrom(self.sourceDistr)
self.printByResult(True)
self.printMessageForTest(_("Performing syncronization"))
self.printMessageForTest(_("Synchronizing"))
processSync = process("/bin/sync")
self.printByResult(processSync.success())
return True
@ -639,7 +635,7 @@ class cl_builder(color_print):
except KeyboardInterrupt,e:
self.printByResult(False)
self.printWARNING("Interrupting the iso building")
error = _("Iso building manually interrupt")
error = _("Iso building interrupted manually")
if error:
self.printByResult(False)
try:
@ -650,7 +646,8 @@ class cl_builder(color_print):
self.sourceDistr.close()
self.printByResult(True)
if self.targetDistr:
self.printMessageForTest(_("Unmount built system volume"))
self.printMessageForTest(
_("Unmount the partition bound for assemble"))
self.targetDistr.close()
self.printByResult(True)
if self.assembleIso:
@ -665,12 +662,12 @@ class cl_builder(color_print):
if error:
for line in filter(lambda x: x,str(error).split('\n')):
self.printERROR(line)
self.printERROR(_("System building failed"))
self.printERROR(_("Failed to build the system"))
return False
self.printSUCCESS(_("System has built successfully"))
self.printSUCCESS(_("System built successfully"))
if self.assembleIso:
self.printWARNING(_("If you want emerge packages manually in "
"assembling system, please perform:"))
self.printWARNING(_("If you want to emerge packages manually "
"on the system you are assembling, please execute:"))
self.printWARNING(" cl-make -p %s -T"%
self.clVars.Get('os_builder_profile'))
return True
@ -696,7 +693,7 @@ class cl_builder(color_print):
args = ["mount"]+opts.split()+[str(source).lower(),target]
mountProcess = process(*args)
if mountProcess.failed():
raise BuilderError(_("Can not mount %(from)s to %(to)s")%
raise BuilderError(_("Failed to mount %(from)s to %(to)s")%
{'from':source,'to':target})
self.printByResult(True)
@ -728,17 +725,18 @@ class cl_builder(color_print):
elif not likeProfile:
self.printERROR(_("wrong value for '--profile'"))
self.printERROR(
_("specify '-p list' for print "
"all available assembled distro"))
_("specify '-p list' to print all available "
"distributions to be built"))
return False
else:
self.printERROR(
_("specified value of '--profile' is ambiguous. "
"Please specify profile more exactly."))
self.defaultPrint(_("Select profile from")+":\n")
"Please specify profile with more precision."))
self.defaultPrint(_("Select a profile from")+":\n")
else:
likeProfile = self.clVars.Get('cl_builder_distro')
self.defaultPrint(_("Available assembled distro")+":\n")
self.defaultPrint(
_("Available distributions to be built")+":\n")
for profile in likeProfile:
self.printSUCCESS(profile)
return False
@ -760,8 +758,9 @@ class cl_builder(color_print):
if not path.exists(chrootdir):
return False
try:
packageList = sorted(reduce(lambda x,y:x+map(lambda x:path.join(y,x),
os.listdir(path.join(pkgdir,y))), os.listdir(pkgdir),[]))
packageList = \
sorted(reduce(lambda x,y:x+map(lambda x:path.join(y,x),
os.listdir(path.join(pkgdir,y))), os.listdir(pkgdir),[]))
open(filename,'w').writelines(map(lambda x:"%s\n"%x,packageList))
except (IOError,OSError),e:
return False

@ -116,7 +116,8 @@ class fillVars(object, varsShare):
shortVerSearch = re.search("^\d+\.\d+",
self.Get('cl_kernel_ver'),re.I)
else:
shortVerSearch = re.search("^\d+\.\d+.\d+",self.Get('cl_kernel_ver'),re.I)
shortVerSearch = re.search("^\d+\.\d+.\d+",
self.Get('cl_kernel_ver'),re.I)
if shortVerSearch:
shortVer = shortVerSearch.group()
else:

@ -34,7 +34,7 @@ OSSYSTEM_LIST=sorted(varsShare.dictNameSystem.keys())
COMPRESS_METHODS=getSquashList()
DEFAULT_COMPRESS="xz" if "xz" in COMPRESS_METHODS else "gzip"
DESCRIPTION = _("The Calculate Linux image builder")
DESCRIPTION = _("Calculate Linux image builder")
CMD_OPTIONS = [{'shortOption':"p",
'longOption':"profile",
'optVal':"PROFILE",
@ -56,18 +56,18 @@ CMD_OPTIONS = [{'shortOption':"p",
else _("only {0}").format(COMPRESS_METHODS[0]))
},
{'longOption':'notree',
'help':_("exclude portage tree from image")
'help':_("exclude the portage tree from the image")
},
{'longOption':'live',
'help':_("use only live templates on startup")
},
{'longOption':'noisohybrid',
'help':_("create iso image without isohybrid")
'help':_("create the iso image without isohybrid")
},
{'longOption':"set"},
{'shortOption':"f",
'longOption':"force",
'help':_("no questions during the creating process")
'help':_("no questions during assemble")
}]
USAGE = _("%prog [options] iso|squash")
@ -105,8 +105,8 @@ class image_cmd(share_cmd):
else:
if showError:
self.printERROR(
_("You should load system in the builder mode") + " "
+ _("or have to assemble system"))
_("You should boot the system in Builder mode") + " "
+ _("or build the system"))
return False
return False
@ -119,7 +119,7 @@ class image_cmd(share_cmd):
checkExistVar=True)
if not res[0] or not "finish" in _toUNICODE(res[1]).encode('utf-8'):
if showError:
self.printERROR(_("System assembling was not completed."))
self.printERROR(_("System assemble not completed."))
return False
return True
else:
@ -205,5 +205,5 @@ class image_cmd(share_cmd):
if self.logicObj.clVars.Get('cl_chroot_status') == 'off':
return True
else:
self.printERROR(_("This program can't be run from Scratch layer"))
self.printERROR(_("This program cannot be run from Scratch layer"))
return False

@ -128,7 +128,8 @@ class cl_kernel(color_print):
if clVars.Get('cl_kernel_config') == stdConfigPath:
kernelConfig = []
if mrproper:
self.printERROR(_("Cann't use own config with '%s' option")%
self.printERROR(_("Cannot use the current kernel configuration"
" with option'%s'")%
"--mrproper")
return False
else:
@ -155,7 +156,7 @@ class cl_kernel(color_print):
clVars = self.clVars
bootDir = clVars.Get('cl_kernel_boot_path')
if not os.access(bootDir,os.W_OK):
self.printERROR(_("No permissions to write to '%s'")% bootDir)
self.printERROR(_("No permission to write to '%s'")% bootDir)
return False
march = clVars.Get('os_arch_machine')
if re.match("^i.86$",march):
@ -184,7 +185,7 @@ class cl_kernel(color_print):
os.rename(baseSystemMap,newSystemMap)
copy_with_perm(baseConfigName,newConfigName)
except OSError,e:
self.printERROR(_("Can not rename kernel files: %s")%e.strerror)
self.printERROR(_("Failed to rename kernel files: %s")%e.strerror)
return False
return True
@ -293,13 +294,14 @@ class cl_kernel(color_print):
os.symlink(builderDaemon,bootRunlevel)
except IOError,e:
self.printERROR(
_("Can not create symlink to current kernel:"
_("Failed to create a symlink to the current kernel:"
" %(error)s '%(filename)s'")%
{'error':e.strerror,'filename':e.filename})
self.printERROR(_("May be kernel was not compiled"))
self.printERROR(_("The kernel is probably not compiled"))
return False
except OSError,e:
self.printERROR(_("Can not create symlink to current kernel: %s")%
self.printERROR(_("Failed to create a symlink to the "
"current kernel: %s")%
e.strerror)
return False
return True
@ -333,7 +335,7 @@ class cl_kernel(color_print):
self._installFile(newConfigName,symlinkConfigKernelName,
removeSource=False,symlink=True)
except (OSError,IOError),e:
self.printERROR(_("Can not install kernel files: %s")%e.strerror)
self.printERROR(_("Failed to install kernel files: %s")%e.strerror)
return False
return True
@ -395,7 +397,7 @@ class cl_kernel(color_print):
return True
if not os.access(grubconf,os.W_OK):
self.printERROR(_("No permissions to write to '%s'")%grubconf)
self.printERROR(_("No permission to write to '%s'")%grubconf)
return False
calcKernel = filter(lambda x:x['PN'] == 'calckernel',
map(reVerSplitToPV,
@ -456,7 +458,7 @@ class cl_kernel(color_print):
clVars = self.clVars
bootDir = clVars.Get('cl_kernel_boot_path')
if not os.access(bootDir,os.W_OK):
self.printERROR(_("No permissions to write to '%s'")% bootDir)
self.printERROR(_("No permission to write to '%s'")% bootDir)
return False
march = clVars.Get('os_arch_machine')
if re.match("^i.86$",march):
@ -472,7 +474,7 @@ class cl_kernel(color_print):
try:
os.rename(baseInitrdName,newInitrdName)
except OSError,e:
self.printERROR(_("Can not rename initramfs files: %s")
self.printERROR(_("Failed to rename initramfs files: %s")
%e.strerror)
return False
return True

@ -27,10 +27,10 @@ import sys
from cl_lang import lang
lang().setLanguage(sys.modules[__name__])
DESCRIPTION = _("The Calculate Linux kernel builder")
DESCRIPTION = _("Calculate Linux kernel builder")
CMD_OPTIONS = [{'shortOption':"o",
'longOption':"use-own-config",
'help':_("use config from kernel directory")
'help':_("use configuration from the kernel directory")
},
{'shortOption':"c",
'longOption':"kernel-config",
@ -64,19 +64,20 @@ CMD_OPTIONS = [{'shortOption':"o",
{'shortOption':"e",
'longOption':"extraversion",
'optVal':"VER",
'help':_("specify extraversion for kernel")
'help':_("specify extraversion for the kernel")
},
{'longOption':"ebuild",
'help':
_("build kernel by ebuild phase (need ebuild enviroment)")},
_("build kernel by ebuild phase (ebuild enviroment needed)")},
{'longOption':"set"},
{'longOption':"initrd",
'help':_("perform current initramfs optimization")},
'help':_("optimize the current initramfs")},
{'longOption':"symlink",
'help':
_("set uid symlinks for current kernel in boot directory")},
_("set uid symlinks for the current kernel in the boot "
"directory")},
{'shortOption':"q",
'help':_("do not display kernel compilation process")
'help':_("do not display kernel compilation")
}]
@ -106,7 +107,7 @@ class kernel_cmd(share_cmd):
['S','T','D','ROOT','WORKDIR',
'EBUILD_PHASE'])
if missedEnvVar:
self.optobj.error(_("Can not read some ebuild variable: %s")%
self.optobj.error(_("Failed to read ebuild variables: %s")%
", ".join(missedEnvVar))
def checkOpts(self, values, args):
@ -131,7 +132,8 @@ class kernel_cmd(share_cmd):
self.getStringIncompatibleOptions(["c","o"])))
if values.c:
if not path.exists(values.c):
self.optobj.error(_("kernel config '%s' not found")%values.c)
self.optobj.error(_("kernel configuration '%s' not found")%
values.c)
else:
configFile = values.c
self.logicObj.clVars.Set('cl_kernel_config',configFile,True)
@ -170,29 +172,29 @@ class kernel_cmd(share_cmd):
dmraidOpt=options.dmraid,
mdadmOpt=options.mdadm,
mrproper=options.mrproper):
self.printERROR(_("Failed kernel compilation"))
self.printERROR(_("Kernel compilation failed"))
return False
if not self.logicObj.prepareBoot():
self.printERROR(_("Failed prepare boot directory"))
self.printERROR(_("Failed to prepare the boot directory"))
return False
if self.checkEbuildParam(options,"postinst"):
if not self.logicObj.installBootFiles():
self.printERROR(_("Failed kernel install"))
self.printERROR(_("Failed to install the kernel"))
return False
if not self.logicObj.createUidSymlinks():
self.printERROR(_("Failed create uid symlinks"))
self.printERROR(_("Failed to create uid symlinks"))
return False
if not self.logicObj.versionMigrate():
self.printERROR(_("Failed kernel nomenclature update"))
self.printERROR(_("Kernel nomenclature update failed"))
return False
if not self.logicObj.cleanInitrd():
self.printWARNING(_("Failed initramfs optimization"))
self.printWARNING(_("Initramfs optimization failed"))
if not self.logicObj.setKernelForCurrent():
self.printWARNING(_("Failed change '%s'")%"/usr/scr/linux")
self.printWARNING(_("Failed to modify '%s'")%"/usr/scr/linux")
if not options.ebuild:
self.printWARNING("!!! "+" !!! ".join([_("WARNING")]*4)+" !!!")
self.printWARNING(
_("Perform command for update modules after kernel building")+
_("To update modules after kernel building, execute")+
":")
self.printWARNING(" module-rebuild -X rebuild")
return True
@ -200,14 +202,14 @@ class kernel_cmd(share_cmd):
def makeSymlink(self,options):
"""Set specified kernel to default"""
if not self.logicObj.createUidSymlinks():
self.printERROR(_("Failed create uid symlinks"))
self.printERROR(_("Failed to create uid symlinks"))
return False
if not self.logicObj.setKernelForCurrent():
self.printWARNING(_("Failed change '%s'")%"/usr/scr/linux")
self.printWARNING(_("Failed to modify '%s'")%"/usr/scr/linux")
return False
if not self.logicObj.versionMigrate():
self.printERROR(_("Failed kernel nomenclature update"))
self.printERROR(_("Kernel nomenclature update failed"))
return False
self.printSUCCESS(_("Kernel was changed to '%s'")%
self.printSUCCESS(_("The kernel was changed to '%s'")%
path.basename(self.logicObj._getNewName("vmlinuz")))
return True

@ -83,7 +83,7 @@ class share_cmd(color_print, _error):
errMsg = self.getError()
if errMsg:
self.printERROR(errMsg.strip())
self.printERROR(_('Can not write template variables'))
self.printERROR(_("Failed to write template variables"))
return False
return True

Loading…
Cancel
Save