diff options
Diffstat (limited to 'app/translator.cpp')
-rw-r--r-- | app/translator.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/translator.cpp b/app/translator.cpp index 9b67f13..fcc274c 100644 --- a/app/translator.cpp +++ b/app/translator.cpp @@ -41,8 +41,7 @@ void Translator::setTranslator(const QString &language) } QLocale locale(language); QString fileName = QCoreApplication::instance()->applicationName().toLower(); - qDebug() << "####" << QDir::currentPath() << QCoreApplication::applicationDirPath(); - if (m_translator->load(locale, fileName, QStringLiteral("_"), QStringLiteral("%1/../translations").arg(QCoreApplication::applicationDirPath()))) { + if (m_translator->load(locale, fileName, QStringLiteral("_"), QStringLiteral("/usr/share/%1").arg(fileName))) { QCoreApplication::installTranslator(m_translator); } else { delete m_translator; |