diff --git a/gui/translationhandler.cpp b/gui/translationhandler.cpp index b2d0ad8c0..3a9b30253 100644 --- a/gui/translationhandler.cpp +++ b/gui/translationhandler.cpp @@ -97,7 +97,12 @@ bool TranslationHandler::SetLanguage(const QString &code) mTranslator = new QTranslator(this); //Load the new language - QString translationFile = ":/" + mTranslations[index].mFilename; + QString translationFile = "lang/" + mTranslations[index].mFilename; + + if (!QFile::exists(translationFile + ".qm")) { + translationFile = ":/" + mTranslations[index].mFilename; + } + if (!mTranslator->load(translationFile) && !failure) { translationFile += ".qm"; //If it failed, lets check if the default file exists