Browse Source

qml: address list heading translatable

master
Sander van Grieken 3 years ago
parent
commit
c3a418d4da
  1. 9
      electrum/gui/qml/components/Addresses.qml

9
electrum/gui/qml/components/Addresses.qml

@ -54,13 +54,20 @@ Pane {
height: childrenRect.height height: childrenRect.height
required property string section 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 { ColumnLayout {
width: parent.width width: parent.width
Heading { Heading {
Layout.leftMargin: constants.paddingLarge Layout.leftMargin: constants.paddingLarge
Layout.rightMargin: constants.paddingLarge Layout.rightMargin: constants.paddingLarge
text: root.section + ' ' + qsTr('addresses') text: root.section_label
} }
} }
} }

Loading…
Cancel
Save