revert removal of locale initialization per country. default to English

This commit is contained in:
Tr0n 2024-04-09 18:12:58 +02:00
parent cf66bb3310
commit 854fef68e8
No known key found for this signature in database
3 changed files with 778 additions and 16 deletions

View File

@ -6,6 +6,8 @@ typedef std::map< std::string, std::string > LocaleStringMapType;
LocaleStringMapType localeString;
int g_iUseLocale = 0;
void locale_add(const char **strings)
{
LocaleStringMapType::const_iterator iter = localeString.find( strings[0] );
@ -18,6 +20,11 @@ void locale_add(const char **strings)
const char * locale_find(const char *string)
{
if (0 == g_iUseLocale)
{
return (string);
}
LocaleStringMapType::const_iterator iter = localeString.find( string );
if( iter == localeString.end() )

View File

@ -6,6 +6,8 @@ extern "C"
void locale_init(const char *filename);
const char *locale_find(const char *string);
extern int g_iUseLocale;
#define LC_TEXT(str) locale_find(str)
};

View File

@ -390,16 +390,22 @@ void LocaleService_LoadEmpireTextConvertTables()
}
}
static void __LocaleService_Init_DEFAULT()
static void __LocaleService_Init_JAPAN()
{
g_stLocaleFilename = "";
g_stLocale = "sjis";
g_stServiceBasePath = "locale/japan";
g_stQuestDir = "locale/japan/quest";
g_stServiceMapPath = "locale/japan/map";
g_stServiceBasePath = "locale/" + g_stServiceName;
g_stServiceMapPath = g_stServiceBasePath + "/map";
g_stQuestDir = g_stServiceBasePath + "/quest";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/japan/quest/object");
g_stLocaleFilename = "locale/japan/sjis_string.txt";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert(g_stQuestDir + "/object");
g_iUseLocale = true;
check_name = check_name_sjis;
is_twobyte = is_twobyte_sjis;
exp_table = exp_table_euckr;
}
static void __LocaleService_Init_English()
@ -416,6 +422,554 @@ static void __LocaleService_Init_English()
check_name = check_name_alphabet;
}
static void __LocaleService_Init_HongKong()
{
g_stLocale = "big5";
g_stServiceBasePath = "locale/hongkong";
g_stQuestDir = "locale/hongkong/quest";
g_stServiceMapPath = "locale/hongkong/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/hongkong/quest/object");
g_stLocaleFilename = "locale/hongkong/big5_string.txt";
g_iUseLocale = true;
check_name = check_name_big5;
is_twobyte = is_twobyte_big5;
}
static void __LocaleService_Init_NewCIBN()
{
g_stLocale = "gb2312";
g_stServiceBasePath = "locale/newcibn";
g_stQuestDir = "locale/newcibn/quest";
g_stServiceMapPath = "locale/newcibn/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/newcibn/quest/object");
g_stLocaleFilename = "locale/newcibn/locale_string.txt";
g_iUseLocale = true;
check_name = check_name_gb2312;
is_twobyte = is_twobyte_gb2312;
//exp_table = exp_table_newcibn;
}
static void __LocaleService_Init_Germany()
{
g_stLocale="latin1";
g_stServiceBasePath = "locale/germany";
g_stQuestDir = "locale/germany/quest";
g_stServiceMapPath = "locale/germany/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/germany/quest/object");
g_stLocaleFilename = "locale/germany/locale_string.txt";
g_iUseLocale = true;
check_name = check_name_alphabet;
PK_PROTECT_LEVEL = 15;
}
static void __LocaleService_Init_Korea()
{
g_stLocale="euckr";
g_stServiceBasePath = "locale/korea";
g_stQuestDir = "locale/korea/quest";
g_stServiceMapPath = "locale/korea/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/korea/quest/object");
g_iUseLocale = true;
exp_table = exp_table_euckr;
}
static void __LocaleService_Init_France()
{
g_stLocale="latin1";
g_stServiceBasePath = "locale/france";
g_stQuestDir = "locale/france/quest";
g_stServiceMapPath = "locale/france/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/france/quest/object");
g_stLocaleFilename = "locale/france/locale_string.txt";
g_iUseLocale = true;
check_name = check_name_alphabet;
PK_PROTECT_LEVEL = 15;
}
static void __LocaleService_Init_Italy()
{
g_stLocale="latin1";
g_stServiceBasePath = "locale/italy";
g_stQuestDir = "locale/italy/quest";
g_stServiceMapPath = "locale/italy/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/italy/quest/object");
g_stLocaleFilename = "locale/italy/locale_string.txt";
g_iUseLocale = true;
check_name = check_name_alphabet;
PK_PROTECT_LEVEL = 15;
}
static void __LocaleService_Init_spain()
{
g_stLocale="latin1";
g_stServiceBasePath = "locale/spain";
g_stQuestDir = "locale/spain/quest";
g_stServiceMapPath = "locale/spain/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/spain/quest/object");
g_stLocaleFilename = "locale/spain/locale_string.txt";
g_iUseLocale = true;
check_name = check_name_alphabet;
PK_PROTECT_LEVEL = 15;
}
static void __LocaleService_Init_greek()
{
g_stLocale="greek";
g_stServiceBasePath = "locale/greek";
g_stQuestDir = "locale/greek/quest";
g_stServiceMapPath = "locale/greek/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/greek/quest/object");
g_stLocaleFilename = "locale/greek/locale_string.txt";
g_iUseLocale = true;
check_name = check_name_alphabet;
PK_PROTECT_LEVEL = 15;
}
static void __LocaleService_Init_UK()
{
g_stLocale="latin1";
g_stServiceBasePath = "locale/uk";
g_stQuestDir = "locale/uk/quest";
g_stServiceMapPath = "locale/uk/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/uk/quest/object");
g_stLocaleFilename = "locale/uk/locale_string.txt";
g_iUseLocale = true;
check_name = check_name_alphabet;
PK_PROTECT_LEVEL = 15;
}
static void __LocaleService_Init_Turkey()
{
g_stLocale="latin5";
g_stServiceBasePath = "locale/turkey";
g_stQuestDir = "locale/turkey/quest";
g_stServiceMapPath = "locale/turkey/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/turkey/quest/object");
g_stLocaleFilename = "locale/turkey/locale_string.txt";
g_iUseLocale = true;
check_name = check_name_alphabet;
PK_PROTECT_LEVEL = 15;
}
static void __LocaleService_Init_Poland()
{
g_stLocale="latin2";
g_stServiceBasePath = "locale/poland";
g_stQuestDir = "locale/poland/quest";
g_stServiceMapPath = "locale/poland/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/poland/quest/object");
g_stLocaleFilename = "locale/poland/locale_string.txt";
g_iUseLocale = true;
check_name = check_name_alphabet;
PK_PROTECT_LEVEL = 15;
}
static void __LocaleService_Init_Portugal()
{
g_stLocale="latin1";
g_stServiceBasePath = "locale/portugal";
g_stQuestDir = "locale/portugal/quest";
g_stServiceMapPath = "locale/portugal/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/portugal/quest/object");
g_stLocaleFilename = "locale/portugal/locale_string.txt";
g_iUseLocale = true;
check_name = check_name_alphabet;
PK_PROTECT_LEVEL = 15;
}
static void __LocaleService_Init_Canada()
{
g_stLocale = "latin1";
g_stServiceBasePath = "locale/canada";
g_stQuestDir = "locale/canada/quest";
g_stServiceMapPath = "locale/canada/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/canada/quest/object");
g_stLocaleFilename = "locale/canada/locale_string.txt";
check_name = check_name_alphabet;
g_iUseLocale = true;
}
static void __LocaleService_Init_Brazil()
{
g_stLocale = "latin1";
g_stServiceBasePath = "locale/brazil";
g_stQuestDir = "locale/brazil/quest";
g_stServiceMapPath = "locale/brazil/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/brazil/quest/object");
g_stLocaleFilename = "locale/brazil/locale_string.txt";
check_name = check_name_alphabet;
g_iUseLocale = true;
}
static void __LocaleService_Init_YMIR()
{
g_stLocaleFilename = "";
g_stServiceBasePath = "locale/" + g_stServiceName;
g_stServiceMapPath = g_stServiceBasePath + "/map";
g_stQuestDir = g_stServiceBasePath + "/quest";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert(g_stQuestDir + "/object");
PK_PROTECT_LEVEL = 30;
exp_table = exp_table_euckr;
}
static void __LocaleService_Init_Russia()
{
g_stLocale="cp1251";
g_stServiceBasePath = "locale/russia";
g_stQuestDir = "locale/russia/quest";
g_stServiceMapPath = "locale/russia/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/russia/quest/object");
g_stLocaleFilename = "locale/russia/locale_string.txt";
g_iUseLocale = true;
check_name = check_name_alphabet;
PK_PROTECT_LEVEL = 15;
}
static void __LocaleService_Init_Denmark()
{
g_stLocale="latin1";
g_stServiceBasePath = "locale/denmark";
g_stQuestDir = "locale/denmark/quest";
g_stServiceMapPath = "locale/denmark/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/denmark/quest/object");
g_stLocaleFilename = "locale/denmark/locale_string.txt";
g_iUseLocale = true;
check_name = check_name_alphabet;
PK_PROTECT_LEVEL = 15;
}
static void __LocaleService_Init_Bulgaria()
{
g_stLocale="cp1251";
g_stServiceBasePath = "locale/bulgaria";
g_stQuestDir = "locale/bulgaria/quest";
g_stServiceMapPath = "locale/bulgaria/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/bulgaria/quest/object");
g_stLocaleFilename = "locale/bulgaria/locale_string.txt";
g_iUseLocale = true;
check_name = check_name_alphabet;
PK_PROTECT_LEVEL = 15;
}
static void __LocaleService_Init_Croatia()
{
g_stLocale="cp1251";
g_stServiceBasePath = "locale/croatia";
g_stQuestDir = "locale/croatia/quest";
g_stServiceMapPath = "locale/croatia/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/croatia/quest/object");
g_stLocaleFilename = "locale/croatia/locale_string.txt";
g_iUseLocale = true;
check_name = check_name_alphabet;
PK_PROTECT_LEVEL = 15;
}
static void __LocaleService_Init_Mexico()
{
g_stLocale="latin1";
g_stServiceBasePath = "locale/mexico";
g_stQuestDir = "locale/mexico/quest";
g_stServiceMapPath = "locale/mexico/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/mexico/quest/object");
g_stLocaleFilename = "locale/mexico/locale_string.txt";
g_iUseLocale = true;
check_name = check_name_alphabet;
PK_PROTECT_LEVEL = 15;
}
static void __LocaleService_Init_Arabia()
{
g_stLocale="cp1256";
g_stServiceBasePath = "locale/arabia";
g_stQuestDir = "locale/arabia/quest";
g_stServiceMapPath = "locale/arabia/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/arabia/quest/object");
g_stLocaleFilename = "locale/arabia/locale_string.txt";
g_iUseLocale = true;
check_name = check_name_alphabet;
PK_PROTECT_LEVEL = 15;
}
static void __LocaleService_Init_Czech()
{
g_stLocale="latin2";
g_stServiceBasePath = "locale/czech";
g_stQuestDir = "locale/czech/quest";
g_stServiceMapPath = "locale/czech/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/czech/quest/object");
g_stLocaleFilename = "locale/czech/locale_string.txt";
g_iUseLocale = true;
check_name = check_name_alphabet;
PK_PROTECT_LEVEL = 15;
}
static void __LocaleService_Init_Hungary()
{
g_stLocale="latin2";
g_stServiceBasePath = "locale/hungary";
g_stQuestDir = "locale/hungary/quest";
g_stServiceMapPath = "locale/hungary/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/hungary/quest/object");
g_stLocaleFilename = "locale/hungary/locale_string.txt";
g_iUseLocale = true;
check_name = check_name_alphabet;
PK_PROTECT_LEVEL = 15;
}
static void __LocaleService_Init_Romania()
{
g_stLocale="latin2";
g_stServiceBasePath = "locale/romania";
g_stQuestDir = "locale/romania/quest";
g_stServiceMapPath = "locale/romania/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/romania/quest/object");
g_stLocaleFilename = "locale/romania/locale_string.txt";
g_iUseLocale = true;
check_name = check_name_alphabet;
PK_PROTECT_LEVEL = 15;
}
static void __LocaleService_Init_Netherlands()
{
g_stLocale="latin1";
g_stServiceBasePath = "locale/netherlands";
g_stQuestDir = "locale/netherlands/quest";
g_stServiceMapPath = "locale/netherlands/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/netherlands/quest/object");
g_stLocaleFilename = "locale/netherlands/locale_string.txt";
g_iUseLocale = true;
check_name = check_name_alphabet;
PK_PROTECT_LEVEL = 15;
}
static void __LocaleService_Init_Singapore()
{
g_stLocale = "latin1";
g_stServiceBasePath = "locale/singapore";
g_stQuestDir = "locale/singapore/quest";
g_stServiceMapPath = "locale/singapore/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/singapore/quest/object");
g_stLocaleFilename = "locale/singapore/locale_string.txt";
check_name = check_name_alphabet;
g_iUseLocale = true;
//exp_table = exp_table_newcibn; 2013 09 11 CYH europe 과 동일하게 간다.
}
static void __LocaleService_Init_Vietnam()
{
g_stLocale = "latin1";
g_stServiceBasePath = "locale/vietnam";
g_stQuestDir = "locale/vietnam/quest";
g_stServiceMapPath = "locale/vietnam/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/vietnam/quest/object");
g_stLocaleFilename = "locale/vietnam/locale_string.txt";
check_name = check_name_alphabet;
g_iUseLocale = true;
exp_table = exp_table_newcibn;
}
static void __LocaleService_Init_Thailand()
{
g_stLocale = "latin1";
g_stServiceBasePath = "locale/thailand";
g_stQuestDir = "locale/thailand/quest";
g_stServiceMapPath = "locale/thailand/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/thailand/quest/object");
g_stLocaleFilename = "locale/thailand/locale_string.txt";
check_name = check_name_alphabet;
g_iUseLocale = true;
}
static void __LocaleService_Init_USA()
{
g_stLocale = "latin1";
g_stServiceBasePath = "locale/usa";
g_stQuestDir = "locale/usa/quest";
g_stServiceMapPath = "locale/usa/map";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert("locale/usa/quest/object");
g_stLocaleFilename = "locale/usa/locale_string.txt";
g_iUseLocale = true;
check_name = check_name_alphabet;
}
// World Edition version for korea
static void __LocaleService_Init_WE_Korea()
{
g_stLocale = "euckr";
// g_stLocaleFilename = "locale/we_korea/locale_string.txt";
g_stServiceBasePath = "locale/" + g_stServiceName;
g_stServiceMapPath = g_stServiceBasePath + "/map";
g_stQuestDir = g_stServiceBasePath + "/quest";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert(g_stQuestDir + "/object");
g_iUseLocale = true;
PK_PROTECT_LEVEL = 15;
}
static void __LocaleService_Init_Taiwan()
{
g_stLocale = "big5";
g_stServiceBasePath = "locale/" + g_stServiceName;
g_stServiceMapPath = g_stServiceBasePath + "/map";
g_stQuestDir = g_stServiceBasePath + "/quest";
g_setQuestObjectDir.clear();
g_setQuestObjectDir.insert(g_stQuestDir + "/object");
g_stLocaleFilename = "locale/taiwan/locale_string.txt";
check_name = check_name_big5;
is_twobyte = is_twobyte_big5;
g_iUseLocale = true;
PK_PROTECT_LEVEL = 15;
}
static void __LocaleService_Init_DEFAULT()
{
__LocaleService_Init_English();
}
static void __CheckPlayerSlot(const std::string& service_name)
{
if (PLAYER_PER_ACCOUNT != 4)
@ -432,8 +986,145 @@ bool LocaleService_Init(const std::string& c_rstServiceName)
SPDLOG_ERROR("ALREADY exist service");
return false;
}
g_stServiceName = c_rstServiceName;
if ( "japan" == g_stServiceName)
{
__LocaleService_Init_JAPAN();
}
else if ( "english" == g_stServiceName)
{
__LocaleService_Init_English();
}
else if ( "hongkong" == g_stServiceName)
{
__LocaleService_Init_HongKong();
}
else if ( "newcibn" == g_stServiceName)
{
__LocaleService_Init_NewCIBN();
}
else if ( "germany" == g_stServiceName)
{
__LocaleService_Init_Germany();
}
else if ( "korea" == g_stServiceName)
{
__LocaleService_Init_Korea();
}
else if ( "france" == g_stServiceName)
{
__LocaleService_Init_France();
}
else if ( "italy" == g_stServiceName)
{
__LocaleService_Init_Italy();
}
else if ( "spain" == g_stServiceName)
{
__LocaleService_Init_spain();
}
else if ( "greek" == g_stServiceName)
{
__LocaleService_Init_greek();
}
else if ( "uk" == g_stServiceName)
{
__LocaleService_Init_UK();
}
else if ( "turkey" == g_stServiceName)
{
__LocaleService_Init_Turkey();
}
else if ( "poland" == g_stServiceName)
{
__LocaleService_Init_Poland();
}
else if ( "portugal" == g_stServiceName)
{
__LocaleService_Init_Portugal();
}
else if ( "canada" == g_stServiceName)
{
__LocaleService_Init_Canada();
}
else if ( "brazil" == g_stServiceName)
{
__LocaleService_Init_Brazil();
}
else if ( "ymir" == g_stServiceName)
{
__LocaleService_Init_YMIR();
}
else if ( "russia" == g_stServiceName)
{
__LocaleService_Init_Russia();
}
else if ( "denmark" == g_stServiceName)
{
__LocaleService_Init_Denmark();
}
else if ( "bulgaria" == g_stServiceName)
{
__LocaleService_Init_Bulgaria();
}
else if ( "croatia" == g_stServiceName)
{
__LocaleService_Init_Croatia();
}
else if ( "mexico" == g_stServiceName)
{
__LocaleService_Init_Mexico();
}
else if ( "arabia" == g_stServiceName)
{
__LocaleService_Init_Arabia();
}
else if ( "czech" == g_stServiceName)
{
__LocaleService_Init_Czech();
}
else if ( "romania" == g_stServiceName)
{
__LocaleService_Init_Romania();
}
else if ( "hungary" == g_stServiceName)
{
__LocaleService_Init_Hungary();
}
else if ( "netherlands" == g_stServiceName)
{
__LocaleService_Init_Netherlands();
}
else if ( "singapore" == g_stServiceName)
{
__LocaleService_Init_Singapore();
}
else if ( "vietnam" == g_stServiceName)
{
__LocaleService_Init_Vietnam();
}
else if ( "thailand" == g_stServiceName)
{
__LocaleService_Init_Thailand();
}
else if ("usa" == g_stServiceName)
{
__LocaleService_Init_USA();
}
else if ("we_korea" == g_stServiceName)
{
__LocaleService_Init_WE_Korea(); // ver.World Edition for korea
}
else if ("taiwan" == g_stServiceName)
{
__LocaleService_Init_Taiwan();
}
else
{
__LocaleService_Init_DEFAULT();
}
SPDLOG_INFO("Setting Locale \"{}\" (Path: {})", g_stServiceName.c_str(), g_stServiceBasePath.c_str());
@ -487,8 +1178,76 @@ const std::string& LocaleService_GetQuestPath()
bool LC_InitLocalization( const std::string& szLocal )
{
g_stLocal = szLocal;
g_eLocalType = LC_ENGLISH;
if ( !g_stLocal.compare("ymir") )
g_eLocalType = LC_YMIR;
else if ( !g_stLocal.compare("japan") )
g_eLocalType = LC_JAPAN;
else if ( !g_stLocal.compare("english") )
g_eLocalType = LC_ENGLISH;
else if ( !g_stLocal.compare("hongkong") )
g_eLocalType = LC_HONGKONG;
else if (!g_stLocal.compare("newcibn") )
g_eLocalType = LC_NEWCIBN;
else if ( !g_stLocal.compare("germany") )
g_eLocalType = LC_GERMANY;
else if ( !g_stLocal.compare("korea") )
g_eLocalType = LC_KOREA;
else if ( !g_stLocal.compare("france") )
g_eLocalType = LC_FRANCE;
else if ( !g_stLocal.compare("italy") )
g_eLocalType = LC_ITALY;
else if ( !g_stLocal.compare("spain") )
g_eLocalType = LC_SPAIN;
else if ( !g_stLocal.compare("greek") )
g_eLocalType = LC_GREEK;
else if ( !g_stLocal.compare("uk") )
g_eLocalType = LC_UK;
else if ( !g_stLocal.compare("turkey") )
g_eLocalType = LC_TURKEY;
else if ( !g_stLocal.compare("poland") )
g_eLocalType = LC_POLAND;
else if ( !g_stLocal.compare("portugal") )
g_eLocalType = LC_PORTUGAL;
else if ( !g_stLocal.compare("canada") )
g_eLocalType = LC_CANADA;
else if ( !g_stLocal.compare("brazil") )
g_eLocalType = LC_BRAZIL;
else if ( !g_stLocal.compare("russia") )
g_eLocalType = LC_RUSSIA;
else if ( !g_stLocal.compare("denmark") )
g_eLocalType = LC_DENMARK;
else if ( !g_stLocal.compare("bulgaria") )
g_eLocalType = LC_BULGARIA;
else if ( !g_stLocal.compare("croatia") )
g_eLocalType = LC_CROATIA;
else if ( !g_stLocal.compare("mexico") )
g_eLocalType = LC_MEXICO;
else if ( !g_stLocal.compare("arabia") )
g_eLocalType = LC_ARABIA;
else if ( !g_stLocal.compare("czech") )
g_eLocalType = LC_CZECH;
else if ( !g_stLocal.compare("romania") )
g_eLocalType = LC_ROMANIA;
else if ( !g_stLocal.compare("hungary") )
g_eLocalType = LC_HUNGARY;
else if ( !g_stLocal.compare("netherlands") )
g_eLocalType = LC_NETHERLANDS;
else if ( !g_stLocal.compare("singapore") )
g_eLocalType = LC_SINGAPORE;
else if ( !g_stLocal.compare("vietnam") )
g_eLocalType = LC_VIETNAM;
else if ( !g_stLocal.compare("thailand") )
g_eLocalType = LC_THAILAND;
else if ( !g_stLocal.compare("usa") )
g_eLocalType = LC_USA;
else if ( !g_stLocal.compare("we_korea") ) // ver.WorldEdition for korea
g_eLocalType = LC_WE_KOREA;
else if ( !g_stLocal.compare("taiwan") )
g_eLocalType = LC_TAIWAN;
else
return false;
return true;
}
@ -496,9 +1255,3 @@ eLocalization LC_GetLocalType()
{
return g_eLocalType;
}
bool LC_IsLocale( const eLocalization t )
{
return LC_GetLocalType() == t ? true : false;
}