mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 05:15:40 +03:00
Allow (partial) translations even when run from build dir
Makes it easier to catch translation issues earlier
This commit is contained in:
parent
6b222c3db7
commit
b83c723e3f
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue