Skip to content

Commit 5efc25f

Browse files
committed
[wallet] translate "Keypool ran out" message
1 parent 02fafdd commit 5efc25f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/wallet/scriptpubkeyman.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ bool LegacyScriptPubKeyMan::GetNewDestination(const OutputType type, CTxDestinat
1818
// Generate a new key that is added to wallet
1919
CPubKey new_key;
2020
if (!GetKeyFromPool(new_key, type)) {
21-
error = "Error: Keypool ran out, please call keypoolrefill first";
21+
error = _("Error: Keypool ran out, please call keypoolrefill first").translated;
2222
return false;
2323
}
2424
LearnRelatedScripts(new_key, type);

src/wallet/wallet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2638,7 +2638,7 @@ bool CWallet::CreateTransaction(interfaces::Chain::Lock& locked_chain, const std
26382638
bool ret = reservedest.GetReservedDestination(dest, true);
26392639
if (!ret)
26402640
{
2641-
strFailReason = "Keypool ran out, please call keypoolrefill first";
2641+
strFailReason = _("Keypool ran out, please call keypoolrefill first").translated;
26422642
return false;
26432643
}
26442644

@@ -3161,7 +3161,7 @@ bool CWallet::GetNewChangeDestination(const OutputType type, CTxDestination& des
31613161

31623162
ReserveDestination reservedest(this, type);
31633163
if (!reservedest.GetReservedDestination(dest, true)) {
3164-
error = "Error: Keypool ran out, please call keypoolrefill first";
3164+
error = _("Error: Keypool ran out, please call keypoolrefill first").translated;
31653165
return false;
31663166
}
31673167

0 commit comments

Comments
 (0)