Commit fe21cb5b authored by Boudewijn Rempt's avatar Boudewijn Rempt

Only set one language for the LANG variable

CCBUG:368007
parent 365aea70
...@@ -128,7 +128,7 @@ extern "C" int main(int argc, char **argv) ...@@ -128,7 +128,7 @@ extern "C" int main(int argc, char **argv)
if (!language.isEmpty()) { if (!language.isEmpty()) {
KLocalizedString::setLanguages(language.split(":")); KLocalizedString::setLanguages(language.split(":"));
// And override Qt's locale, too // And override Qt's locale, too
qputenv("LANG", language.toLatin1()); qputenv("LANG", language.split(":").first().toUtf8());
QLocale locale(language.split(":").first()); QLocale locale(language.split(":").first());
QLocale::setDefault(locale); QLocale::setDefault(locale);
qDebug() << "Qt ui languages" << locale.uiLanguages(); qDebug() << "Qt ui languages" << locale.uiLanguages();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment