diff options
| author | Wladimir J. van der Laan <[email protected]> | 2019-09-03 16:23:38 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2019-09-03 16:24:15 +0200 |
| commit | 6e431296daceee604f48e9e3e87fa84cfd44bef2 (patch) | |
| tree | 4b20381866bfbe752f2a348e2739669dfc36ec8a /src/util/error.cpp | |
| parent | Merge #16788: gui: Update transifex slug for 0.19 (diff) | |
| parent | wallet: Translate all initErrors in CreateWalletFromFile (diff) | |
| download | discoin-6e431296daceee604f48e9e3e87fa84cfd44bef2.tar.xz discoin-6e431296daceee604f48e9e3e87fa84cfd44bef2.zip | |
Merge #16745: wallet: Translate all initErrors in CreateWalletFromFile
fa61365a1368f9970fa22fb96f89f4ecc08e69f0 wallet: Translate all initErrors in CreateWalletFromFile (MarcoFalke)
fa70d199d0c2182d76b2a1cfa21f9ada4bb12913 util: Make util/error bilingual_str (refactor) (MarcoFalke)
Pull request description:
The translations are going to close in three days (#15940), so I am submitting this as a standalone pull request.
Those changes are part of a bugfix #16661, which includes a test. The first change (the refactor) is required, the second commit is not. I am happy to drop it, if needed.
ACKs for top commit:
laanwj:
utACK fa61365a1368f9970fa22fb96f89f4ecc08e69f0
hebasto:
ACK fa61365a1368f9970fa22fb96f89f4ecc08e69f0, I have tested the code on Linux Mint 19.2.
Tree-SHA512: a7616cc38b9ffd301c6b915ea808a65815c3d97e9f57ec091772eb260e5cf0d75a13a6e4dfa3913e236833677c7929b9a748cb7d7a0e406d51749944b614e11b
Diffstat (limited to 'src/util/error.cpp')
| -rw-r--r-- | src/util/error.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/error.cpp b/src/util/error.cpp index 287476c0d..aa44ed3e3 100644 --- a/src/util/error.cpp +++ b/src/util/error.cpp @@ -41,12 +41,12 @@ std::string ResolveErrMsg(const std::string& optname, const std::string& strBind return strprintf(_("Cannot resolve -%s address: '%s'").translated, optname, strBind); } -std::string AmountHighWarn(const std::string& optname) +bilingual_str AmountHighWarn(const std::string& optname) { - return strprintf(_("%s is set very high!").translated, optname); + return strprintf(_("%s is set very high!"), optname); } -std::string AmountErrMsg(const std::string& optname, const std::string& strValue) +bilingual_str AmountErrMsg(const std::string& optname, const std::string& strValue) { - return strprintf(_("Invalid amount for -%s=<amount>: '%s'").translated, optname, strValue); + return strprintf(_("Invalid amount for -%s=<amount>: '%s'"), optname, strValue); } |