mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-07 13:40:38 +02:00
GUI: Send: Make feerates translatable
This commit is contained in:
parent
bd42f5e1cd
commit
6ae8a24009
@ -828,7 +828,7 @@ void SendCoinsDialog::updateFeeMinimizedLabel()
|
|||||||
if (ui->radioSmartFee->isChecked())
|
if (ui->radioSmartFee->isChecked())
|
||||||
ui->labelFeeMinimized->setText(ui->labelSmartFee->text());
|
ui->labelFeeMinimized->setText(ui->labelSmartFee->text());
|
||||||
else {
|
else {
|
||||||
ui->labelFeeMinimized->setText(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), ui->customFee->value()) + "/kvB");
|
ui->labelFeeMinimized->setText(tr("%1/kvB").arg(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), ui->customFee->value())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -863,7 +863,7 @@ void SendCoinsDialog::updateSmartFeeLabel()
|
|||||||
FeeReason reason;
|
FeeReason reason;
|
||||||
CFeeRate feeRate = CFeeRate(model->wallet().getMinimumFee(1000, *m_coin_control, &returned_target, &reason));
|
CFeeRate feeRate = CFeeRate(model->wallet().getMinimumFee(1000, *m_coin_control, &returned_target, &reason));
|
||||||
|
|
||||||
ui->labelSmartFee->setText(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), feeRate.GetFeePerK()) + "/kvB");
|
ui->labelSmartFee->setText(tr("%1/kvB").arg(BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), feeRate.GetFeePerK())));
|
||||||
|
|
||||||
if (reason == FeeReason::FALLBACK) {
|
if (reason == FeeReason::FALLBACK) {
|
||||||
ui->labelSmartFee2->show(); // (Smart fee not initialized yet. This usually takes a few blocks...)
|
ui->labelSmartFee2->show(); // (Smart fee not initialized yet. This usually takes a few blocks...)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user