summaryrefslogtreecommitdiff
path: root/web-server/apache-conf.d/lang.conf
blob: 1ac108e3f98e5f1d2240e946268696ee3aa7431f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
  # (lang.conf)
  # Set up the languages with translations and their suffixes.
  # This file should be updated whenever a new language has translations
  # first added.
  #
  # This file should be copied to:
  #   /etc/apache2/conf.d/lang.conf
<IfModule mod_mime.c>
  AddLanguage af    .af
  AddLanguage ar    .ar
  AddLanguage az    .az
  AddLanguage bg    .bg
  AddLanguage bn    .bn
  AddLanguage bs    .bs
  AddLanguage ca    .ca
  AddLanguage cs    .cs
  AddLanguage da    .da
  AddLanguage de    .de
  AddLanguage el    .el
  AddLanguage en    .en
  AddLanguage eo    .eo
  # es is ecmascript in /etc/mime.types
  RemoveType  es
  AddLanguage es    .es
  AddLanguage fa    .fa
  AddLanguage fi    .fi
  AddLanguage fr    .fr
  # gl is video/gl in /etc/mime.types
  RemoveType  gl
  AddLanguage gl    .gl
  AddLanguage he    .he
  AddLanguage hr    .hr
  AddLanguage hu    .hu
  AddLanguage id    .id
  AddLanguage it    .it
  AddLanguage ja    .ja
  AddLanguage kn    .kn
  AddLanguage ko    .ko
  AddLanguage lt    .lt
  AddLanguage mk    .mk
  AddLanguage ml    .ml
  # nb is application/mathematica in /etc/mime.types
  RemoveType  nb
  AddLanguage nb    .nb
  AddLanguage nl    .nl
  AddLanguage nn    .nn
  # pl is text/x-perl in /etc/mime.types
  RemoveType  pl
  AddLanguage pl    .pl
  AddLanguage pt    .pt
  AddLanguage pt-BR .pt-br
  AddLanguage ro    .ro
  AddLanguage ru    .ru
# sh is application/x-sh in /etc/mime.types
  RemoveType  sh
# non-standard: Serbo-Croatian
  AddLanguage sh    .sh
  AddLanguage sk    .sk
  AddLanguage sl    .sl
  AddLanguage sq    .sq
  AddLanguage sr    .sr
  AddLanguage sv    .sv
  AddLanguage ta    .ta
  AddLanguage th    .th
  AddLanguage tl    .tl
  # tr is troff in /etc/mime.types
  RemoveType  tr
  AddLanguage tr    .tr
  AddLanguage uk    .uk
  AddLanguage uz    .uz
  AddLanguage vi    .vi
  AddLanguage zh    .zh
  AddLanguage zh-CA .zh-ca
  AddLanguage zh-CN .zh-cn
  AddLanguage zh-TW .zh-tw

  # This artificial language prevents selection of non-HTML files
  # when .html is explicitly requested.  For instance, without this,
  #   wget -nv http://testvhost.org/prep/maintain/maintain.html
  # returns maintain.txt, because the MultiViews negotiation results in
  # the shortest file when no preferences are specified.  To avoid this,
  # tell MultiViews that these non-language extensions are lowest priority.
  #
  AddLanguage non-html \
    .0206 .asc .au .big.png .css .dbk .dvi .gif \
    .html_node.tar .html.old .hup \
    .include .info.tar .jpg .jpg.copy .ly .msg \
    .odt .ogg .pdf .png .pnm .ps \
    .rdf .sgml .small.png .svg .sxd \
    .t .tar .tex .texi .texi.tar .text .tiff .tiny.png .txt \
    .xcf .xml .xslt
</IfModule>

<IfModule mod_negotiation.c>
  LanguagePriority en \
    af ar az bg bn bs ca cs da de el eo es \
    fa fi fr gl he hr hu id it ja kn ko mk ml nb nl nn \
    pl pt pt_BR ro ru sh sk sl sq sr sv ta th tl tr uk \
    uz vi zh zh_CA zh_CN zh_TW \
    non-html

  ForceLanguagePriority Prefer Fallback
  DefaultLanguage en
</IfModule>