Cleanup html/css in text to be translated.

This commit is contained in:
Jonathan Cross
2017-12-01 15:38:57 +01:00
parent c1ac91d926
commit 7ba6eac43a
3 changed files with 22 additions and 11 deletions

View File

@@ -331,9 +331,12 @@ Rectangle {
Label {
id: trackingLabel
textFormat: Text.RichText
text: qsTr("<style type='text/css'>a {text-decoration: none; color: #FF6C3C; font-size: 14px;}</style>\
Tracking <font size='2'> (</font><a href='#'>help</a><font size='2'>)</font>")
+ translationManager.emptyString
text: "<style type='text/css'>a {text-decoration: none; color: #FF6C3C; font-size: 14px;}</style>" +
qsTr("Tracking") +
"<font size='2'> (</font><a href='#'>" +
qsTr("help") +
"</a><font size='2'>)</font>" +
translationManager.emptyString
width: mainLayout.labelWidth
onLinkActivated: {
trackingHowToUseDialog.title = qsTr("Tracking payments") + translationManager.emptyString;