Blame AusweisApp2-1.20.1-use_Qt_TranslationsPath.patch

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