From d53bbef482dcf2e93339f021b665c345e5172f81 Mon Sep 17 00:00:00 2001 From: nodlek-ctrl Date: Thu, 13 Apr 2023 11:51:53 +1000 Subject: [PATCH] begin localising the IM error --- printer.py | 2 +- www/lang/en-US.json | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/printer.py b/printer.py index 429801b..06b35a3 100644 --- a/printer.py +++ b/printer.py @@ -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' diff --git a/www/lang/en-US.json b/www/lang/en-US.json index dd15e87..5102b76 100644 --- a/www/lang/en-US.json +++ b/www/lang/en-US.json @@ -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." + } \ No newline at end of file