refactor: messages::showDaemonOffline enable translations

This commit is contained in:
sithlord48 2025-06-07 23:36:46 -04:00 committed by Nick Bolton
parent ebec6331cd
commit e40cc11fd5

View file

@ -313,7 +313,8 @@ bool showDaemonOffline(QWidget *parent)
const auto ignore = message.addButton(QObject::tr("Ignore"), QMessageBox::RejectRole); const auto ignore = message.addButton(QObject::tr("Ignore"), QMessageBox::RejectRole);
const auto disable = message.addButton(QObject::tr("Disable"), QMessageBox::NoRole); const auto disable = message.addButton(QObject::tr("Disable"), QMessageBox::NoRole);
message.setText(QString( message.setText(
QObject::tr(
"<p>There was a problem finding the %1 background service (daemon).</p>" "<p>There was a problem finding the %1 background service (daemon).</p>"
"<p>The background service makes %1 work with UAC prompts and the login screen.</p>" "<p>The background service makes %1 work with UAC prompts and the login screen.</p>"
"<p>If don't want to use the background service and intentionally stopped it, " "<p>If don't want to use the background service and intentionally stopped it, "
@ -321,7 +322,8 @@ bool showDaemonOffline(QWidget *parent)
"<p>If you did not stop the background service intentionally, there may be a problem with it. " "<p>If you did not stop the background service intentionally, there may be a problem with it. "
"Please retry or try restarting the %1 service from the Windows services program.</p>" "Please retry or try restarting the %1 service from the Windows services program.</p>"
) )
.arg(kAppName)); .arg(kAppName)
);
message.exec(); message.exec();
if (message.clickedButton() == ignore) { if (message.clickedButton() == ignore) {