summaryrefslogtreecommitdiff
path: root/web-server/apache-conf.d/lang.conf
diff options
context:
space:
mode:
Diffstat (limited to 'web-server/apache-conf.d/lang.conf')
-rw-r--r--web-server/apache-conf.d/lang.conf104
1 files changed, 104 insertions, 0 deletions
diff --git a/web-server/apache-conf.d/lang.conf b/web-server/apache-conf.d/lang.conf
new file mode 100644
index 0000000..1ac108e
--- /dev/null
+++ b/web-server/apache-conf.d/lang.conf
@@ -0,0 +1,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>