Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.3 KiB

  1. //====== Copyright � 1996-2004, Valve Corporation, All rights reserved. =======
  2. //
  3. // Purpose: represent a canonical list of the languages we support,
  4. //
  5. //=============================================================================
  6. #ifndef LANG_H
  7. #define LANG_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. // if you change this enum also change language.cpp:s_LanguageNames
  12. enum ELanguage
  13. {
  14. k_Lang_None = -1,
  15. k_Lang_English = 0,
  16. k_Lang_German,
  17. k_Lang_French,
  18. k_Lang_Italian,
  19. k_Lang_Korean,
  20. k_Lang_Spanish,
  21. k_Lang_Simplified_Chinese,
  22. k_Lang_Traditional_Chinese,
  23. k_Lang_Russian,
  24. k_Lang_Thai,
  25. k_Lang_Japanese,
  26. k_Lang_Portuguese,
  27. k_Lang_Polish,
  28. k_Lang_Danish,
  29. k_Lang_Dutch,
  30. k_Lang_Finnish,
  31. k_Lang_Norwegian,
  32. k_Lang_Swedish,
  33. k_Lang_Romanian,
  34. k_Lang_Turkish,
  35. k_Lang_Hungarian,
  36. k_Lang_Czech,
  37. k_Lang_Brazilian,
  38. k_Lang_Bulgarian,
  39. k_Lang_MAX
  40. };
  41. ELanguage PchLanguageToELanguage(const char *pchShortName, ELanguage eDefault = k_Lang_English );
  42. ELanguage PchLanguageICUCodeToELanguage( const char *pchICUCode, ELanguage eDefault = k_Lang_English );
  43. const char *GetLanguageShortName( ELanguage eLang );
  44. const char *GetLanguageICUName( ELanguage eLang );
  45. const char *GetLanguageVGUILocalization( ELanguage eLang );
  46. const char *GetLangugeCLocaleName( ELanguage eLang );
  47. int GetLanguageCodeID(ELanguage eLang);
  48. #endif /* LANG_H */