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

Go to the source code of this file.

Classes

struct  bilingual_str
 Bilingual messages: More...
 

Namespaces

namespace  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 68 of file translation.h.

◆ operator+()

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

Definition at line 30 of file translation.h.

◆ Untranslated()

bilingual_str Untranslated ( std::string  original)
inline

Mark a bilingual_str as untranslated.

Definition at line 36 of file translation.h.

Here is the caller graph for this function:

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 47 of file bitcoin-cli.cpp.