Gui: Default Translator::SetLocale to OS locale + simplify code

This commit is contained in:
0penBrain
2022-03-28 19:15:04 +02:00
committed by wwmayer
parent 32f6443bd4
commit 7a74ae01d3
3 changed files with 13 additions and 17 deletions

View File

@@ -144,7 +144,7 @@ void DlgGeneralImp::setNumberLocale(bool force/* = false*/)
return;
if (localeFormat == 0) {
Translator::instance()->setSystemLocale();
Translator::instance()->setLocale(); // Defaults to system locale
}
else if (localeFormat == 1) {
QByteArray current = ui->Languages->itemData(ui->Languages->currentIndex()).toByteArray();