Refactor out translation.h

This is a prerequisite for introducing bilingual error messages.
Note: #includes are arranged by clang-format-diff.py script.
This commit is contained in:
Hennadii Stepanov
2019-06-17 10:56:52 +03:00
parent 0626b8cbdf
commit 0b86e517ad
26 changed files with 81 additions and 39 deletions

View File

@@ -40,18 +40,6 @@ int64_t GetStartupTime();
extern const char * const BITCOIN_CONF_FILENAME;
/** Translate a message to the native language of the user. */
const extern std::function<std::string(const char*)> G_TRANSLATION_FUN;
/**
* Translation function.
* If no translation function is set, simply return the input.
*/
inline std::string _(const char* psz)
{
return G_TRANSLATION_FUN ? (G_TRANSLATION_FUN)(psz) : psz;
}
void SetupEnvironment();
bool SetupNetworking();