forked from Lainports/freebsd-ports
- Replace USE_QT4=linguist_build with USE_QT4=linguisttools_build. - Add missed corelib and network components into USE_QT4. - Regenerate patches. - Bump PORTREVISION PR: 201648 Submitted by: s3erios@gmail.com Approved by: maintainer timeout (coder@tuxfamily.org ; 25 days)
19 lines
594 B
C++
19 lines
594 B
C++
--- src/PreferencesDialog.cpp.orig 2015-04-27 09:31:47 UTC
|
|
+++ src/PreferencesDialog.cpp
|
|
@@ -356,8 +356,15 @@ void PreferencesDialog::removeExtension(
|
|
|
|
void PreferencesDialog::fillLanguageBox()
|
|
{
|
|
- QDir translationsDir(QCoreApplication::applicationDirPath() + "/translations",
|
|
+
|
|
+#ifdef Q_OS_FREEBSD
|
|
+ QDir translationsDir("%%DATADIR%%/translations",
|
|
"sqlb_*.qm");
|
|
+#else
|
|
+ QDir translationsDir(QCoreApplication::applicationDirPath() + "/translations",
|
|
+ "sqlb_*.qm");
|
|
+
|
|
+#endif
|
|
|
|
QLocale systemLocale = QLocale::system();
|
|
|