+ qWarning() << "QT translations for" << language << "not found at" <<
+ tr_path << ", Qt translations package is probably missing";
+
+ // Qt base translations
+ if (qtbase_translator_.load("qtbase_" + language, tr_path))
+ installTranslator(&qtbase_translator_);
+ else
+ qWarning() << "QT base translations for" << language << "not found at" <<
+ tr_path << ", Qt translations package is probably missing";
+ }
+
+ if (!topLevelWidgets().empty()) {
+ // Force all windows to update
+ for (QWidget *widget : topLevelWidgets())
+ widget->update();
+
+ QMessageBox msg(topLevelWidgets().front());
+ msg.setText(tr("Some parts of the application may still " \
+ "use the previous language. Re-opening the affected windows or " \
+ "restarting the application will remedy this."));
+ msg.setStandardButtons(QMessageBox::Ok);
+ msg.setIcon(QMessageBox::Information);
+ msg.exec();