diff options
| author | Hennadii Stepanov <[email protected]> | 2020-04-11 18:47:17 +0300 |
|---|---|---|
| committer | Hennadii Stepanov <[email protected]> | 2020-05-05 04:45:59 +0300 |
| commit | 917ca93553917251e0fd59717a347c63cdfd8a14 (patch) | |
| tree | 6dd3c84f09109c1da19d1a23e798a32efdafa9a9 /src/validation.cpp | |
| parent | gui: Add detailed text to BitcoinGUI::message (diff) | |
| download | discoin-917ca93553917251e0fd59717a347c63cdfd8a14.tar.xz discoin-917ca93553917251e0fd59717a347c63cdfd8a14.zip | |
Make ThreadSafe{MessageBox|Question} bilingual
Diffstat (limited to 'src/validation.cpp')
| -rw-r--r-- | src/validation.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index dac1ad40d..a099e2977 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -1651,14 +1651,15 @@ bool UndoReadFromDisk(CBlockUndo& blockundo, const CBlockIndex* pindex) } /** Abort with a message */ +// TODO: AbortNode() should take bilingual_str userMessage parameter. static bool AbortNode(const std::string& strMessage, const std::string& userMessage = "", unsigned int prefix = 0) { SetMiscWarning(strMessage); LogPrintf("*** %s\n", strMessage); if (!userMessage.empty()) { - uiInterface.ThreadSafeMessageBox(userMessage, "", CClientUIInterface::MSG_ERROR | prefix); + uiInterface.ThreadSafeMessageBox(Untranslated(userMessage), "", CClientUIInterface::MSG_ERROR | prefix); } else { - uiInterface.ThreadSafeMessageBox(_("Error: A fatal internal error occurred, see debug.log for details").translated, "", CClientUIInterface::MSG_ERROR | CClientUIInterface::MSG_NOPREFIX); + uiInterface.ThreadSafeMessageBox(_("Error: A fatal internal error occurred, see debug.log for details"), "", CClientUIInterface::MSG_ERROR | CClientUIInterface::MSG_NOPREFIX); } StartShutdown(); return false; |