|
|
|
@ -142,7 +142,7 @@ class backgrounds(TemplateFormat):
|
|
|
|
|
def processingFile(self, textConfigFile, rootPath=None, nameFile=None):
|
|
|
|
|
"""Обработка конфигурационного файла"""
|
|
|
|
|
if not (self.convert_cmd and self.identify_cmd):
|
|
|
|
|
self.setError("%s. %s" % (_("Format 'backgrounds' is unavailable"),
|
|
|
|
|
self.setError("%s. %s" % (_("The 'backgrounds' format is unavailable"),
|
|
|
|
|
_("Need to install {packages}").format(
|
|
|
|
|
packages="media-gfx/imagemagick")))
|
|
|
|
|
return False
|
|
|
|
@ -238,7 +238,7 @@ class backgrounds(TemplateFormat):
|
|
|
|
|
image_files.append(image_fn)
|
|
|
|
|
else:
|
|
|
|
|
self.parent.printWARNING(
|
|
|
|
|
_("Skipped creation of the image with %s resolution") % (
|
|
|
|
|
_("Creation of image with %s resolution skipped") % (
|
|
|
|
|
"%dx%d" % (width, height)))
|
|
|
|
|
with writeFile(md5_fn) as f:
|
|
|
|
|
f.write("%s\n" % image_md5)
|
|
|
|
|