If the locale is set to C, force english locale
This fixes date formatting as well as count based translations.
This commit is contained in:
parent
eb6320862e
commit
bd020bb473
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user