FIX language-setting

Set language to system-default on start-up, if for
whatever reason the setting in file or registry
for language is empty.
This commit is contained in:
plc-user
2026-09-04 21:46:23 +02:00
parent b98589d3c7
commit a7fa4dfdcf
+1 -1
View File
@@ -267,7 +267,7 @@ QString QETApp::langFromSetting()
{
QSettings settings;
system_language = settings.value("lang", "system").toString();
if(system_language == "system") {
if ((system_language == "system") || (system_language == QString())) {
// Keep the full locale (e.g. "pt_BR"), not just the base language
// ("pt"): QET ships regional translations (pt_BR, nl_BE, nl_NL) and
// truncating here loaded the wrong one. setLanguage() falls back to