[Pkg-owncloud-commits] [owncloud-client] 78/218: Allow (partial) translations even when run from build dir
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat Oct 17 14:30:48 UTC 2015
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit b83c723e3ff36a1390c1bd5b5ecfe26262ebdda1
Author: Daniel Molkentin <danimo at owncloud.com>
Date: Thu Sep 10 01:25:16 2015 +0200
Allow (partial) translations even when run from build dir
Makes it easier to catch translation issues earlier
---
src/gui/application.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/gui/application.cpp b/src/gui/application.cpp
index 2bcafee..b8839d6 100644
--- a/src/gui/application.cpp
+++ b/src/gui/application.cpp
@@ -71,6 +71,12 @@ static const char optionsC[] =
QString applicationTrPath()
{
+ QString devTrPath = qApp->applicationDirPath() + QString::fromLatin1("/../src/gui/");
+ if (QDir(devTrPath).exists()) {
+ // might miss Qt, QtKeyChain, etc.
+ qDebug() << "Running from build location! Translations may be incomplete!";
+ return devTrPath;
+ }
#if defined(Q_OS_WIN)
return QApplication::applicationDirPath();
#elif defined(Q_OS_MAC)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list