Skip to content

Commit

Permalink
Don't include HTML tags for translations
Browse files Browse the repository at this point in the history
  • Loading branch information
pathmapper authored and nyalldawson committed Sep 6, 2021
1 parent c8e814a commit 31ef7a4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/processing/qgsprocessingutils.cpp
Expand Up @@ -1055,7 +1055,7 @@ QString QgsProcessingUtils::formatHelpMapAsHtml( const QVariantMap &map, const Q
}
}
if ( !inputs.isEmpty() )
s += QObject::tr( "<h2>Input parameters</h2>\n" ) + inputs;
s += QStringLiteral( "<h2>" ) + QObject::tr( "Input parameters" ) + QStringLiteral( "</h2>\n" ) + inputs;

QString outputs;
const auto outputDefinitions = algorithm->outputDefinitions();
Expand All @@ -1068,15 +1068,15 @@ QString QgsProcessingUtils::formatHelpMapAsHtml( const QVariantMap &map, const Q
}
}
if ( !outputs.isEmpty() )
s += QObject::tr( "<h2>Outputs</h2>\n" ) + outputs;
s += QStringLiteral( "<h2>" ) + QObject::tr( "Outputs" ) + QStringLiteral( "</h2>\n" ) + outputs;

s += QLatin1String( "<br>" );
if ( !map.value( QStringLiteral( "ALG_CREATOR" ) ).toString().isEmpty() )
s += QObject::tr( "<p align=\"right\">Algorithm author: %1</p>" ).arg( getText( QStringLiteral( "ALG_CREATOR" ) ) );
s += QStringLiteral( "<p align=\"right\">" ) + QObject::tr( "Algorithm author") + QStringLiteral( ": " ) + getText( QStringLiteral( "ALG_CREATOR" ) ) + QStringLiteral( "</p>" );
if ( !map.value( QStringLiteral( "ALG_HELP_CREATOR" ) ).toString().isEmpty() )
s += QObject::tr( "<p align=\"right\">Help author: %1</p>" ).arg( getText( QStringLiteral( "ALG_HELP_CREATOR" ) ) );
s += QStringLiteral( "<p align=\"right\">" ) + QObject::tr( "Help author") + QStringLiteral( ": " ) + getText( QStringLiteral( "ALG_HELP_CREATOR" ) ) + QStringLiteral( "</p>" );
if ( !map.value( QStringLiteral( "ALG_VERSION" ) ).toString().isEmpty() )
s += QObject::tr( "<p align=\"right\">Algorithm version: %1</p>" ).arg( getText( QStringLiteral( "ALG_VERSION" ) ) );
s += QStringLiteral( "<p align=\"right\">" ) + QObject::tr( "Algorithm version") + QStringLiteral( ": " ) + getText( QStringLiteral( "ALG_VERSION" ) ) + QStringLiteral( "</p>" );

s += QLatin1String( "</body></html>" );
return s;
Expand Down

0 comments on commit 31ef7a4

Please sign in to comment.