summaryrefslogtreecommitdiff
path: root/databases/sqlitebrowser/files/patch-src-PreferencesDialog.cpp
blob: c88f834ada6048b6bef1498371acab3b03bbcc2d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- src/PreferencesDialog.cpp.orig	2015-02-01 15:27:53.407669984 +0100
+++ src/PreferencesDialog.cpp	2015-02-01 15:30:51.885904399 +0100
@@ -266,9 +266,13 @@
 void PreferencesDialog::fillLanguageBox()
 {
     // Use the path relative to the main executable
+#ifdef Q_OS_FREEBSD
+    QDir translationsDir("%%DATADIR%%/translations",
+                         "sqlb_*.qm");
+#else
     QDir translationsDir(QCoreApplication::applicationDirPath() + "/translations",
                          "sqlb_*.qm");
-
+#endif
     // Add default language
     ui->languageComboBox->addItem("English (United States)", "en_US");