summaryrefslogtreecommitdiffstats
path: root/roles/fedora-web/getfedora/files/languages.conf
blob: d182c14dfe0dfab054d43533dca4ca6f8f7634f7 (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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# Define the correct MIME type for specific languages
AddType text/html .bn
AddType text/html .el
AddType text/html .nb
AddType text/html .pl
AddType text/html .tr
AddType text/html .es
 
AddLanguage af .af
AddLanguage ar .ar
AddLanguage as .as
AddLanguage ast .ast
AddLanguage bal .bal
AddLanguage bg .bg
AddLanguage bn .bn
AddLanguage bn-in .bn_IN
AddLanguage br .br
AddLanguage ca .ca
AddLanguage cs .cs
AddLanguage da .da
AddLanguage de .de
AddLanguage de-ch .de_CH
AddLanguage el .el
AddLanguage en .en
AddLanguage en-gb .en_GB
AddLanguage es .es
AddLanguage eu .eu
AddLanguage fa .fa
AddLanguage fi .fi
AddLanguage fr .fr
AddLanguage fur .fur
AddLanguage gl .gl
AddLanguage gu .gu
AddLanguage he .he
AddLanguage hi .hi
AddLanguage hu .hu
AddLanguage ia .ia
AddLanguage id .id
AddLanguage is .is
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ka .ka
AddLanguage kn .kn
AddLanguage ko .ko
AddLanguage lv .lv
AddLanguage ml .ml
AddLanguage mr .mr
AddLanguage nb .nb
AddLanguage nl .nl
AddLanguage or .or
AddLanguage pa .pa
AddLanguage pl .pl
AddLanguage pt .pt
AddLanguage pt-br .pt_BR
AddLanguage ro .ro
AddLanguage ru .ru
AddLanguage sk .sk
AddLanguage sq .sq
AddLanguage sr .sr
AddLanguage sv .sv
AddLanguage ta .ta
AddLanguage te .te
AddLanguage tg .tg
AddLanguage th .th
AddLanguage tr .tr
AddLanguage uk .uk
AddLanguage vi .vi
AddLanguage zh-cn .zh_CN
AddLanguage zh-tw .zh_TW

LanguagePriority en
ForceLanguagePriority Prefer Fallback

AddDefaultCharset utf-8

RewriteEngine on

RewriteCond %{QUERY_STRING} ^lang=(af|ar|as|ast|bal|bg|bn|bn_IN|br|ca|cs|da|de|de_CH|el|en|en_GB|es|eu|fa|fi|fr|fur|gl|gu|he|hi|hu|ia|id|is|it|ja|ka|kn|ko|lv|ml|mr|nb|nl|or|pa|pl|pt|pt_BR|ro|ru|sk|sq|sr|sv|ta|te|tg|th|tr|uk|vi|zh_CN|zh_TW)$
RewriteRule ^(?:/(?:af|ar|as|ast|bal|bg|bn|bn_IN|br|ca|cs|da|de|de_CH|el|en|en_GB|es|eu|fa|fi|fr|fur|gl|gu|he|hi|hu|ia|id|is|it|ja|ka|kn|ko|lv|ml|mr|nb|nl|or|pa|pl|pt|pt_BR|ro|ru|sk|sq|sr|sv|ta|te|tg|th|tr|uk|vi|zh_CN|zh_TW))?(/.*)$ /%1$1? [R=301]
AliasMatch ^(?:/(?:af|ar|as|ast|bal|bg|bn|bn_IN|br|ca|cs|da|de|de_CH|el|en|en_GB|es|eu|fa|fi|fr|fur|gl|gu|he|hi|hu|ia|id|is|it|ja|ka|kn|ko|lv|ml|mr|nb|nl|or|pa|pl|pt|pt_BR|ro|ru|sk|sq|sr|sv|ta|te|tg|th|tr|uk|vi|zh_CN|zh_TW))(/.*)?$ /srv/web/getfedora.org$1

<Directory /srv/web/getfedora.org>
  Options MultiViews

  SetEnvIf Request_URI ^/af/ prefer-language=af
  SetEnvIf Request_URI ^/ar/ prefer-language=ar
  SetEnvIf Request_URI ^/as/ prefer-language=as
  SetEnvIf Request_URI ^/ast/ prefer-language=ast
  SetEnvIf Request_URI ^/bal/ prefer-language=bal
  SetEnvIf Request_URI ^/bg/ prefer-language=bg
  SetEnvIf Request_URI ^/bn/ prefer-language=bn
  SetEnvIf Request_URI ^/bn_IN/ prefer-language=bn-in
  SetEnvIf Request_URI ^/br/ prefer-language=br
  SetEnvIf Request_URI ^/ca/ prefer-language=ca
  SetEnvIf Request_URI ^/cs/ prefer-language=cs
  SetEnvIf Request_URI ^/da/ prefer-language=da
  SetEnvIf Request_URI ^/de/ prefer-language=de
  SetEnvIf Request_URI ^/de_CH/ prefer-language=de-ch
  SetEnvIf Request_URI ^/el/ prefer-language=el
  SetEnvIf Request_URI ^/en/ prefer-language=en
  SetEnvIf Request_URI ^/en_GB/ prefer-language=en-gb
  SetEnvIf Request_URI ^/es/ prefer-language=es
  SetEnvIf Request_URI ^/eu/ prefer-language=eu
  SetEnvIf Request_URI ^/fa/ prefer-language=fa
  SetEnvIf Request_URI ^/fi/ prefer-language=fi
  SetEnvIf Request_URI ^/fr/ prefer-language=fr
  SetEnvIf Request_URI ^/fur/ prefer-language=fur
  SetEnvIf Request_URI ^/gl/ prefer-language=gl
  SetEnvIf Request_URI ^/gu/ prefer-language=gu
  SetEnvIf Request_URI ^/he/ prefer-language=he
  SetEnvIf Request_URI ^/hi/ prefer-language=hi
  SetEnvIf Request_URI ^/hu/ prefer-language=hu
  SetEnvIf Request_URI ^/ia/ prefer-language=ia
  SetEnvIf Request_URI ^/id/ prefer-language=id
  SetEnvIf Request_URI ^/is/ prefer-language=is
  SetEnvIf Request_URI ^/it/ prefer-language=it
  SetEnvIf Request_URI ^/ja/ prefer-language=ja
  SetEnvIf Request_URI ^/ka/ prefer-language=ka
  SetEnvIf Request_URI ^/kn/ prefer-language=kn
  SetEnvIf Request_URI ^/ko/ prefer-language=ko
  SetEnvIf Request_URI ^/lv/ prefer-language=lv
  SetEnvIf Request_URI ^/ml/ prefer-language=ml
  SetEnvIf Request_URI ^/mr/ prefer-language=mr
  SetEnvIf Request_URI ^/nb/ prefer-language=nb
  SetEnvIf Request_URI ^/nl/ prefer-language=nl
  SetEnvIf Request_URI ^/or/ prefer-language=or
  SetEnvIf Request_URI ^/pa/ prefer-language=pa
  SetEnvIf Request_URI ^/pl/ prefer-language=pl
  SetEnvIf Request_URI ^/pt/ prefer-language=pt
  SetEnvIf Request_URI ^/pt_BR/ prefer-language=pt-br
  SetEnvIf Request_URI ^/ro/ prefer-language=ro
  SetEnvIf Request_URI ^/ru/ prefer-language=ru
  SetEnvIf Request_URI ^/sk/ prefer-language=sk
  SetEnvIf Request_URI ^/sq/ prefer-language=sq
  SetEnvIf Request_URI ^/sr/ prefer-language=sr
  SetEnvIf Request_URI ^/sv/ prefer-language=sv
  SetEnvIf Request_URI ^/ta/ prefer-language=ta
  SetEnvIf Request_URI ^/te/ prefer-language=te
  SetEnvIf Request_URI ^/tg/ prefer-language=tg
  SetEnvIf Request_URI ^/th/ prefer-language=th
  SetEnvIf Request_URI ^/tr/ prefer-language=tr
  SetEnvIf Request_URI ^/uk/ prefer-language=uk
  SetEnvIf Request_URI ^/vi/ prefer-language=vi
  SetEnvIf Request_URI ^/zh_CN/ prefer-language=zh-cn
  SetEnvIf Request_URI ^/zh_TW/ prefer-language=zh-tw
</Directory>