We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb4695f commit d642fafCopy full SHA for d642faf
1 file changed
gui/translationhandler.cpp
@@ -97,7 +97,12 @@ bool TranslationHandler::SetLanguage(const QString &code)
97
mTranslator = new QTranslator(this);
98
99
//Load the new language
100
- QString translationFile = ":/" + mTranslations[index].mFilename;
+ QString translationFile = "lang/" + mTranslations[index].mFilename;
101
+
102
+ if (!QFile::exists(translationFile + ".qm")) {
103
+ translationFile = ":/" + mTranslations[index].mFilename;
104
+ }
105
106
if (!mTranslator->load(translationFile) && !failure) {
107
translationFile += ".qm";
108
//If it failed, lets check if the default file exists
0 commit comments