mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-06 19:54:13 +02:00
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:
+1
-1
@@ -267,7 +267,7 @@ QString QETApp::langFromSetting()
|
|||||||
{
|
{
|
||||||
QSettings settings;
|
QSettings settings;
|
||||||
system_language = settings.value("lang", "system").toString();
|
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
|
// 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
|
// ("pt"): QET ships regional translations (pt_BR, nl_BE, nl_NL) and
|
||||||
// truncating here loaded the wrong one. setLanguage() falls back to
|
// truncating here loaded the wrong one. setLanguage() falls back to
|
||||||
|
|||||||
Reference in New Issue
Block a user