| Server IP : 82.208.35.60 / Your IP : 216.73.216.238 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/databases/sqlitebrowser/files/ |
Upload File : |
--- src/Application.cpp.orig 2016-09-25 11:30:50 UTC
+++ src/Application.cpp
@@ -30,8 +30,16 @@ Application::Application(int& argc, char
// 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");