blob: 41298e388c34da1ef588a9a873095a87dd6320ce (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- src/Application.cpp.orig 2024-08-25 17:07:43 UTC
+++ src/Application.cpp
@@ -117,8 +117,16 @@ Application::Application(int& argc, char** argv) :
// First of all try to load the application translation file.
m_translatorApp = new QTranslator(this);
+
+#ifdef Q_OS_FREEBSD
+ QString trans_dir = "%%DATADIR%%/translations";
ok = m_translatorApp->load("sqlb_" + name,
+ trans_dir);
+#else
+ ok = m_translatorApp->load("sqlb_" + name,
QCoreApplication::applicationDirPath() + "/translations");
+#endif
+
// If failed then try to load .qm file from resources
if (ok == false) {
ok = m_translatorApp->load("sqlb_" + name, ":/translations");
|