mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 13:08:48 +03:00
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
1 changed files with 2 additions and 1 deletions
|
@ -243,7 +243,8 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
app.setFont(font);
|
app.setFont(font);
|
||||||
|
|
||||||
QString lang = QLocale::system().name();
|
if (QLocale().language() == QLocale::C)
|
||||||
|
QLocale::setDefault(QLocale(QLocale::English, QLocale::UnitedKingdom));
|
||||||
|
|
||||||
QTranslator qtTranslator;
|
QTranslator qtTranslator;
|
||||||
qtTranslator.load(QLocale(), "qt", "_", QLibraryInfo::location(QLibraryInfo::TranslationsPath));
|
qtTranslator.load(QLocale(), "qt", "_", QLibraryInfo::location(QLibraryInfo::TranslationsPath));
|
||||||
|
|
Loading…
Reference in a new issue