diff options
author | Daniel Wingerd <qt@adaptivetime.com> | 2018-12-10 16:15:31 -0500 |
---|---|---|
committer | Gravis <qt@adaptivetime.com> | 2018-12-14 10:44:18 +0000 |
commit | b8a4050bab8c51e1b4a16a0de9134ddedc69bb06 (patch) | |
tree | 25eff8fe1f7eb992d7072e2d2fa87ebe97b73402 /src/plugins/help/helpplugin.cpp | |
parent | e3026623a3682cad7d89d97876cb3dd5b6d9de7e (diff) |
help plugin: strip html from a translatable string
Change-Id: I4c147c969ae04c50ca2d6fd40143919236f97679
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'src/plugins/help/helpplugin.cpp')
-rw-r--r-- | src/plugins/help/helpplugin.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/plugins/help/helpplugin.cpp b/src/plugins/help/helpplugin.cpp index 78dcad316c..b8710006dc 100644 --- a/src/plugins/help/helpplugin.cpp +++ b/src/plugins/help/helpplugin.cpp @@ -685,14 +685,16 @@ void HelpPluginPrivate::showContextHelp(const QString &contextHelpId) if (!source.isValid()) { // No link found or no context object showInHelpViewer(QUrl(Help::Constants::AboutBlank), viewer); - viewer->setHtml(HelpPlugin::tr("<html><head><title>No Documentation</title>" + viewer->setHtml(QString("<html><head><title>%1</title>" "</head><body><br/><center>" - "<font color=\"%1\"><b>%2</b></font><br/>" - "<font color=\"%3\">No documentation available.</font>" + "<font color=\"%2\"><b>%3</b></font><br/>" + "<font color=\"%4\">%5</font>" "</center></body></html>") + .arg(HelpPlugin::tr("No Documentation")) .arg(creatorTheme()->color(Theme::TextColorNormal).name()) .arg(contextHelpId) - .arg(creatorTheme()->color(Theme::TextColorNormal).name())); + .arg(creatorTheme()->color(Theme::TextColorNormal).name()) + .arg(HelpPlugin::tr("No documentation available."))); } else { showInHelpViewer(source, viewer); // triggers loadFinished which triggers id highlighting } |