bilingual_str

Bilingual messages: - in GUI: user's native language + untranslated (i.e. English) - in log and stderr: untranslated only

Synopsis

Declared in <util/translation.h>

struct bilingual_str;

Member Functions

NameDescription
clear Reset both the original and translated text to empty.
empty Test whether the original text is empty.
operator+= Append another bilingual string to this one.

Data Members

NameDescription
original The untranslated (English) text.
translated The text translated to the user's native language.

Non-Member Functions

NameDescription
InitErrorShow error message with additional detail lines.
InitErrorShow error message
InitWarningShow warning message
UntranslatedMark a bilingual_str as untranslated
noui_ThreadSafeMessageBoxNon-GUI handler, which logs and prints messages.
noui_ThreadSafeQuestionNon-GUI handler, which logs and prints questions.
operator+Concatenate two bilingual strings.
common::AmountErrMsgBuild the error message for an invalid amount value.
common::AmountHighWarnBuild a warning that a configured amount is unusually high.
common::InvalidPortErrMsgBuild the error message for an invalid port value.
common::PSBTErrorStringReturn a bilingual message describing a PSBT error.
common::ResolveErrMsgBuild the error message for a failed address resolution.
common::TransactionErrorStringReturn a bilingual message describing a transaction error.
tinyformat::formatFormat a bilingual string from a bilingual format string and its arguments.
util::ErrorStringExtracts the error message from a result.
util::ErrorStringExtracts the error message from a result.