Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37791864
en ru br
ALT Linux repositórios
S:5.110.0-alt1

Group :: Sistema/Bibliotecas
RPM: kf5-ki18n

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: alt-fallback.patch
Download


--- a/src/i18n/kcatalog.cpp
+++ b/src/i18n/kcatalog.cpp
@@ -158,6 +158,8 @@ QString KCatalog::catalogLocaleDir(const
 #if defined(Q_OS_ANDROID)
     return androidUnpackCatalog(relpath);
 #else
+    if( QFileInfo(QStringLiteral("/usr/share/kf5/locale/") + relpath).isFile() )
+        return QStringLiteral("/usr/share/kf5/locale");
     QString file = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("locale/") + relpath);
 #ifdef Q_OS_WIN
     // QStandardPaths fails on Windows for executables that aren't properly deployed yet, such as unit tests
@@ -182,6 +184,8 @@ QSet<QString> KCatalog::availableCatalog
 {
     QString domain = QFile::decodeName(domain_);
     QStringList localeDirPaths = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("locale"), QStandardPaths::LocateDirectory);
+    localeDirPaths.removeAll(QStringLiteral("/usr/share/kf5/locale"));
+    localeDirPaths.prepend(QStringLiteral("/usr/share/kf5/locale"));
 #ifdef Q_OS_WIN
     // QStandardPaths fails on Windows for executables that aren't properly deployed yet, such as unit tests
     localeDirPaths += QLatin1String(INSTALLED_LOCALE_PREFIX) + QLatin1String("/bin/data/locale/");
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009