OpenMW
|
#include <translation.hpp>
Public Member Functions | |
void | loadTranslationData (const Files::Collections &dataFileCollections, const std::string &esmFileName) |
std::string | translateCellName (const std::string &cellName) const |
std::string | topicID (const std::string &phrase) const |
std::string | topicStandardForm (const std::string &phrase) const |
void | setEncoder (ToUTF8::Utf8Encoder *encoder) |
bool | hasTranslation () const |
Private Types | |
typedef std::map< std::string, std::string > | ContainerType |
Private Member Functions | |
void | loadData (ContainerType &container, const std::string &fileNameNoExtension, const std::string &extension, const Files::Collections &dataFileCollections) |
void | loadDataFromStream (ContainerType &container, std::istream &stream) |
Private Attributes | |
ToUTF8::Utf8Encoder * | mEncoder |
ContainerType | mCellNamesTranslations |
ContainerType | mTopicIDs |
ContainerType | mPhraseForms |
typedef std::map<std::string, std::string> Translation::Storage::ContainerType [private] |
bool Translation::Storage::hasTranslation | ( | ) | const |
void Translation::Storage::loadData | ( | ContainerType & | container, |
const std::string & | fileNameNoExtension, | ||
const std::string & | extension, | ||
const Files::Collections & | dataFileCollections | ||
) | [private] |
void Translation::Storage::loadDataFromStream | ( | ContainerType & | container, |
std::istream & | stream | ||
) | [private] |
void Translation::Storage::loadTranslationData | ( | const Files::Collections & | dataFileCollections, |
const std::string & | esmFileName | ||
) |
void Translation::Storage::setEncoder | ( | ToUTF8::Utf8Encoder * | encoder | ) |
std::string Translation::Storage::topicID | ( | const std::string & | phrase | ) | const |
std::string Translation::Storage::topicStandardForm | ( | const std::string & | phrase | ) | const |
std::string Translation::Storage::translateCellName | ( | const std::string & | cellName | ) | const |
ContainerType Translation::Storage::mTopicIDs [private] |