From 5efc25f9638866941028454cfa9bae27f1519cb4 Mon Sep 17 00:00:00 2001 From: Sjors Provoost Date: Sat, 12 Oct 2019 12:27:56 +0200 Subject: [PATCH] [wallet] translate "Keypool ran out" message --- src/wallet/scriptpubkeyman.cpp | 2 +- src/wallet/wallet.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wallet/scriptpubkeyman.cpp b/src/wallet/scriptpubkeyman.cpp index 4c9d88973e..1a9f0fe0c8 100644 --- a/src/wallet/scriptpubkeyman.cpp +++ b/src/wallet/scriptpubkeyman.cpp @@ -18,7 +18,7 @@ bool LegacyScriptPubKeyMan::GetNewDestination(const OutputType type, CTxDestinat // Generate a new key that is added to wallet CPubKey new_key; if (!GetKeyFromPool(new_key, type)) { - error = "Error: Keypool ran out, please call keypoolrefill first"; + error = _("Error: Keypool ran out, please call keypoolrefill first").translated; return false; } LearnRelatedScripts(new_key, type); diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 4a38571dfc..b53c251131 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2638,7 +2638,7 @@ bool CWallet::CreateTransaction(interfaces::Chain::Lock& locked_chain, const std bool ret = reservedest.GetReservedDestination(dest, true); if (!ret) { - strFailReason = "Keypool ran out, please call keypoolrefill first"; + strFailReason = _("Keypool ran out, please call keypoolrefill first").translated; return false; } @@ -3161,7 +3161,7 @@ bool CWallet::GetNewChangeDestination(const OutputType type, CTxDestination& des ReserveDestination reservedest(this, type); if (!reservedest.GetReservedDestination(dest, true)) { - error = "Error: Keypool ran out, please call keypoolrefill first"; + error = _("Error: Keypool ran out, please call keypoolrefill first").translated; return false; }