mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
moved translation storage from GUI manager to engine
This commit is contained in:
parent
2d468fec02
commit
206c613b52
6 changed files with 17 additions and 10 deletions
|
@ -106,4 +106,9 @@ namespace TranslationData
|
|||
|
||||
return result;
|
||||
}
|
||||
|
||||
void Storage::setEncoding (const ToUTF8::FromType& encoding)
|
||||
{
|
||||
mEncoding = encoding;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,6 @@ namespace TranslationData
|
|||
class Storage
|
||||
{
|
||||
public:
|
||||
Storage(const ToUTF8::FromType& encoding) : mEncoding(encoding) {}
|
||||
|
||||
void loadTranslationData(const Files::Collections& dataFileCollections,
|
||||
const std::string& esmFileName);
|
||||
|
@ -17,6 +16,8 @@ namespace TranslationData
|
|||
std::string translateCellName(const std::string& cellName) const;
|
||||
std::string topicID(const std::string& phrase) const;
|
||||
|
||||
void setEncoding (const ToUTF8::FromType& encoding);
|
||||
|
||||
private:
|
||||
typedef std::map<std::string, std::string> ContainerType;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue