cleanup code

This commit is contained in:
kleidis 2024-08-21 16:03:41 +02:00
parent 9d981c55e5
commit 376c9005d6

View file

@ -3093,9 +3093,8 @@ void GMainWindow::LoadTranslation() {
bool loaded;
if (UISettings::values.language.isEmpty()) {
// Use the system's default locale
QLocale defaultLocale = QLocale::system();
loaded = translator.load(defaultLocale, {}, {}, QStringLiteral(":/languages/"));
// Use the system's default locale
loaded = translator.load(QLocale::system(), {}, {}, QStringLiteral(":/languages/"));
} else {
// Otherwise load from the specified file
loaded = translator.load(UISettings::values.language, QStringLiteral(":/languages/"));