diff options
Diffstat (limited to 'src/common/Common.h')
| -rw-r--r-- | src/common/Common.h | 23 | 
1 files changed, 23 insertions, 0 deletions
diff --git a/src/common/Common.h b/src/common/Common.h index 7c0f2b37142..902b8cf6567 100644 --- a/src/common/Common.h +++ b/src/common/Common.h @@ -98,10 +98,33 @@ enum LocaleConstant : uint8  const uint8 OLD_TOTAL_LOCALES = 9; /// @todo convert in simple system  #define DEFAULT_LOCALE LOCALE_enUS +enum class CascLocaleBit : uint8 +{ +    None        = 0, +    enUS        = 1, +    koKR        = 2, +    Reserved    = 3, +    frFR        = 4, +    deDE        = 5, +    zhCN        = 6, +    esES        = 7, +    zhTW        = 8, +    enGB        = 9, +    enCN        = 10, +    enTW        = 11, +    esMX        = 12, +    ruRU        = 13, +    ptBR        = 14, +    itIT        = 15, +    ptPT        = 16 +}; +  TC_COMMON_API extern char const* localeNames[TOTAL_LOCALES];  TC_COMMON_API LocaleConstant GetLocaleByName(std::string const& name); +TC_COMMON_API extern CascLocaleBit WowLocaleToCascLocaleBit[TOTAL_LOCALES]; +  constexpr inline bool IsValidLocale(LocaleConstant locale)  {      return locale < TOTAL_LOCALES && locale != LOCALE_none;  | 
