qml: address list heading translatable
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user