From c3a418d4dad9cd16c413a286b294d2711f9b1462 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Fri, 21 Apr 2023 17:04:21 +0200 Subject: [PATCH] qml: address list heading translatable --- electrum/gui/qml/components/Addresses.qml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qml/components/Addresses.qml b/electrum/gui/qml/components/Addresses.qml index f56aadddd..935b5710d 100644 --- a/electrum/gui/qml/components/Addresses.qml +++ b/electrum/gui/qml/components/Addresses.qml @@ -54,13 +54,20 @@ Pane { height: childrenRect.height required property string section + property string section_label: section == 'receive' + ? qsTr('receive addresses') + : section == 'change' + ? qsTr('change addresses') + : section == 'imported' + ? qsTr('imported addresses') + : section + ' ' + qsTr('addresses') ColumnLayout { width: parent.width Heading { Layout.leftMargin: constants.paddingLarge Layout.rightMargin: constants.paddingLarge - text: root.section + ' ' + qsTr('addresses') + text: root.section_label } } }