You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
language_option_label->setText(tr("UI & Tutorial Language (Requires a restart to take effect)"));
388
-
language_option_label->setToolTip(tr("Change the language of the UI & Tutorial (Requires a restart to take effect)"));
389
-
390
-
language_info_label = new QLabel;
391
-
language_info_label->setText(tr("Translations have been generously provided by volunteers \non https://hosted.weblate.org/projects/sonic-pi/. Thank you! :)"));
392
-
393
-
QVBoxLayout *language_box_layout = new QVBoxLayout;
language_info_label->setText(tr("Translations have been generously provided by volunteers \non https://hosted.weblate.org/projects/sonic-pi/. Thank you! :)"));
500
+
501
+
QVBoxLayout *language_box_layout = new QVBoxLayout;
msgBox.setText(QString(tr("You've selected a new language: %1")).arg(new_lang));
559
-
msgBox.setInformativeText(tr("Do you want to apply this language?") + "\n" + tr("Applying the new language will stop any current runs & recordings, and restart Sonic Pi."));
575
+
QString info_text = tr("Do you want to apply this language?") + "\n" + tr("Applying the new language will stop any current runs & recordings, and restart Sonic Pi.");
576
+
577
+
if (lang == "system_language") {
578
+
info_text = tr("System languages found %1").arg(sonicPii18n->getNativeLanguageNames(sonicPii18n->system_languages).join(", ")) + "\n" + info_text;
579
+
}
580
+
581
+
msgBox.setInformativeText(info_text);
560
582
QPushButton *restartButton = msgBox.addButton(tr("Apply and Restart"), QMessageBox::ActionRole);
0 commit comments