mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Add Qt translation dir for RPM packaging
This commit is contained in:
parent
e1a264825a
commit
fb7cc673ac
@ -71,6 +71,8 @@ bool Translator::installTranslator(const QStringList& languages, const QString&
|
|||||||
QScopedPointer<QTranslator> translator(new QTranslator(qApp));
|
QScopedPointer<QTranslator> translator(new QTranslator(qApp));
|
||||||
if (translator->load(locale, "keepassx_", "", path)) {
|
if (translator->load(locale, "keepassx_", "", path)) {
|
||||||
return QCoreApplication::installTranslator(translator.take());
|
return QCoreApplication::installTranslator(translator.take());
|
||||||
|
} else if (translator->load(locale, "keepassx_", "", QLibraryInfo::location(QLibraryInfo::TranslationsPath))) {
|
||||||
|
return QCoreApplication::installTranslator(translator.take());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user