Index: AusweisApp2-1.20.1/src/global/FileDestination.h
===================================================================
--- AusweisApp2-1.20.1.orig/src/global/FileDestination.h
+++ AusweisApp2-1.20.1/src/global/FileDestination.h
@@ -8,6 +8,7 @@
#include <QCoreApplication>
#include <QDebug>
+#include <QLibraryInfo>
#include <QStandardPaths>
#include <QStringBuilder>
@@ -41,6 +42,8 @@ class FileDestination
QStandardPaths::StandardLocation pStandard = QStandardPaths::AppDataLocation)
{
#if (defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID)) || (defined(Q_OS_BSD4) && !defined(Q_OS_MACOS) && !defined(Q_OS_IOS))
+ if (pFilename.compare(QStringLiteral("translations")) == 0)
+ return QLibraryInfo::location(QLibraryInfo::TranslationsPath);
const auto match = QStandardPaths::locate(pStandard, pFilename, pOption);
if (!match.isNull())
{