forked from len0rd/rockbox
rbutil: Call QLocale::setDefault() with QLocale.
QLocale::setDefault() shouldn't be called with a QString but a QLocale instead. Calling it with a string doesn't work with Qt6 anymore. Change-Id: I08826095cda8563e4ae9b83d08144da2d0d7f3c7
This commit is contained in:
parent
1e39619034
commit
5640d0d3c7
2 changed files with 2 additions and 2 deletions
|
|
@ -630,7 +630,7 @@ void Config::updateLanguage()
|
||||||
RbUtilQt::translators.append(translator);
|
RbUtilQt::translators.append(translator);
|
||||||
RbUtilQt::translators.append(qttrans);
|
RbUtilQt::translators.append(qttrans);
|
||||||
|
|
||||||
QLocale::setDefault(language);
|
QLocale::setDefault(QLocale(language));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ int main( int argc, char ** argv ) {
|
||||||
QLibraryInfo::location(QLibraryInfo::TranslationsPath)))
|
QLibraryInfo::location(QLibraryInfo::TranslationsPath)))
|
||||||
qttrans.load("qt_" + applang, ":/lang");
|
qttrans.load("qt_" + applang, ":/lang");
|
||||||
|
|
||||||
QLocale::setDefault(applang);
|
QLocale::setDefault(QLocale(applang));
|
||||||
}
|
}
|
||||||
delete user;
|
delete user;
|
||||||
app.installTranslator(&translator);
|
app.installTranslator(&translator);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue