Qt: Detach markup from dialog translations

This commit is contained in:
Megamouse 2025-03-12 12:43:47 +01:00
parent b2ed787c3a
commit ff40128df6
6 changed files with 72 additions and 60 deletions

View file

@ -101,17 +101,15 @@ bool gui_application::Init()
msg.setTextFormat(Qt::RichText);
msg.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
msg.setDefaultButton(QMessageBox::No);
msg.setText(tr(
R"(
<p style="white-space: nowrap;">
Please understand that this build is not an official RPCS3 release.<br>
This build contains changes that may break games, or even <b>damage</b> your data.<br>
We recommend to download and use the official build from the <a %0 href='https://rpcs3.net/download'>RPCS3 website</a>.<br><br>
Build origin: %1<br>
Do you wish to use this build anyway?
</p>
)"
).arg(gui::utils::get_link_style()).arg(Qt::convertFromPlainText(branch_name.data())));
msg.setText(gui::utils::make_paragraph(tr(
"Please understand that this build is not an official RPCS3 release.\n"
"This build contains changes that may break games, or even <b>damage</b> your data.\n"
"We recommend to download and use the official build from the %0.\n"
"\n"
"Build origin: %1\n"
"Do you wish to use this build anyway?")
.arg(gui::utils::make_link(tr("RPCS3 website"), "https://rpcs3.net/download"))
.arg(Qt::convertFromPlainText(branch_name.data()))));
msg.layout()->setSizeConstraint(QLayout::SetFixedSize);
if (msg.exec() == QMessageBox::No)