Add Qt translation dir for RPM packaging

This commit is contained in:
tuxmaster5000 authored and Jonathan White committed 2020-07-18 18:21:33 -04:00
1 parent e1a264825a
commit fb7cc673ac
1 file changed
+2
+2
View File
@@ -71,6 +71,8 @@ bool Translator::installTranslator(const QStringList& languages, const QString&
QScopedPointer<QTranslator> translator(new QTranslator(qApp));
if (translator->load(locale, "keepassx_", "", path)) {
return QCoreApplication::installTranslator(translator.take());
} else if (translator->load(locale, "keepassx_", "", QLibraryInfo::location(QLibraryInfo::TranslationsPath))) {
return QCoreApplication::installTranslator(translator.take());
}
}