Bitcoin Core  27.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.

Classes

struct  bilingual_str
 Bilingual messages: More...
 

Namespaces

 tinyformat
 

Functions

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

Variables

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)
inline

Translation function.

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

Definition at line 74 of file translation.h.

◆ operator+()

bilingual_str operator+ ( bilingual_str  lhs,
const bilingual_str rhs 
)
inline

Definition at line 41 of file translation.h.

◆ Untranslated()

bilingual_str Untranslated ( std::string  original)
inline

Mark a bilingual_str as untranslated.

Definition at line 48 of file translation.h.

Variable Documentation

◆ G_TRANSLATION_FUN

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

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.