From f603dfde824c6a574ee96a25bce9f930a7b83fe0 Mon Sep 17 00:00:00 2001 From: Vesa Pikki Date: Sat, 4 Jul 2009 11:13:04 +0300 Subject: [PATCH] Removed an unnecessary translation file check. It was missing the file extension and QTranslator returns false if it was unable to find the translation file which is just as good. QTranslator can also check for several variations of the given filename. --- gui/translationhandler.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/gui/translationhandler.cpp b/gui/translationhandler.cpp index e10a4b6f8..5c52346b4 100644 --- a/gui/translationhandler.cpp +++ b/gui/translationhandler.cpp @@ -89,15 +89,6 @@ bool TranslationHandler::SetLanguage(const int index, QString &error) return false; } - // Check translation file exists before trying to load it - if (!QFile::exists(mFiles[index])) - { - QString filename(mFiles[index]); - error = QObject::tr("Language file %1.qm not found!"); - error = error.arg(mFiles[index]); - return false; - } - //Load the new language if (!mTranslator->load(mFiles[index])) {