#include <lltrans.h>
Public Member Functions | |
LLTrans () | |
Static Public Member Functions | |
static bool | parseStrings (const LLString &xml_filename) |
Parses the xml file that holds the strings. Used once on startup. | |
static LLString | getString (const LLString &xml_desc, const LLString::format_map_t &args) |
Returns a translated string. | |
static LLString | getString (const LLString &xml_desc) |
Returns a translated string. | |
Private Types | |
typedef std::map< LLString, LLTransTemplate > | template_map_t |
Static Private Attributes | |
static template_map_t | sStringTemplates |
Definition at line 55 of file lltrans.h.
typedef std::map<LLString, LLTransTemplate > LLTrans::template_map_t [private] |
LLTrans::LLTrans | ( | ) |
bool LLTrans::parseStrings | ( | const LLString & | xml_filename | ) | [static] |
Parses the xml file that holds the strings. Used once on startup.
xml_filename | Filename to parse |
Definition at line 44 of file lltrans.cpp.
References LLUICtrlFactory::getLayeredXMLNode(), LLPointer< Type >::isNull(), llendl, llerrs, llwarns, NULL, and sStringTemplates.
Referenced by LLAppViewer::initWindow().
LLString LLTrans::getString | ( | const LLString & | xml_desc, | |
const LLString::format_map_t & | args | |||
) | [static] |
Returns a translated string.
xml_desc | String's description | |
args | A list of substrings to replace in the string |
Definition at line 79 of file lltrans.cpp.
References LLStringBase< char >::format(), llendl, llerrs, llwarns, NULL, LLAlertDialog::showXml(), and sStringTemplates.
Referenced by LLAnimStateLabels::getStateLabel(), getString(), idle_startup(), and LLHoverView::updateText().
Returns a translated string.
xml_desc | String's description |
Definition at line 80 of file lltrans.h.
References getString().
LLTrans::template_map_t LLTrans::sStringTemplates [static, private] |