Minetest  5.4.0
Translations Class Reference

#include <translation.h>

+ Collaboration diagram for Translations:

Public Member Functions

void loadTranslation (const std::string &data)
 
void clear ()
 
const std::wstring & getTranslation (const std::wstring &textdomain, const std::wstring &s)
 

Private Attributes

std::unordered_map< std::wstring, std::wstring > m_translations
 

Member Function Documentation

◆ clear()

void Translations::clear ( )

References m_translations.

Referenced by Game::startup().

+ Here is the caller graph for this function:

◆ getTranslation()

const std::wstring & Translations::getTranslation ( const std::wstring &  textdomain,
const std::wstring &  s 
)

References m_translations, verbosestream, and wide_to_utf8().

Referenced by translate_string().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadTranslation()

void Translations::loadTranslation ( const std::string &  data)

References errorstream, infostream, m_translations, str_split(), str_starts_with(), trim(), utf8_to_wide(), and wide_to_utf8().

Referenced by Client::loadMedia().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_translations

std::unordered_map<std::wstring, std::wstring> Translations::m_translations
private

The documentation for this class was generated from the following files: