languages.py 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. '''
  2. searx is free software: you can redistribute it and/or modify
  3. it under the terms of the GNU Affero General Public License as published by
  4. the Free Software Foundation, either version 3 of the License, or
  5. (at your option) any later version.
  6. searx is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU Affero General Public License for more details.
  10. You should have received a copy of the GNU Affero General Public License
  11. along with searx. If not, see < http://www.gnu.org/licenses/ >.
  12. (C) 2013- by Adam Tauber, <asciimoo@gmail.com>
  13. '''
  14. # list of language codes
  15. language_codes = (
  16. ("ar_XA", "Arabic", "Arabia"),
  17. ("bg_BG", "Bulgarian", "Bulgaria"),
  18. ("cs_CZ", "Czech", "Czech Republic"),
  19. ("de_DE", "German", "Germany"),
  20. ("da_DK", "Danish", "Denmark"),
  21. ("de_AT", "German", "Austria"),
  22. ("de_CH", "German", "Switzerland"),
  23. ("el_GR", "Greek", "Greece"),
  24. ("en_AU", "English", "Australia"),
  25. ("en_CA", "English", "Canada"),
  26. ("en_GB", "English", "United Kingdom"),
  27. ("en_ID", "English", "Indonesia"),
  28. ("en_IE", "English", "Ireland"),
  29. ("en_IN", "English", "India"),
  30. ("en_MY", "English", "Malaysia"),
  31. ("en_NZ", "English", "New Zealand"),
  32. ("en_PH", "English", "Philippines"),
  33. ("en_SG", "English", "Singapore"),
  34. ("en_US", "English", "United States"),
  35. ("en_XA", "English", "Arabia"),
  36. ("en_ZA", "English", "South Africa"),
  37. ("es_AR", "Spanish", "Argentina"),
  38. ("es_CL", "Spanish", "Chile"),
  39. ("es_ES", "Spanish", "Spain"),
  40. ("es_MX", "Spanish", "Mexico"),
  41. ("es_US", "Spanish", "United States"),
  42. ("es_XL", "Spanish", "Latin America"),
  43. ("et_EE", "Estonian", "Estonia"),
  44. ("fi_FI", "Finnish", "Finland"),
  45. ("fr_BE", "French", "Belgium"),
  46. ("fr_CA", "French", "Canada"),
  47. ("fr_CH", "French", "Switzerland"),
  48. ("fr_FR", "French", "France"),
  49. ("he_IL", "Hebrew", "Israel"),
  50. ("hr_HR", "Croatian", "Croatia"),
  51. ("hu_HU", "Hungarian", "Hungary"),
  52. ("it_IT", "Italian", "Italy"),
  53. ("ja_JP", "Japanese", "Japan"),
  54. ("ko_KR", "Korean", "Korea"),
  55. ("lt_LT", "Lithuanian", "Lithuania"),
  56. ("lv_LV", "Latvian", "Latvia"),
  57. ("oc_OC", "Occitan", "Occitan"),
  58. ("nb_NO", "Norwegian", "Norway"),
  59. ("nl_BE", "Dutch", "Belgium"),
  60. ("nl_NL", "Dutch", "Netherlands"),
  61. ("pl_PL", "Polish", "Poland"),
  62. ("pt_BR", "Portuguese", "Brazil"),
  63. ("pt_PT", "Portuguese", "Portugal"),
  64. ("ro_RO", "Romanian", "Romania"),
  65. ("ru_RU", "Russian", "Russia"),
  66. ("sk_SK", "Slovak", "Slovak Republic"),
  67. ("sl_SL", "Slovenian", "Slovenia"),
  68. ("sv_SE", "Swedish", "Sweden"),
  69. ("th_TH", "Thai", "Thailand"),
  70. ("tr_TR", "Turkish", "Turkey"),
  71. ("uk_UA", "Ukrainian", "Ukraine"),
  72. ("zh_CN", "Chinese", "China"),
  73. ("zh_HK", "Chinese", "Hong Kong SAR"),
  74. ("zh_TW", "Chinese", "Taiwan"))