#include <translation.h>
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 |
void Translations::clear | ( | ) |
References m_translations.
Referenced by Game::startup().
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().
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().
|
private |
Referenced by clear(), getTranslation(), and loadTranslation().