Skip to content

Commit

Permalink
Use translations in BumpFeeDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
domegabri committed Apr 17, 2020
1 parent f6497dd commit 99941c8
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions qml/BumpFeeDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import QtQuick.Controls 2.13
import QtQuick.Layouts 1.12

ControllerDialog {
title: qsTr('id_bump_fee')
title: qsTr('id_increase_fee')
property Transaction transaction

controller: BumpFeeController { }
Expand All @@ -14,7 +14,7 @@ ControllerDialog {
initialItem: FocusScope {
property list<Action> actions: [
Action {
text: controller.tx.error !== '' ? qsTrId(controller.tx.error) : qsTrId('id_bump')
text: controller.tx.error !== '' ? qsTrId(controller.tx.error) : qsTrId('id_next')
enabled: controller.tx && controller.tx.error === ''
onTriggered: controller.bumpFee()
}
Expand All @@ -25,25 +25,31 @@ ControllerDialog {
id: layout
anchors.fill: parent
SectionLabel {
text: qsTrId('id_current_fee')
text: qsTrId('id_previous_fee')
}
Label {
text: formatAmount(transaction.data.fee) + '' +
formatFiat(transaction.data.fee) + ' ' +
'(' + Math.round(transaction.data.fee_rate / 10 + 0.5) / 100 + ' sat/vB)'
text: qsTr('id_fee') + ': ' + formatAmount(transaction.data.fee) + '' +
formatFiat(transaction.data.fee)
}
Label {
text: qsTr('id_fee_rate') + ': ' + Math.round(transaction.data.fee_rate / 10 + 0.5) / 100 + ' sat/vB'
}

SectionLabel {
text: qsTrId('id_new_fee')
}
Label {
text: formatAmount(controller.tx.fee) + '' +
formatFiat(controller.tx.fee) + ' ' +
'(' + Math.round(controller.tx.fee_rate / 10 + 0.5) / 100 + ' sat/vB)'
text: qsTr('id_fee') + ': ' + formatAmount(controller.tx.fee) + '' +
formatFiat(controller.tx.fee)
}
Label {
text: qsTr('id_fee_rate') + ': ' + Math.round(controller.tx.fee_rate / 10 + 0.5) / 100 + ' sat/vB'
}

FeeComboBox {
id: fee_combo
Layout.fillWidth: true
extra: [{ text: qsTrId('id_custom_fee_rate') }]
extra: [{ text: qsTrId('id_custom') }]
onFeeRateChanged: {
if (feeRate) {
controller.feeRate = feeRate
Expand Down

0 comments on commit 99941c8

Please sign in to comment.