mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 13:50:38 -04:00
- update to 3.9.0 - update maintainer's email - pet portlint PR: 212395 Submitted by: lbartoletti <lbartoletti@tuxfamily.org> (maintainer)
19 lines
730 B
C++
19 lines
730 B
C++
--- 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");
|