You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
First-launch language is chosen from regional format, not Windows display language #4208
Started the app for the first time (fresh install, no existing settings file).
What did you expect to see?
The GUI in English, matching my Windows display language.
What did you see instead?
The GUI in a mix of Swedish and English (the Swedish translation seems incomplete).
My Windows display language is English. My region and regional format are Sweden/Swedish.
Cause (from reading the source)
In src/Settings.cpp, the default for General/language is:
return QLocale::system().name();
This is derived from the regional format (sv_SE), not the Windows display language. src/Application.cpp then loads sqlb_<that value> and saves it back with Settings::setValue("General", "language", name), so the choice sticks after the first launch.
Suggested fix
Use the first entry of QLocale::system().uiLanguages() as the default, which reflects the display language. As far as I can tell, the value needs - converted to _, because QTranslator::load() only splits on _ and .:
Activity