Blame AusweisApp2-1.20.1-use_Qt_TranslationsPath.patch

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