Lines 1-4
Link Here
|
1 |
--- src/Application.cpp.orig 2015-04-27 09:31:47 UTC |
1 |
--- src/Application.cpp.orig 2015-06-14 10:13:37 UTC |
2 |
+++ src/Application.cpp |
2 |
+++ src/Application.cpp |
3 |
@@ -30,8 +30,15 @@ Application::Application(int& argc, char |
3 |
@@ -30,8 +30,15 @@ Application::Application(int& argc, char |
4 |
|
4 |
|
Lines 13-22
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 (ok == true) { |
17 |
if (ok == false) { |
18 |
PreferencesDialog::setSettingsValue("General", "language", name); |
18 |
ok = m_translatorApp->load("sqlb_" + name, ":/translations"); |
19 |
@@ -47,7 +54,9 @@ Application::Application(int& argc, char |
19 |
@@ -51,7 +58,9 @@ Application::Application(int& argc, char |
20 |
ok = m_translatorQt->load("qt_" + name, |
20 |
ok = m_translatorQt->load("qt_" + name, |
21 |
QLibraryInfo::location(QLibraryInfo::TranslationsPath)); |
21 |
QLibraryInfo::location(QLibraryInfo::TranslationsPath)); |
22 |
if (ok == false) |
22 |
if (ok == false) |