diff options
author | Guido Falsi <madpilot@FreeBSD.org> | 2015-02-06 13:29:25 +0000 |
---|---|---|
committer | Guido Falsi <madpilot@FreeBSD.org> | 2015-02-06 13:29:25 +0000 |
commit | ce6563685eed5858eabd873a01830d0e360fc5ff (patch) | |
tree | 21f36514d13fe48b16c9cad0a8f7d27740febc85 /databases/sqlitebrowser/files/patch-src-Application.cpp | |
parent | devel/radare2: Upgrade version 0.9.6 => 0.9.8, reset maintainership (diff) |
Update to 3.5.0.
PR: 197253
Submitted by: coder@tuxfamily.org (maintainer)
Notes
Notes:
svn path=/head/; revision=378535
Diffstat (limited to 'databases/sqlitebrowser/files/patch-src-Application.cpp')
-rw-r--r-- | databases/sqlitebrowser/files/patch-src-Application.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/databases/sqlitebrowser/files/patch-src-Application.cpp b/databases/sqlitebrowser/files/patch-src-Application.cpp new file mode 100644 index 000000000000..80d657873d5c --- /dev/null +++ b/databases/sqlitebrowser/files/patch-src-Application.cpp @@ -0,0 +1,28 @@ +--- src/Application.cpp.orig 2015-01-30 19:48:06.000000000 +0100 ++++ src/Application.cpp 2015-02-01 15:40:02.790619098 +0100 +@@ -30,8 +30,15 @@ + + // 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 (ok == true) { + PreferencesDialog::setSettingsValue("General", "language", name); +@@ -47,7 +54,9 @@ + ok = m_translatorQt->load("qt_" + name, + QLibraryInfo::location(QLibraryInfo::TranslationsPath)); + if (ok == false) ++ { + ok = m_translatorQt->load("qt_" + name, "translations"); ++ } + if (ok == true) + installTranslator(m_translatorQt); + } |