Skip to content

Commit

Permalink
Fix qtbase translations not being loaded (regression)
Browse files Browse the repository at this point in the history
  • Loading branch information
phoerious committed Mar 4, 2018
1 parent df185b4 commit 2fd2085
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/Translator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ void Translator::installTranslators()
bool translationsLoaded = false;
for (const QString& path : paths) {
translationsLoaded |= installTranslator(language, path) || installTranslator("en_US", path);
if (!installQtTranslator(language, path)) {
installQtTranslator("en", path);
}
}
if (!translationsLoaded) {
// couldn't load configured language or fallback
Expand Down

0 comments on commit 2fd2085

Please sign in to comment.