ManaPlus
|
Functions | |
void | load () |
void | loadXmlFile (const std::string &fileName, const SkipError skipError) |
void | unload () |
const std::string & | getIcon (const int id) |
const std::string & | getPo (const int id) |
const std::string & LanguageDb::getIcon | ( | const int | id | ) |
Definition at line 111 of file languagedb.cpp.
References anonymous_namespace{languagedb.cpp}::mDefaultIcon, and anonymous_namespace{languagedb.cpp}::mIcons.
Referenced by SpellManager::save(), and Being::setLanguageId().
const std::string & LanguageDb::getPo | ( | const int | id | ) |
Definition at line 119 of file languagedb.cpp.
References anonymous_namespace{languagedb.cpp}::mDefaultPo, and anonymous_namespace{languagedb.cpp}::mPo.
Referenced by getServerLang().
void LanguageDb::load | ( | ) |
Definition at line 40 of file languagedb.cpp.
References Configuration::getStringValue(), loadXmlDir, loadXmlFile(), Logger::log1(), logger, paths, SkipError_false, SkipError_true, and Net::unload().
Referenced by DbManager::loadDb().
void LanguageDb::loadXmlFile | ( | const std::string & | fileName, |
const SkipError | skipError | ||
) |
Definition at line 49 of file languagedb.cpp.
References fileName, for_each_xml_child_node, XML::getProperty(), loadXmlFile(), anonymous_namespace{languagedb.cpp}::mIcons, anonymous_namespace{languagedb.cpp}::mPo, reportAlways, XML::Document::rootNode(), and UseVirtFs_true.
void LanguageDb::unload | ( | ) |
Definition at line 104 of file languagedb.cpp.
References Logger::log1(), logger, anonymous_namespace{languagedb.cpp}::mIcons, and anonymous_namespace{languagedb.cpp}::mPo.
Referenced by DbManager::unloadDb().