Skip to content
Snippets Groups Projects
Verified Commit bd020bb4 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

If the locale is set to C, force english locale

This fixes date formatting as well as count based translations.
parent eb632086
No related branches found
No related tags found
No related merge requests found
Pipeline #2232 passed
......@@ -243,7 +243,8 @@ main(int argc, char *argv[])
app.setFont(font);
QString lang = QLocale::system().name();
if (QLocale().language() == QLocale::C)
QLocale::setDefault(QLocale(QLocale::English, QLocale::UnitedKingdom));
QTranslator qtTranslator;
qtTranslator.load(QLocale(), "qt", "_", QLibraryInfo::location(QLibraryInfo::TranslationsPath));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment