Bitcoin Core  25.99.0
P2P Digital Currency
Classes | Namespaces | Functions | Variables
translation.h File Reference
#include <tinyformat.h>
#include <functional>
#include <string>
Include dependency graph for translation.h:

Go to the source code of this file.


struct  bilingual_str
 Bilingual messages: More...




bilingual_str operator+ (bilingual_str lhs, const bilingual_str &rhs)
bilingual_str Untranslated (std::string original)
 Mark a bilingual_str as untranslated. More...
std::string tinyformat::TranslateArg (const bilingual_str &arg, bool translated)
template<typename T >
T const & tinyformat::TranslateArg (const T &arg, bool translated)
template<typename... Args>
bilingual_str tinyformat::format (const bilingual_str &fmt, const Args &... args)
bilingual_str _ (const char *psz)
 Translation function. More...


const std::function< std::string(const char *)> G_TRANSLATION_FUN
 Translate a message to the native language of the user. More...

Function Documentation

◆ _()

bilingual_str _ ( const char *  psz)

Translation function.

If no translation function is set, simply return the input.

Definition at line 78 of file translation.h.

◆ operator+()

bilingual_str operator+ ( bilingual_str  lhs,
const bilingual_str rhs 

Definition at line 41 of file translation.h.

◆ Untranslated()

bilingual_str Untranslated ( std::string  original)

Mark a bilingual_str as untranslated.

Definition at line 48 of file translation.h.

Variable Documentation


const std::function<std::string(const char*)> G_TRANSLATION_FUN

Translate a message to the native language of the user.

Translate a message to the native language of the user.

Definition at line 53 of file bitcoin-cli.cpp.