Add language defaults for first-run experience and introduce Qt tool command wrapper
This commit sets default languages to English for the application unless the user specifies a different language, ensuring a consistent first-run experience across different system locales. Additionally, a wrapper for Qt tools is introduced in the CMake configuration for non-Windows platforms to filter out non-actionable output during builds.
This commit is contained in:
@@ -283,6 +283,13 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
}
|
||||
|
||||
// Default to English unless the user explicitly selected a language (CLI or settings).
|
||||
// This makes the first-run experience deterministic across system locales.
|
||||
if (languages.isEmpty()) {
|
||||
languages << u"en_US"_s;
|
||||
languages << u"en"_s;
|
||||
}
|
||||
|
||||
// Use system UI languages
|
||||
if (languages.isEmpty()) {
|
||||
# if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
|
||||
|
||||
Reference in New Issue
Block a user