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:
2026-01-22 14:48:03 +09:00
parent 49cd7a6210
commit 484ce3f737
3 changed files with 39 additions and 0 deletions

View File

@@ -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)