main: Try different language codes for QtSparkle

This commit is contained in:
Jonas Kvinge
2025-10-31 23:06:00 +01:00
parent 038f69779f
commit c8e3cf981b

View File

@@ -323,11 +323,13 @@ int main(int argc, char *argv[]) {
}
}
# ifdef HAVE_QTSPARKLE
if (!languages.isEmpty()) {
qtsparkle::LoadTranslations(languages.first());
#ifdef HAVE_QTSPARKLE
for (const QString &language : std::as_const(languages)) {
if (qtsparkle::LoadTranslations(language)) {
break;
}
}
# endif
#endif // HAVE_QTSPARKLE
#endif // HAVE_TRANSLATIONS