Skip to content

Commit f1f9811

Browse files
luke-jrhebasto
authored andcommitted
GUI: Support translating address type dropdown entries
1 parent 47184cf commit f1f9811

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/qt/receivecoinsdialog.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ void ReceiveCoinsDialog::setModel(WalletModel *_model)
9393
ui->addressType->setItemData(index, tooltip, Qt::ToolTipRole);
9494
if (model->wallet().getDefaultAddressType() == type) ui->addressType->setCurrentIndex(index);
9595
};
96-
add_address_type(OutputType::LEGACY, "Base58 (Legacy)", "Not recommended due to higher fees and less protection against typos.");
97-
add_address_type(OutputType::P2SH_SEGWIT, "Base58 (P2SH-SegWit)", "Generates an address compatible with older wallets.");
98-
add_address_type(OutputType::BECH32, "Bech32 (SegWit)", "Generates a native segwit address (BIP-173). Some old wallets don't support it.");
96+
add_address_type(OutputType::LEGACY, tr("Base58 (Legacy)"), tr("Not recommended due to higher fees and less protection against typos."));
97+
add_address_type(OutputType::P2SH_SEGWIT, tr("Base58 (P2SH-SegWit)"), tr("Generates an address compatible with older wallets."));
98+
add_address_type(OutputType::BECH32, tr("Bech32 (SegWit)"), tr("Generates a native segwit address (BIP-173). Some old wallets don't support it."));
9999
if (model->wallet().taprootEnabled()) {
100-
add_address_type(OutputType::BECH32M, "Bech32m (Taproot)", "Bech32m (BIP-350) is an upgrade to Bech32, wallet support is still limited.");
100+
add_address_type(OutputType::BECH32M, tr("Bech32m (Taproot)"), tr("Bech32m (BIP-350) is an upgrade to Bech32, wallet support is still limited."));
101101
}
102102

103103
// Set the button to be enabled or disabled based on whether the wallet can give out new addresses.

0 commit comments

Comments
 (0)