Bitcoin Core  0.19.99
P2P Digital Currency
Classes | Namespaces | Functions | Variables
translation.h File Reference
#include <tinyformat.h>
#include <functional>
Include dependency graph for translation.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  bilingual_str
 Bilingual messages: More...
 

Namespaces

 tinyformat
 

Functions

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

Translate a message to the native language of the user.

Translate a message to the native language of the user.

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