Advertisement
Guest User

00_languages...

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