mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
14 lines
886 B
Diff
14 lines
886 B
Diff
diff --git i/src/settings/appsettings.cpp w/src/settings/appsettings.cpp
|
|
index a73371b..b9d66ca 100644
|
|
--- i/src/settings/appsettings.cpp
|
|
+++ w/src/settings/appsettings.cpp
|
|
@@ -75,7 +75,7 @@ void AppSettings::applyLocale(const QLocale &locale)
|
|
const QLocale newLocale = locale == defaultLocale() ? QLocale::system() : locale;
|
|
QLocale::setDefault(newLocale);
|
|
s_appTranslator.load(newLocale, QStringLiteral(PROJECT_NAME), QStringLiteral("_"), QStandardPaths::locate(QStandardPaths::AppDataLocation, QStringLiteral("translations"), QStandardPaths::LocateDirectory));
|
|
- s_qtTranslator.load(newLocale, QStringLiteral("qt"), QStringLiteral("_"), QLibraryInfo::location(QLibraryInfo::TranslationsPath));
|
|
+ s_qtTranslator.load(newLocale, QStringLiteral("qt"), QStringLiteral("_"), QLatin1String("@qttranslations@/translations"));
|
|
}
|
|
|
|
QLocale AppSettings::defaultLocale()
|