Qt: Fix missing font message not being translatable

This commit is contained in:
Stenzek 2024-01-07 17:28:42 +10:00 committed by Connor McLaughlin
parent 46e1e3d904
commit 509c9318af
1 changed files with 3 additions and 3 deletions

View File

@ -352,14 +352,14 @@ bool QtHost::DownloadMissingFont(QWidget* dialog_parent, const char* font_name,
{
QMessageBox msgbox(dialog_parent);
msgbox.setWindowTitle(qApp->translate("MainWindow", QT_TRANSLATE_NOOP("MainWindow", "Missing Font File")));
msgbox.setWindowTitle(qApp->translate("MainWindow", "Missing Font File"));
msgbox.setWindowIcon(QtHost::GetAppIcon());
msgbox.setIcon(QMessageBox::Critical);
msgbox.setTextFormat(Qt::RichText);
msgbox.setText(qApp->translate("MainWindow", QT_TRANSLATE_NOOP("MainWindow",
msgbox.setText(qApp->translate("MainWindow",
"The font file '%1' is required for the On-Screen Display and Big Picture Mode to show messages in your language.<br><br>"
"Do you want to download this file now? These files are usually less than 10 megabytes in size.<br><br>"
"<strong>If you do not download this file, on-screen messages will not be readable.</strong>"))
"<strong>If you do not download this file, on-screen messages will not be readable.</strong>")
.arg(QLatin1StringView(font_name)));
msgbox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
if (msgbox.exec() != QMessageBox::Yes)