The AddLanguage directive maps the given filename extensions to the specified content language. MIME-lang is the MIME language of filenames containing extension. This mapping is added to any already in force, overriding any mappings that already exist for the same extension.
Example:
AddEncoding x-compress Z
AddLanguage en .en
AddLanguage fr .fr
Then the document xxxx.en.Z
will be treated as
being a compressed English document (as will the document
xxxx.Z.en
). Although the content language is reported to the
client, the browser is unlikely to use this information. The
AddLanguage directive is more useful for content negotiation, where
the server returns one from several documents based on the client's
language preference.
If multiple language assignments are made for the same extension, the last one encountered is the one that is used. That is, for the case of:
AddLanguage en .en AddLanguage en-uk .en AddLanguage en-us .en
documents with the extension ".en
" would be treated
as being "en-us
".
See also: Files with
multiple extensions
See also:
mod_negotiation