From 3e877ac05ce324b844b23476526edcfc6903fca4 Mon Sep 17 00:00:00 2001 From: torger Date: Tue, 19 Nov 2013 12:54:54 +0100 Subject: [PATCH] Issue 2042: added language support --- rtengine/simpleprocess.cc | 3 ++- rtgui/batchqueue.cc | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rtengine/simpleprocess.cc b/rtengine/simpleprocess.cc index ffdff6162..72a07a617 100644 --- a/rtengine/simpleprocess.cc +++ b/rtengine/simpleprocess.cc @@ -28,6 +28,7 @@ #include #include "rawimagesource.h" #include "../rtgui/ppversion.h" +#include "../rtgui/multilangmgr.h" //#include "mytime.h" #undef THREAD_PRIORITY_NORMAL @@ -682,7 +683,7 @@ void batchProcessingThread (ProcessingJob* job, BatchProcessingListener* bpl, bo int errorCode; IImage16* img = processImage (currentJob, errorCode, bpl, tunnelMetaData); if (errorCode) { - bpl->error ("Can not load input image."); + bpl->error (M("MAIN_MSG_CANNOTLOAD")); currentJob = NULL; } else { try { diff --git a/rtgui/batchqueue.cc b/rtgui/batchqueue.cc index 37365e72e..2ed7055e8 100644 --- a/rtgui/batchqueue.cc +++ b/rtgui/batchqueue.cc @@ -594,7 +594,7 @@ rtengine::ProcessingJob* BatchQueue::imageReady (rtengine::IImage16* img) { err = img->saveAsJPEG (fname, saveFormat.jpegQuality, saveFormat.jpegSubSamp); img->free (); - if (err) throw Glib::FileError(Glib::FileError::FAILED, "Unable to save output file"); + if (err) throw Glib::FileError(Glib::FileError::FAILED, M("MAIN_MSG_CANNOTSAVE")); if (saveFormat.saveParams) { // We keep the extension to avoid overwriting the profile when we have