aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-02-19 22:07:38 -0500
committerluigi1111 <luigi1111w@gmail.com>2020-02-19 22:07:38 -0500
commitd1e431c5e8cf12faa10b1bdd4beccfb11c81f5aa (patch)
treed4e8f78b6925c8edf684bd7592af0442f11ffa0d /pages
parent4c0996888a083b3f816acd156b14bb7f882e0bcc (diff)
parent98ab4ea2aab7e680d8fa96f836c7d15c659ea082 (diff)
downloadmonzero-gui-d1e431c5e8cf12faa10b1bdd4beccfb11c81f5aa.tar.gz
monzero-gui-d1e431c5e8cf12faa10b1bdd4beccfb11c81f5aa.tar.xz
monzero-gui-d1e431c5e8cf12faa10b1bdd4beccfb11c81f5aa.zip
Merge pull request #2769
98ab4ea misc: strip html out of translatable strings (selsta)
Diffstat (limited to 'pages')
-rw-r--r--pages/AddressBook.qml8
-rw-r--r--pages/Transfer.qml8
-rw-r--r--pages/merchant/Merchant.qml12
-rw-r--r--pages/settings/SettingsInfo.qml2
-rw-r--r--pages/settings/SettingsNode.qml2
5 files changed, 14 insertions, 18 deletions
diff --git a/pages/AddressBook.qml b/pages/AddressBook.qml
index caaf9d5d..fef61bc3 100644
--- a/pages/AddressBook.qml
+++ b/pages/AddressBook.qml
@@ -306,8 +306,8 @@ Rectangle {
MoneroComponents.LineEditMulti {
id: addressLine
Layout.topMargin: 20
- labelText: qsTr("<style type='text/css'>a {text-decoration: none; color: #858585; font-size: 14px;}</style>\
- Address") + translationManager.emptyString
+ labelText: "<style type='text/css'>a {text-decoration: none; color: #858585; font-size: 14px;}</style> %1"
+ .arg(qsTr("Address")) + translationManager.emptyString
placeholderText: {
if(persistentSettings.nettype == NetworkType.MAINNET){
return "4.. / 8.. / OpenAlias";
@@ -384,8 +384,8 @@ Rectangle {
MoneroComponents.LineEditMulti {
id: descriptionLine
Layout.topMargin: 20
- labelText: qsTr("<style type='text/css'>a {text-decoration: none; color: #858585; font-size: 14px;}</style>\
- Description") + translationManager.emptyString
+ labelText: "<style type='text/css'>a {text-decoration: none; color: #858585; font-size: 14px;}</style> %1"
+ .arg(qsTr("Description")) + translationManager.emptyString
placeholderText: qsTr("Add a name...") + translationManager.emptyString
}
RowLayout {
diff --git a/pages/Transfer.qml b/pages/Transfer.qml
index 8bfcabc9..67f53eb6 100644
--- a/pages/Transfer.qml
+++ b/pages/Transfer.qml
@@ -78,7 +78,7 @@ Rectangle {
return "";
}
- 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><a href='#'>(%1)</a>".arg(qsTr("Start daemon")) + translationManager.emptyString
property bool warningLongPidDescription: descriptionLine.text.match(/^[0-9a-f]{64}$/i)
Clipboard { id: clipboard }
@@ -176,8 +176,8 @@ Rectangle {
id: amountLine
Layout.fillWidth: true
inlineIcon: true
- labelText: qsTr("<style type='text/css'>a {text-decoration: none; color: #858585; font-size: 14px;}</style>\
- Amount <font size='2'> ( </font> <a href='#'>Change account</a><font size='2'> )</font>")
+ labelText: "<style type='text/css'>a {text-decoration: none; color: #858585; font-size: 14px;}</style>\
+ %1 <a href='#'>(%2)</a>".arg(qsTr("Amount")).arg(qsTr("Change account"))
+ translationManager.emptyString
copyButton: !isNaN(amountLine.text) && persistentSettings.fiatPriceEnabled
copyButtonText: fiatApiCurrencySymbol() + " ~" + fiatApiConvertToFiat(amountLine.text)
@@ -262,7 +262,7 @@ Rectangle {
spacing: 0
fontBold: true
labelText: qsTr("<style type='text/css'>a {text-decoration: none; color: #858585; font-size: 14px;}</style>\
- Address <font size='2'> ( </font> <a href='#'>Address book</a><font size='2'> )</font>")
+ %1 <a href='#'>(%2)</a>").arg(qsTr("Address")).arg(qsTr("Address book"))
+ translationManager.emptyString
labelButtonText: qsTr("Resolve") + translationManager.emptyString
placeholderText: {
diff --git a/pages/merchant/Merchant.qml b/pages/merchant/Merchant.qml
index 99eddfcf..750ff2aa 100644
--- a/pages/merchant/Merchant.qml
+++ b/pages/merchant/Merchant.qml
@@ -151,14 +151,10 @@ Item {
model: trackingModel
message: {
if(!root.enableTracking){
- return qsTr(
- "<style>p{font-size:14px;}</style>" +
- "<p>This page will automatically scan the blockchain and the tx pool " +
- "for incoming transactions using the QR code.</p>" +
- "<p>It's up to you whether to accept unconfirmed transactions or not. It is likely they'll be " +
- "confirmed in short order, but there is still a possibility they might not, so for larger " +
- "values you may want to wait for one or more confirmation(s).</p>"
- ) + translationManager.emptyString;
+ return "<style>p{font-size:14px;}</style> <p>%1</p> <p>%2</p>"
+ .arg(qsTr("This page will automatically scan the blockchain and the tx pool for incoming transactions using the QR code."))
+ .arg(qsTr("It's up to you whether to accept unconfirmed transactions or not. It is likely they'll be confirmed in short order, but there is still a possibility they might not, so for larger values you may want to wait for one or more confirmation(s)"))
+ + translationManager.emptyString;
} else if(root.trackingError !== ""){
return root.trackingError;
} else if(trackingModel.count < 1){
diff --git a/pages/settings/SettingsInfo.qml b/pages/settings/SettingsInfo.qml
index 91b301ff..84d066e7 100644
--- a/pages/settings/SettingsInfo.qml
+++ b/pages/settings/SettingsInfo.qml
@@ -182,7 +182,7 @@ Rectangle {
color: MoneroComponents.Style.dimmedFontColor
font.pixelSize: 14
property var style: "<style type='text/css'>a {cursor:pointer;text-decoration: none; color: #FF6C3C}</style>"
- text: (currentWallet ? currentWallet.walletCreationHeight : "") + style + qsTr(" <a href='#'> (Click to change)</a>") + translationManager.emptyString
+ text: (currentWallet ? currentWallet.walletCreationHeight : "") + style + " <a href='#'> (%1)</a>".arg(qsTr("Change")) + translationManager.emptyString
onLinkActivated: {
inputDialog.labelText = qsTr("Set a new restore height.\nYou can enter a block height or a date (YYYY-MM-DD):") + translationManager.emptyString;
inputDialog.onAcceptedCallback = function() {
diff --git a/pages/settings/SettingsNode.qml b/pages/settings/SettingsNode.qml
index 5ca4d320..e00cb849 100644
--- a/pages/settings/SettingsNode.qml
+++ b/pages/settings/SettingsNode.qml
@@ -381,7 +381,7 @@ Rectangle{
fontSize: 15
labelFontSize: 14
property string style: "<style type='text/css'>a {cursor:pointer;text-decoration: none; color: #FF6C3C}</style>"
- labelText: qsTr("Blockchain location") + style + qsTr(" <a href='#'> (change)</a>") + translationManager.emptyString
+ labelText: qsTr("Blockchain location") + style + " <a href='#'> (%1)</a>".arg(qsTr("Change")) + translationManager.emptyString
placeholderText: qsTr("(default)") + translationManager.emptyString
placeholderFontSize: 15
readOnly: true