aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Cross <jcross@gmail.com>2017-12-01 15:38:57 +0100
committerJonathan Cross <jcross@gmail.com>2017-12-01 15:38:57 +0100
commit7ba6eac43a55367748e52f6a86d07dae5fe373da (patch)
treed367293bb9b8af28b2550a9398a5367a39ae5399
parentc1ac91d926022da656373a934e0239498efc735e (diff)
downloadmonzero-gui-7ba6eac43a55367748e52f6a86d07dae5fe373da.tar.gz
monzero-gui-7ba6eac43a55367748e52f6a86d07dae5fe373da.tar.xz
monzero-gui-7ba6eac43a55367748e52f6a86d07dae5fe373da.zip
Cleanup html/css in text to be translated.
-rw-r--r--pages/Receive.qml9
-rw-r--r--pages/Sign.qml9
-rw-r--r--pages/Transfer.qml15
3 files changed, 22 insertions, 11 deletions
diff --git a/pages/Receive.qml b/pages/Receive.qml
index b22ddfcd..5e5e9337 100644
--- a/pages/Receive.qml
+++ b/pages/Receive.qml
@@ -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;
diff --git a/pages/Sign.qml b/pages/Sign.qml
index 3c57fac7..69862ada 100644
--- a/pages/Sign.qml
+++ b/pages/Sign.qml
@@ -383,9 +383,12 @@ Rectangle {
Text {
id: verifyAddressLabel
- text: qsTr("<style type='text/css'>a {text-decoration: none; color: #FF6C3C; font-size: %1px;}</style>\
- Signing address <font size='%2'> ( Paste in or select from </font> <a href='#'>Address book</a><font size='%3'> )</font>").arg(14 * scaleRatio).arg(2 * scaleRatio).arg(2 * scaleRatio)
- + translationManager.emptyString
+ text: "<style type='text/css'>a {text-decoration: none; color: #FF6C3C; font-size: " + (14 * scaleRatio) + "px;}</style>" +
+ qsTr("Signing address") +
+ "<font size='" + (2 * scaleRatio) + "'> ( " +
+ qsTr("Paste in or select from <a href='#'>Address book</a>") +
+ " )</font>" +
+ translationManager.emptyString
wrapMode: Text.Wrap
font.pixelSize: 14 * scaleRatio
Layout.fillWidth: true
diff --git a/pages/Transfer.qml b/pages/Transfer.qml
index 29ca46ed..ac75f6ac 100644
--- a/pages/Transfer.qml
+++ b/pages/Transfer.qml
@@ -41,7 +41,10 @@ Rectangle {
signal sweepUnmixableClicked()
color: "#F0EEEE"
- property string startLinkText: qsTr("<style type='text/css'>a {text-decoration: none; color: #FF6C3C; font-size: 14px;}</style><font size='2'> (</font><a href='#'>Start daemon</a><font size='2'>)</font>") + translationManager.emptyString
+ property string startLinkText: "<style type='text/css'>a {text-decoration: none; color: #FF6C3C; font-size: 14px;}</style><font size='2'> (</font><a href='#'>" +
+ qsTr("Start daemon") +
+ "</a><font size='2'>)</font>" +
+ translationManager.emptyString
property bool showAdvanced: false
function scaleValueToMixinCount(scaleValue) {
@@ -222,10 +225,12 @@ Rectangle {
Label {
id: addressLabel
textFormat: Text.RichText
- text: qsTr("<style type='text/css'>a {text-decoration: none; color: #FF6C3C; font-size: 14px;}</style>\
- Address <font size='2'> ( Paste in or select from </font> <a href='#'>Address book</a><font size='2'> )</font>")
- + translationManager.emptyString
-
+ text: "<style type='text/css'>a {text-decoration: none; color: #FF6C3C; font-size: 14px;}</style>" +
+ qsTr("Address") +
+ "<font size='2'> ( " +
+ qsTr("Paste in or select from <a href='#'>Address book</a>") +
+ " )</font>" +
+ translationManager.emptyString
onLinkActivated: appWindow.showPageRequest("AddressBook")
Layout.fillWidth: true
}