httpd-languages.conf 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. #
  2. # Settings for hosting different languages.
  3. #
  4. # Required modules: mod_mime, mod_negotiation
  5. # DefaultLanguage and AddLanguage allows you to specify the language of
  6. # a document. You can then use content negotiation to give a browser a
  7. # file in a language the user can understand.
  8. #
  9. # Specify a default language. This means that all data
  10. # going out without a specific language tag (see below) will
  11. # be marked with this one. You probably do NOT want to set
  12. # this unless you are sure it is correct for all cases.
  13. #
  14. # * It is generally better to not mark a page as
  15. # * being a certain language than marking it with the wrong
  16. # * language!
  17. #
  18. # DefaultLanguage nl
  19. #
  20. # Note 1: The suffix does not have to be the same as the language
  21. # keyword --- those with documents in Polish (whose net-standard
  22. # language code is pl) may wish to use "AddLanguage pl .po" to
  23. # avoid the ambiguity with the common suffix for perl scripts.
  24. #
  25. # Note 2: The example entries below illustrate that in some cases
  26. # the two character 'Language' abbreviation is not identical to
  27. # the two character 'Country' code for its country,
  28. # E.g. 'Danmark/dk' versus 'Danish/da'.
  29. #
  30. # Note 3: In the case of 'ltz' we violate the RFC by using a three char
  31. # specifier. There is 'work in progress' to fix this and get
  32. # the reference data for rfc1766 cleaned up.
  33. #
  34. # Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
  35. # English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
  36. # Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
  37. # Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
  38. # Norwegian (no) - Polish (pl) - Portugese (pt)
  39. # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
  40. # Turkish (tr) - Simplified Chinese (zh-CN) - Spanish (es)
  41. # Traditional Chinese (zh-TW)
  42. #
  43. AddLanguage ca .ca
  44. AddLanguage cs .cz .cs
  45. AddLanguage da .dk
  46. AddLanguage de .de
  47. AddLanguage el .el
  48. AddLanguage en .en
  49. AddLanguage eo .eo
  50. AddLanguage es .es
  51. AddLanguage et .et
  52. AddLanguage fr .fr
  53. AddLanguage he .he
  54. AddLanguage hr .hr
  55. AddLanguage it .it
  56. AddLanguage ja .ja
  57. AddLanguage ko .ko
  58. AddLanguage ltz .ltz
  59. AddLanguage nl .nl
  60. AddLanguage nn .nn
  61. AddLanguage no .no
  62. AddLanguage pl .po
  63. AddLanguage pt .pt
  64. AddLanguage pt-BR .pt-br
  65. AddLanguage ru .ru
  66. AddLanguage sv .sv
  67. AddLanguage tr .tr
  68. AddLanguage zh-CN .zh-cn
  69. AddLanguage zh-TW .zh-tw
  70. # LanguagePriority allows you to give precedence to some languages
  71. # in case of a tie during content negotiation.
  72. #
  73. # Just list the languages in decreasing order of preference. We have
  74. # more or less alphabetized them here. You probably want to change this.
  75. #
  76. LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv tr zh-CN zh-TW
  77. #
  78. # ForceLanguagePriority allows you to serve a result page rather than
  79. # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
  80. # [in case no accepted languages matched the available variants]
  81. #
  82. ForceLanguagePriority Prefer Fallback
  83. #
  84. # Commonly used filename extensions to character sets. You probably
  85. # want to avoid clashes with the language extensions, unless you
  86. # are good at carefully testing your setup after each change.
  87. # See http://www.iana.org/assignments/character-sets for the
  88. # official list of charset names and their respective RFCs.
  89. #
  90. AddCharset us-ascii.ascii .us-ascii
  91. AddCharset ISO-8859-1 .iso8859-1 .latin1
  92. AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
  93. AddCharset ISO-8859-3 .iso8859-3 .latin3
  94. AddCharset ISO-8859-4 .iso8859-4 .latin4
  95. AddCharset ISO-8859-5 .iso8859-5 .cyr .iso-ru
  96. AddCharset ISO-8859-6 .iso8859-6 .arb .arabic
  97. AddCharset ISO-8859-7 .iso8859-7 .grk .greek
  98. AddCharset ISO-8859-8 .iso8859-8 .heb .hebrew
  99. AddCharset ISO-8859-9 .iso8859-9 .latin5 .trk
  100. AddCharset ISO-8859-10 .iso8859-10 .latin6
  101. AddCharset ISO-8859-13 .iso8859-13
  102. AddCharset ISO-8859-14 .iso8859-14 .latin8
  103. AddCharset ISO-8859-15 .iso8859-15 .latin9
  104. AddCharset ISO-8859-16 .iso8859-16 .latin10
  105. AddCharset ISO-2022-JP .iso2022-jp .jis
  106. AddCharset ISO-2022-KR .iso2022-kr .kis
  107. AddCharset ISO-2022-CN .iso2022-cn .cis
  108. AddCharset Big5.Big5 .big5 .b5
  109. AddCharset cn-Big5 .cn-big5
  110. # For russian, more than one charset is used (depends on client, mostly):
  111. AddCharset WINDOWS-1251 .cp-1251 .win-1251
  112. AddCharset CP866 .cp866
  113. AddCharset KOI8 .koi8
  114. AddCharset KOI8-E .koi8-e
  115. AddCharset KOI8-r .koi8-r .koi8-ru
  116. AddCharset KOI8-U .koi8-u
  117. AddCharset KOI8-ru .koi8-uk .ua
  118. AddCharset ISO-10646-UCS-2 .ucs2
  119. AddCharset ISO-10646-UCS-4 .ucs4
  120. AddCharset UTF-7 .utf7
  121. AddCharset UTF-8 .utf8
  122. AddCharset UTF-16 .utf16
  123. AddCharset UTF-16BE .utf16be
  124. AddCharset UTF-16LE .utf16le
  125. AddCharset UTF-32 .utf32
  126. AddCharset UTF-32BE .utf32be
  127. AddCharset UTF-32LE .utf32le
  128. AddCharset euc-cn .euc-cn
  129. AddCharset euc-gb .euc-gb
  130. AddCharset euc-jp .euc-jp
  131. AddCharset euc-kr .euc-kr
  132. #Not sure how euc-tw got in - IANA doesn't list it???
  133. AddCharset EUC-TW .euc-tw
  134. AddCharset gb2312 .gb2312 .gb
  135. AddCharset iso-10646-ucs-2 .ucs-2 .iso-10646-ucs-2
  136. AddCharset iso-10646-ucs-4 .ucs-4 .iso-10646-ucs-4
  137. AddCharset shift_jis .shift_jis .sjis