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

Name

Description

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

Name

Description

original

The untranslated (English) text.

translated

The text translated to the user's native language.

Non-Member Functions

Name

Description

InitError

Show error message with additional detail lines.

InitError

Show error message

InitWarning

Show warning message

Untranslated

Mark a bilingual_str as untranslated

noui_ThreadSafeMessageBox

Non‐GUI handler, which logs and prints messages.

noui_ThreadSafeQuestion

Non‐GUI handler, which logs and prints questions.

operator+

Concatenate two bilingual strings.

common::AmountErrMsg

Build the error message for an invalid amount value.

common::AmountHighWarn

Build a warning that a configured amount is unusually high.

common::InvalidPortErrMsg

Build the error message for an invalid port value.

common::PSBTErrorString

Return a bilingual message describing a PSBT error.

common::ResolveErrMsg

Build the error message for a failed address resolution.

common::TransactionErrorString

Return a bilingual message describing a transaction error.

tinyformat::format

Format a bilingual string from a bilingual format string and its arguments.

util::ErrorString

Extracts the error message from a result.

util::ErrorString

Extracts the error message from a result.

Created with MrDocs