HEX
Server: Apache/2.4.41 (FreeBSD) OpenSSL/1.0.2s mod_fcgid/2.3.9
System: FreeBSD salazo 12.0-RELEASE-p1303-ZFS hostBSD 12.0-RELEASE-p1303-ZFS DMR amd64
User: admin (1000)
PHP: 7.4.3
Disabled: NONE
Upload Files
File: /usr/ports/databases/sqlitebrowser/files/patch-src-PreferencesDialog.cpp
--- src/PreferencesDialog.cpp.orig	2016-08-24 11:00:01 UTC
+++ src/PreferencesDialog.cpp
@@ -465,8 +465,13 @@ void PreferencesDialog::removeExtension(
 
 void PreferencesDialog::fillLanguageBox()
 {
+#ifdef Q_OS_FREEBSD
+    QDir translationsDir("%%DATADIR%%/translations",
+                         "sqlb_*.qm");
+#else
     QDir translationsDir(QCoreApplication::applicationDirPath() + "/translations",
                          "sqlb_*.qm");
+#endif
 
     QLocale systemLocale = QLocale::system();