mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
First effort to port HUru MKV/WEBM Movie Player to Minkata
Type restructuring for C++98 and build configuration updates. This version compiles successfully, but without webm libraries yet linked in.
This commit is contained in:
@ -46,7 +46,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
|
||||
plLocalization::Language plLocalization::fLanguage = plLocalization::kEnglish;
|
||||
|
||||
char* plLocalization::fLangTags[] =
|
||||
const char* plLocalization::fLangTags[] =
|
||||
{
|
||||
"_eng", // kEnglish
|
||||
"_fre", // kFrench
|
||||
@ -57,7 +57,23 @@ char* plLocalization::fLangTags[] =
|
||||
};
|
||||
const int kLangTagLen = 4;
|
||||
|
||||
char* plLocalization::fLangNames[] =
|
||||
std::string fLangCodes_en[] = {"eng", "en"};
|
||||
std::string fLangCodes_fr[] = {"fre", "fra", "fr"};
|
||||
std::string fLangCodes_de[] = {"ger", "deu", "de"};
|
||||
std::string fLangCodes_es[] = {"spa", "es"};
|
||||
std::string fLangCodes_it[] = {"ita", "it"};
|
||||
std::string fLangCodes_ja[] = {"jpn", "ja"};
|
||||
const std::set<std::string> plLocalization::fLangCodes[] =
|
||||
{
|
||||
std::set<std::string>(std::begin(fLangCodes_en), std::end(fLangCodes_en)),
|
||||
std::set<std::string>(std::begin(fLangCodes_fr), std::end(fLangCodes_fr)),
|
||||
std::set<std::string>(std::begin(fLangCodes_de), std::end(fLangCodes_de)),
|
||||
std::set<std::string>(std::begin(fLangCodes_es), std::end(fLangCodes_it)),
|
||||
std::set<std::string>(std::begin(fLangCodes_it), std::end(fLangCodes_it)),
|
||||
std::set<std::string>(std::begin(fLangCodes_ja), std::end(fLangCodes_ja))
|
||||
};
|
||||
|
||||
const char* plLocalization::fLangNames[] =
|
||||
{
|
||||
"English", // kEnglish
|
||||
"French", // kFrench
|
||||
|
@ -43,6 +43,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#define plLocalization_h_inc
|
||||
|
||||
#include "hsStlUtils.h"
|
||||
#include <set>
|
||||
|
||||
class plLocalization
|
||||
{
|
||||
@ -75,8 +76,9 @@ public:
|
||||
|
||||
protected:
|
||||
static Language fLanguage;
|
||||
static char* fLangTags[kNumLanguages];
|
||||
static char* fLangNames[kNumLanguages];
|
||||
static const char* fLangTags[kNumLanguages];
|
||||
static const std::set<std::string> fLangCodes[kNumLanguages];
|
||||
static const char* fLangNames[kNumLanguages];
|
||||
static bool fUsesUnicode[kNumLanguages];
|
||||
static encodingTypes fUnicodeEncoding[kNumLanguages];
|
||||
|
||||
@ -89,7 +91,8 @@ public:
|
||||
static void SetLanguage(Language lang) { fLanguage = lang; }
|
||||
static Language GetLanguage() { return fLanguage; }
|
||||
|
||||
static char* GetLanguageName(Language lang) { return fLangNames[lang]; }
|
||||
static const char* GetLanguageName(Language lang) { return fLangNames[lang]; }
|
||||
static std::set<std::string> GetLanguageCodes(Language lang) { return fLangCodes[lang]; }
|
||||
|
||||
static hsBool UsingUnicode() { return fUsesUnicode[fLanguage]; }
|
||||
static encodingTypes UnicodeEncoding() { return fUnicodeEncoding[fLanguage]; }
|
||||
@ -130,4 +133,4 @@ public:
|
||||
static std::vector<std::wstring> StringToLocal(const std::wstring & localizedText);
|
||||
};
|
||||
|
||||
#endif // plLocalization_h_inc
|
||||
#endif // plLocalization_h_inc
|
||||
|
Reference in New Issue
Block a user