Open source Star Ruler 2 source code!
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
#include "compat/misc.h"
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
|
||||
namespace resource {
|
||||
|
||||
class Locale {
|
||||
public:
|
||||
umap<std::string, std::string*> localizations;
|
||||
umap<std::string, std::string*> hashLocalizations;
|
||||
|
||||
void clear();
|
||||
void load(const std::string& filename);
|
||||
|
||||
std::string localize(const std::string& text, bool requireHash = false, bool doUnescape = true, bool doFormat = true);
|
||||
~Locale();
|
||||
};
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user