|
Lines 1-17
Link Here
|
| 1 |
--- src/PreferencesDialog.cpp.orig 2015-02-01 15:27:53.407669984 +0100 |
1 |
--- src/PreferencesDialog.cpp.orig 2015-05-09 08:19:49.920343024 +0200 |
| 2 |
+++ src/PreferencesDialog.cpp 2015-02-01 15:30:51.885904399 +0100 |
2 |
+++ src/PreferencesDialog.cpp 2015-05-09 08:20:57.913337598 +0200 |
| 3 |
@@ -266,9 +266,13 @@ |
3 |
@@ -356,8 +356,15 @@ |
|
|
4 |
|
| 4 |
void PreferencesDialog::fillLanguageBox() |
5 |
void PreferencesDialog::fillLanguageBox() |
| 5 |
{ |
6 |
{ |
| 6 |
// Use the path relative to the main executable |
7 |
- QDir translationsDir(QCoreApplication::applicationDirPath() + "/translations", |
|
|
8 |
+ |
| 7 |
+#ifdef Q_OS_FREEBSD |
9 |
+#ifdef Q_OS_FREEBSD |
| 8 |
+ QDir translationsDir("%%DATADIR%%/translations", |
10 |
+ QDir translationsDir("%%DATADIR%%/translations", |
| 9 |
+ "sqlb_*.qm"); |
11 |
"sqlb_*.qm"); |
| 10 |
+#else |
12 |
+#else |
| 11 |
QDir translationsDir(QCoreApplication::applicationDirPath() + "/translations", |
13 |
+ QDir translationsDir(QCoreApplication::applicationDirPath() + "/translations", |
| 12 |
"sqlb_*.qm"); |
14 |
+ "sqlb_*.qm"); |
| 13 |
- |
15 |
+ |
| 14 |
+#endif |
16 |
+#endif |
| 15 |
// Add default language |
|
|
| 16 |
ui->languageComboBox->addItem("English (United States)", "en_US"); |
| 17 |
|
17 |
|
|
|
18 |
QLocale systemLocale = QLocale::system(); |
| 19 |
|