Lines 1-6
Link Here
|
1 |
--- src/Application.cpp.orig 2015-06-14 10:13:37 UTC |
1 |
--- src/Application.cpp.orig 2016-09-25 11:30:50 UTC |
2 |
+++ src/Application.cpp |
2 |
+++ src/Application.cpp |
3 |
@@ -30,8 +30,15 @@ Application::Application(int& argc, char |
3 |
@@ -30,8 +30,16 @@ Application::Application(int& argc, char |
4 |
|
4 |
|
5 |
// First of all try to load the application translation file. |
5 |
// First of all try to load the application translation file. |
6 |
m_translatorApp = new QTranslator(this); |
6 |
m_translatorApp = new QTranslator(this); |
Lines 13-28
Link Here
|
13 |
ok = m_translatorApp->load("sqlb_" + name, |
13 |
ok = m_translatorApp->load("sqlb_" + name, |
14 |
QCoreApplication::applicationDirPath() + "/translations"); |
14 |
QCoreApplication::applicationDirPath() + "/translations"); |
15 |
+#endif |
15 |
+#endif |
|
|
16 |
+ |
16 |
// If failed then try to load .qm file from resources |
17 |
// If failed then try to load .qm file from resources |
17 |
if (ok == false) { |
18 |
if (ok == false) { |
18 |
ok = m_translatorApp->load("sqlb_" + name, ":/translations"); |
19 |
ok = m_translatorApp->load("sqlb_" + name, ":/translations"); |
19 |
@@ -51,7 +58,9 @@ Application::Application(int& argc, char |
|
|
20 |
ok = m_translatorQt->load("qt_" + name, |
21 |
QLibraryInfo::location(QLibraryInfo::TranslationsPath)); |
22 |
if (ok == false) |
23 |
+ { |
24 |
ok = m_translatorQt->load("qt_" + name, "translations"); |
25 |
+ } |
26 |
if (ok == true) |
27 |
installTranslator(m_translatorQt); |
28 |
} |