main: Try different language codes for QtSparkle
This commit is contained in:
10
src/main.cpp
10
src/main.cpp
@@ -323,11 +323,13 @@ int main(int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# ifdef HAVE_QTSPARKLE
|
#ifdef HAVE_QTSPARKLE
|
||||||
if (!languages.isEmpty()) {
|
for (const QString &language : std::as_const(languages)) {
|
||||||
qtsparkle::LoadTranslations(languages.first());
|
if (qtsparkle::LoadTranslations(language)) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
# endif
|
#endif // HAVE_QTSPARKLE
|
||||||
|
|
||||||
#endif // HAVE_TRANSLATIONS
|
#endif // HAVE_TRANSLATIONS
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user