Changeset View
Changeset View
Standalone View
Standalone View
3rdparty/ext_frameworks/ki18n-appdatalocation.diff
- This file was added.
1 | diff --git a/src/kcatalog.cpp b/src/kcatalog.cpp | ||||
---|---|---|---|---|---|
2 | index c18d40f..b0ed09d 100644 | ||||
3 | --- a/src/kcatalog.cpp | ||||
4 | +++ b/src/kcatalog.cpp | ||||
5 | @@ -128,7 +128,7 @@ QString KCatalog::catalogLocaleDir(const QByteArray &domain, | ||||
6 | } | ||||
7 | } | ||||
8 | | ||||
9 | - QString file = QStandardPaths::locate(QStandardPaths::GenericDataLocation, | ||||
10 | + QString file = QStandardPaths::locate(QStandardPaths::AppDataLocation, | ||||
11 | QStringLiteral("locale/") + relpath); | ||||
12 | QString localeDir; | ||||
13 | if (file.isEmpty()) { | ||||
14 | @@ -143,7 +143,7 @@ QString KCatalog::catalogLocaleDir(const QByteArray &domain, | ||||
15 | QSet<QString> KCatalog::availableCatalogLanguages(const QByteArray &domain_) | ||||
16 | { | ||||
17 | QString domain = QFile::decodeName(domain_); | ||||
18 | - QStringList localeDirPaths = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, | ||||
19 | + QStringList localeDirPaths = QStandardPaths::locateAll(QStandardPaths::AppDataLocation, | ||||
20 | QStringLiteral("locale"), | ||||
21 | QStandardPaths::LocateDirectory); | ||||
22 | |