begin localising the IM error

This commit is contained in:
nodlek-ctrl 2023-04-13 11:51:53 +10:00
parent dbe18dd89e
commit d53bbef482
2 changed files with 4 additions and 2 deletions

View File

@ -593,7 +593,7 @@ def fallback_program(*programs):
_MagickExe = fallback_program('magick', 'magick.exe', 'convert', 'convert.exe')
if _MagickExe is None:
error('ImageMagic not found. Please install and configure as per readme.')
error(i18n("imagemagick-not-found"))
def magick_text(stdin, image_width, font_size, font_family):
'Pipe an io to ImageMagick for processing text to image, return output io'

View File

@ -159,5 +159,7 @@
"test-unknown-device": "Test Unknown Device",
"scan": "Scan",
"now-will-scan-for-all-bluetooth-devices-nearby": "Scan set to search for all bluetooth devides nearby.",
"pf2-font-not-found-or-broken-0": "PF2 font not found or broken: '{0}'"
"pf2-font-not-found-or-broken-0": "PF2 font not found or broken: '{0}'",
"imagemagick-not-found": "ImageMagick not found, please install it before trying any command line hackery."
}