lang_table.h 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. /*************************************************************************/
  2. /* lang_table.h */
  3. /*************************************************************************/
  4. /* This file is part of: */
  5. /* GODOT ENGINE */
  6. /* https://godotengine.org */
  7. /*************************************************************************/
  8. /* Copyright (c) 2007-2019 Juan Linietsky, Ariel Manzur. */
  9. /* Copyright (c) 2014-2019 Godot Engine contributors (cf. AUTHORS.md) */
  10. /* */
  11. /* Permission is hereby granted, free of charge, to any person obtaining */
  12. /* a copy of this software and associated documentation files (the */
  13. /* "Software"), to deal in the Software without restriction, including */
  14. /* without limitation the rights to use, copy, modify, merge, publish, */
  15. /* distribute, sublicense, and/or sell copies of the Software, and to */
  16. /* permit persons to whom the Software is furnished to do so, subject to */
  17. /* the following conditions: */
  18. /* */
  19. /* The above copyright notice and this permission notice shall be */
  20. /* included in all copies or substantial portions of the Software. */
  21. /* */
  22. /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
  23. /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
  24. /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
  25. /* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
  26. /* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
  27. /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
  28. /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
  29. /*************************************************************************/
  30. #ifndef LANG_TABLE_H
  31. #define LANG_TABLE_H
  32. //#include <windows.h>
  33. struct _WinLocale {
  34. const char *locale;
  35. int main_lang;
  36. int sublang;
  37. };
  38. static const _WinLocale _win_locales[] = {
  39. { "ar", LANG_ARABIC, SUBLANG_NEUTRAL },
  40. { "ar_AE", LANG_ARABIC, SUBLANG_ARABIC_UAE },
  41. { "ar_BH", LANG_ARABIC, SUBLANG_ARABIC_BAHRAIN },
  42. { "ar_DZ", LANG_ARABIC, SUBLANG_ARABIC_ALGERIA },
  43. { "ar_EG", LANG_ARABIC, SUBLANG_ARABIC_EGYPT },
  44. { "ar_IQ", LANG_ARABIC, SUBLANG_ARABIC_IRAQ },
  45. { "ar_JO", LANG_ARABIC, SUBLANG_ARABIC_JORDAN },
  46. { "ar_KW", LANG_ARABIC, SUBLANG_ARABIC_KUWAIT },
  47. { "ar_LB", LANG_ARABIC, SUBLANG_ARABIC_LEBANON },
  48. { "ar_LY", LANG_ARABIC, SUBLANG_ARABIC_LIBYA },
  49. { "ar_MA", LANG_ARABIC, SUBLANG_ARABIC_MOROCCO },
  50. { "ar_OM", LANG_ARABIC, SUBLANG_ARABIC_OMAN },
  51. { "ar_QA", LANG_ARABIC, SUBLANG_ARABIC_QATAR },
  52. { "ar_SA", LANG_ARABIC, SUBLANG_ARABIC_SAUDI_ARABIA },
  53. //no sudan
  54. { "ar_SY", LANG_ARABIC, SUBLANG_ARABIC_SYRIA },
  55. { "ar_TN", LANG_ARABIC, SUBLANG_ARABIC_TUNISIA },
  56. { "ar_YE", LANG_ARABIC, SUBLANG_ARABIC_YEMEN },
  57. { "be", LANG_BELARUSIAN, SUBLANG_NEUTRAL },
  58. { "be_BY", LANG_BELARUSIAN, SUBLANG_BELARUSIAN_BELARUS },
  59. { "bg", LANG_BULGARIAN, SUBLANG_NEUTRAL },
  60. { "bg_BG", LANG_BULGARIAN, SUBLANG_BULGARIAN_BULGARIA },
  61. { "ca", LANG_CATALAN, SUBLANG_NEUTRAL },
  62. { "ca_ES", LANG_CATALAN, SUBLANG_CATALAN_CATALAN },
  63. { "cs", LANG_CZECH, SUBLANG_NEUTRAL },
  64. { "cs_CZ", LANG_CZECH, SUBLANG_CZECH_CZECH_REPUBLIC },
  65. { "da", LANG_DANISH, SUBLANG_NEUTRAL },
  66. { "da_DK", LANG_DANISH, SUBLANG_DANISH_DENMARK },
  67. { "de", LANG_GERMAN, SUBLANG_NEUTRAL },
  68. { "de_AT", LANG_GERMAN, SUBLANG_GERMAN_AUSTRIAN },
  69. { "de_CH", LANG_GERMAN, SUBLANG_GERMAN_SWISS },
  70. { "de_DE", LANG_GERMAN, SUBLANG_GERMAN },
  71. { "de_LU", LANG_GERMAN, SUBLANG_GERMAN_LUXEMBOURG },
  72. { "el", LANG_GREEK, SUBLANG_NEUTRAL },
  73. { "el_GR", LANG_GREEK, SUBLANG_GREEK_GREECE },
  74. //{"en_029", LANG_ENGLISH,SUBLANG_ENGLISH_CARIBBEAN},
  75. { "en", LANG_ENGLISH, SUBLANG_NEUTRAL },
  76. { "en_AU", LANG_ENGLISH, SUBLANG_ENGLISH_AUS },
  77. { "en_CA", LANG_ENGLISH, SUBLANG_ENGLISH_CAN },
  78. { "en_GB", LANG_ENGLISH, SUBLANG_ENGLISH_UK },
  79. //{"en_IE", LANG_ENGLISH,SUBLANG_ENGLISH_IRELAND},
  80. { "en_IN", LANG_ENGLISH, SUBLANG_ENGLISH_INDIA },
  81. //MT
  82. { "en_NZ", LANG_ENGLISH, SUBLANG_ENGLISH_NZ },
  83. { "en_PH", LANG_ENGLISH, SUBLANG_ENGLISH_PHILIPPINES },
  84. { "en_SG", LANG_ENGLISH, SUBLANG_ENGLISH_SINGAPORE },
  85. { "en_US", LANG_ENGLISH, SUBLANG_ENGLISH_US },
  86. { "en_ZA", LANG_ENGLISH, SUBLANG_ENGLISH_SOUTH_AFRICA },
  87. { "es", LANG_SPANISH, SUBLANG_NEUTRAL },
  88. { "es_AR", LANG_SPANISH, SUBLANG_SPANISH_ARGENTINA },
  89. { "es_BO", LANG_SPANISH, SUBLANG_SPANISH_BOLIVIA },
  90. { "es_CL", LANG_SPANISH, SUBLANG_SPANISH_CHILE },
  91. { "es_CO", LANG_SPANISH, SUBLANG_SPANISH_COLOMBIA },
  92. { "es_CR", LANG_SPANISH, SUBLANG_SPANISH_COSTA_RICA },
  93. { "es_DO", LANG_SPANISH, SUBLANG_SPANISH_DOMINICAN_REPUBLIC },
  94. { "es_EC", LANG_SPANISH, SUBLANG_SPANISH_ECUADOR },
  95. { "es_ES", LANG_SPANISH, SUBLANG_SPANISH },
  96. { "es_GT", LANG_SPANISH, SUBLANG_SPANISH_GUATEMALA },
  97. { "es_HN", LANG_SPANISH, SUBLANG_SPANISH_HONDURAS },
  98. { "es_MX", LANG_SPANISH, SUBLANG_SPANISH_MEXICAN },
  99. { "es_NI", LANG_SPANISH, SUBLANG_SPANISH_NICARAGUA },
  100. { "es_PA", LANG_SPANISH, SUBLANG_SPANISH_PANAMA },
  101. { "es_PE", LANG_SPANISH, SUBLANG_SPANISH_PERU },
  102. { "es_PR", LANG_SPANISH, SUBLANG_SPANISH_PUERTO_RICO },
  103. { "es_PY", LANG_SPANISH, SUBLANG_SPANISH_PARAGUAY },
  104. { "es_SV", LANG_SPANISH, SUBLANG_SPANISH_EL_SALVADOR },
  105. { "es_US", LANG_SPANISH, SUBLANG_SPANISH_US },
  106. { "es_UY", LANG_SPANISH, SUBLANG_SPANISH_URUGUAY },
  107. { "es_VE", LANG_SPANISH, SUBLANG_SPANISH_VENEZUELA },
  108. { "et", LANG_ESTONIAN, SUBLANG_NEUTRAL },
  109. { "et_EE", LANG_ESTONIAN, SUBLANG_ESTONIAN_ESTONIA },
  110. { "fi", LANG_FINNISH, SUBLANG_NEUTRAL },
  111. { "fi_FI", LANG_FINNISH, SUBLANG_FINNISH_FINLAND },
  112. { "fr", LANG_FRENCH, SUBLANG_NEUTRAL },
  113. { "fr_BE", LANG_FRENCH, SUBLANG_FRENCH_BELGIAN },
  114. { "fr_CA", LANG_FRENCH, SUBLANG_FRENCH_CANADIAN },
  115. { "fr_CH", LANG_FRENCH, SUBLANG_FRENCH_SWISS },
  116. { "fr_FR", LANG_FRENCH, SUBLANG_FRENCH },
  117. { "fr_LU", LANG_FRENCH, SUBLANG_FRENCH_LUXEMBOURG },
  118. { "ga", LANG_IRISH, SUBLANG_NEUTRAL },
  119. { "ga_IE", LANG_IRISH, SUBLANG_IRISH_IRELAND },
  120. { "hi", LANG_HINDI, SUBLANG_NEUTRAL },
  121. { "hi_IN", LANG_HINDI, SUBLANG_HINDI_INDIA },
  122. { "hr", LANG_CROATIAN, SUBLANG_NEUTRAL },
  123. { "hr_HR", LANG_CROATIAN, SUBLANG_CROATIAN_CROATIA },
  124. { "hu", LANG_HUNGARIAN, SUBLANG_NEUTRAL },
  125. { "hu_HU", LANG_HUNGARIAN, SUBLANG_HUNGARIAN_HUNGARY },
  126. { "in", LANG_ARMENIAN, SUBLANG_NEUTRAL },
  127. { "in_ID", LANG_INDONESIAN, SUBLANG_INDONESIAN_INDONESIA },
  128. { "is", LANG_ICELANDIC, SUBLANG_NEUTRAL },
  129. { "is_IS", LANG_ICELANDIC, SUBLANG_ICELANDIC_ICELAND },
  130. { "it", LANG_ITALIAN, SUBLANG_NEUTRAL },
  131. { "it_CH", LANG_ITALIAN, SUBLANG_ITALIAN_SWISS },
  132. { "it_IT", LANG_ITALIAN, SUBLANG_ITALIAN },
  133. { "iw", LANG_HEBREW, SUBLANG_NEUTRAL },
  134. { "iw_IL", LANG_HEBREW, SUBLANG_HEBREW_ISRAEL },
  135. { "ja", LANG_JAPANESE, SUBLANG_NEUTRAL },
  136. { "ja_JP", LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN },
  137. { "ko", LANG_KOREAN, SUBLANG_NEUTRAL },
  138. { "ko_KR", LANG_KOREAN, SUBLANG_KOREAN },
  139. { "lt", LANG_LITHUANIAN, SUBLANG_NEUTRAL },
  140. //{"lt_LT", LANG_LITHUANIAN,SUBLANG_LITHUANIAN_LITHUANIA},
  141. { "lv", LANG_LATVIAN, SUBLANG_NEUTRAL },
  142. { "lv_LV", LANG_LATVIAN, SUBLANG_LATVIAN_LATVIA },
  143. { "mk", LANG_MACEDONIAN, SUBLANG_NEUTRAL },
  144. { "mk_MK", LANG_MACEDONIAN, SUBLANG_MACEDONIAN_MACEDONIA },
  145. { "ms", LANG_MALAY, SUBLANG_NEUTRAL },
  146. { "ms_MY", LANG_MALAY, SUBLANG_MALAY_MALAYSIA },
  147. { "mt", LANG_MALTESE, SUBLANG_NEUTRAL },
  148. { "mt_MT", LANG_MALTESE, SUBLANG_MALTESE_MALTA },
  149. { "nl", LANG_DUTCH, SUBLANG_NEUTRAL },
  150. { "nl_BE", LANG_DUTCH, SUBLANG_DUTCH_BELGIAN },
  151. { "nl_NL", LANG_DUTCH, SUBLANG_DUTCH },
  152. { "no", LANG_NORWEGIAN, SUBLANG_NEUTRAL },
  153. { "no_NO", LANG_NORWEGIAN, SUBLANG_NORWEGIAN_BOKMAL },
  154. { "no_NO_NY", LANG_NORWEGIAN, SUBLANG_NORWEGIAN_NYNORSK },
  155. { "pl", LANG_POLISH, SUBLANG_NEUTRAL },
  156. { "pl_PL", LANG_POLISH, SUBLANG_POLISH_POLAND },
  157. { "pt", LANG_PORTUGUESE, SUBLANG_NEUTRAL },
  158. { "pt_BR", LANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN },
  159. { "pt_PT", LANG_PORTUGUESE, SUBLANG_PORTUGUESE },
  160. { "ro", LANG_ROMANIAN, SUBLANG_NEUTRAL },
  161. { "ro_RO", LANG_ROMANIAN, SUBLANG_ROMANIAN_ROMANIA },
  162. { "ru", LANG_RUSSIAN, SUBLANG_NEUTRAL },
  163. { "ru_RU", LANG_RUSSIAN, SUBLANG_RUSSIAN_RUSSIA },
  164. { "sk", LANG_SLOVAK, SUBLANG_NEUTRAL },
  165. { "sk_SK", LANG_SLOVAK, SUBLANG_SLOVAK_SLOVAKIA },
  166. { "sl", LANG_SLOVENIAN, SUBLANG_NEUTRAL },
  167. { "sl_SI", LANG_SLOVENIAN, SUBLANG_SLOVENIAN_SLOVENIA },
  168. { "sq", LANG_ALBANIAN, SUBLANG_NEUTRAL },
  169. { "sq_AL", LANG_ALBANIAN, SUBLANG_ALBANIAN_ALBANIA },
  170. { "sr", LANG_SERBIAN_NEUTRAL, SUBLANG_NEUTRAL },
  171. { "sv", LANG_SWEDISH, SUBLANG_NEUTRAL },
  172. { "sv_SE", LANG_SWEDISH, SUBLANG_SWEDISH },
  173. { "th", LANG_THAI, SUBLANG_NEUTRAL },
  174. { "th_TH", LANG_THAI, SUBLANG_THAI_THAILAND },
  175. { "tr", LANG_TURKISH, SUBLANG_NEUTRAL },
  176. { "tr_TR", LANG_TURKISH, SUBLANG_TURKISH_TURKEY },
  177. { "uk", LANG_UKRAINIAN, SUBLANG_NEUTRAL },
  178. { "uk_UA", LANG_UKRAINIAN, SUBLANG_UKRAINIAN_UKRAINE },
  179. { "vi", LANG_VIETNAMESE, SUBLANG_NEUTRAL },
  180. { "vi_VN", LANG_VIETNAMESE, SUBLANG_VIETNAMESE_VIETNAM },
  181. { "zh", LANG_CHINESE, SUBLANG_NEUTRAL },
  182. { "zh_CN", LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED },
  183. { "zh_HK", LANG_CHINESE, SUBLANG_CHINESE_HONGKONG },
  184. { "zh_SG", LANG_CHINESE, SUBLANG_CHINESE_SINGAPORE },
  185. { "zh_TW", LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL },
  186. { 0, 0, 0 },
  187. };
  188. #endif // LANG_TABLE_H