Fix refresh command error msgs

Properly use xi18nc in OpenPGP Refresh and use bcode
in both messages to have proper linebreaks.
parent 977679b0
......@@ -121,10 +121,10 @@ QString RefreshOpenPGPCertsCommand::crashExitMessage(const QStringList &args) co
QString RefreshOpenPGPCertsCommand::errorExitMessage(const QStringList &args) const
{
return i18nc("@info",
"<para>An error occurred while trying to refresh OpenPGP certificates.</para> "
"<para>The output from <command>%1</command> was: <message>%2</message></para>",
args[0], errorString().replace(QLatin1Char('\n'), QStringLiteral("<br>")));
return xi18nc("@info",
"<para>An error occurred while trying to refresh OpenPGP certificates.</para> "
"<para>The output from <command>%1</command> was: <bcode>%2</bcode></para>",
args[0], errorString());
}
QString RefreshOpenPGPCertsCommand::successMessage(const QStringList &) const
......
......@@ -99,8 +99,8 @@ QString RefreshX509CertsCommand::errorExitMessage(const QStringList &args) const
{
return xi18nc("@info",
"<para>An error occurred while trying to refresh X.509 certificates.</para>"
"<para>The output from <command>%1</command> was: <message>%2</message></para>",
args[0], errorString().replace(QLatin1Char('\n'), QStringLiteral("<br>")));
"<para>The output from <command>%1</command> was: <bcode>%2</bcode></para>",
args[0], errorString());
}
QString RefreshX509CertsCommand::successMessage(const QStringList &) const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment