From 5c83327eb00a64f2839260fb31613201220e7872 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Mon, 17 Apr 2023 19:52:54 +0000 Subject: [PATCH] qml: small change to some qsTr() strings to reuse existing translations not all ":" suffixes are removed, only the ones where this allows reusing translations --- electrum/gui/qml/components/Channels.qml | 4 ++-- electrum/gui/qml/components/NetworkOverview.qml | 10 +++++----- .../gui/qml/components/controls/BalanceSummary.qml | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/electrum/gui/qml/components/Channels.qml b/electrum/gui/qml/components/Channels.qml index 7a67256be..b2a8f5628 100644 --- a/electrum/gui/qml/components/Channels.qml +++ b/electrum/gui/qml/components/Channels.qml @@ -40,7 +40,7 @@ Pane { } Label { - text: qsTr('You can send:') + text: qsTr('You can send') + ':' color: Material.accentColor } @@ -49,7 +49,7 @@ Pane { } Label { - text: qsTr('You can receive:') + text: qsTr('You can receive') + ':' color: Material.accentColor } diff --git a/electrum/gui/qml/components/NetworkOverview.qml b/electrum/gui/qml/components/NetworkOverview.qml index f1339dc1f..41fdc0984 100644 --- a/electrum/gui/qml/components/NetworkOverview.qml +++ b/electrum/gui/qml/components/NetworkOverview.qml @@ -37,21 +37,21 @@ Pane { text: qsTr('On-chain') } Label { - text: qsTr('Network:'); + text: qsTr('Network') + ':' color: Material.accentColor } Label { text: Network.networkName } Label { - text: qsTr('Status:'); + text: qsTr('Status') + ':' color: Material.accentColor } Label { text: Network.status } Label { - text: qsTr('Server:'); + text: qsTr('Server') + ':' color: Material.accentColor } Label { @@ -165,7 +165,7 @@ Pane { } Label { - text: Config.useGossip ? qsTr('Gossip:') : qsTr('Trampoline:') + text: (Config.useGossip ? qsTr('Gossip') : qsTr('Trampoline')) + ':' color: Material.accentColor } ColumnLayout { @@ -201,7 +201,7 @@ Pane { } Label { - text: qsTr('Proxy:'); + text: qsTr('Proxy') + ':' color: Material.accentColor } Label { diff --git a/electrum/gui/qml/components/controls/BalanceSummary.qml b/electrum/gui/qml/components/controls/BalanceSummary.qml index e02ef92fe..15e3ace0d 100644 --- a/electrum/gui/qml/components/controls/BalanceSummary.qml +++ b/electrum/gui/qml/components/controls/BalanceSummary.qml @@ -35,7 +35,7 @@ Item { Label { font.pixelSize: constants.fontSizeXLarge - text: qsTr('Balance:') + text: qsTr('Balance') + ':' color: Material.accentColor } @@ -79,7 +79,7 @@ Item { source: '../../../icons/lightning.png' } Label { - text: qsTr('Lightning:') + text: qsTr('Lightning') + ':' font.pixelSize: constants.fontSizeSmall color: Material.accentColor } @@ -106,7 +106,7 @@ Item { source: '../../../icons/bitcoin.png' } Label { - text: qsTr('On-chain:') + text: qsTr('On-chain') + ':' font.pixelSize: constants.fontSizeSmall color: Material.accentColor }