1 // Copyright (c) 2010-2016 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 #include "ui_interface.h"
8 CClientUIInterface uiInterface
;
10 bool InitError(const std::string
& str
)
12 uiInterface
.ThreadSafeMessageBox(str
, "", CClientUIInterface::MSG_ERROR
);
16 void InitWarning(const std::string
& str
)
18 uiInterface
.ThreadSafeMessageBox(str
, "", CClientUIInterface::MSG_WARNING
);
21 std::string
AmountHighWarn(const std::string
& optname
)
23 return strprintf(_("%s is set very high!"), optname
);
26 std::string
AmountErrMsg(const char* const optname
, const std::string
& strValue
)
28 return strprintf(_("Invalid amount for -%s=<amount>: '%s'"), optname
, strValue
);