aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Common.cpp
diff options
context:
space:
mode:
authorVincent-Michael <Vincent_Michael@gmx.de>2015-04-10 18:10:52 +0200
committerVincent-Michael <Vincent_Michael@gmx.de>2015-04-10 18:16:00 +0200
commit653954c14d6136295691e18d7e21918d46d0761f (patch)
treee842dec20cb3c73968ee65151c6c9176d12f3df3 /src/server/shared/Common.cpp
parent38def5969a3e3c7aa07f9ab6fdad0103ef265b21 (diff)
Core/Misc:
- Update LocaleConstant enum - Update Quest locale system for WoD - Fix some rnd typo in quest template
Diffstat (limited to 'src/server/shared/Common.cpp')
-rw-r--r--src/server/shared/Common.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/server/shared/Common.cpp b/src/server/shared/Common.cpp
index 56e3c4faaf5..22560012b49 100644
--- a/src/server/shared/Common.cpp
+++ b/src/server/shared/Common.cpp
@@ -18,7 +18,8 @@
#include "Common.h"
-char const* localeNames[TOTAL_LOCALES] = {
+char const* localeNames[TOTAL_LOCALES] =
+{
"enUS",
"koKR",
"frFR",
@@ -27,13 +28,16 @@ char const* localeNames[TOTAL_LOCALES] = {
"zhTW",
"esES",
"esMX",
- "ruRU"
+ "ruRU",
+ "none",
+ "ptBR",
+ "itIT"
};
LocaleConstant GetLocaleByName(const std::string& name)
{
for (uint32 i = 0; i < TOTAL_LOCALES; ++i)
- if (name==localeNames[i])
+ if (name == localeNames[i])
return LocaleConstant(i);
return LOCALE_enUS; // including enGB case