您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617181920212223242526272829
  1. // Copyright (c) 2010-2016 The Starwels developers
  2. // Distributed under the MIT software license, see the accompanying
  3. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  4. #include "ui_interface.h"
  5. #include "util.h"
  6. CClientUIInterface uiInterface;
  7. bool InitError(const std::string& str)
  8. {
  9. uiInterface.ThreadSafeMessageBox(str, "", CClientUIInterface::MSG_ERROR);
  10. return false;
  11. }
  12. void InitWarning(const std::string& str)
  13. {
  14. uiInterface.ThreadSafeMessageBox(str, "", CClientUIInterface::MSG_WARNING);
  15. }
  16. std::string AmountHighWarn(const std::string& optname)
  17. {
  18. return strprintf(_("%s is set very high!"), optname);
  19. }
  20. std::string AmountErrMsg(const char* const optname, const std::string& strValue)
  21. {
  22. return strprintf(_("Invalid amount for -%s=<amount>: '%s'"), optname, strValue);
  23. }