[deployment-guide/comm-rel: 474/727] Updated the AddLanguage directive description.
Jaromir Hradilek
jhradile at fedoraproject.org
Tue Oct 19 13:04:42 UTC 2010
commit f0b8153c6864339e3f601677523e79125af78a54
Author: Jaromir Hradilek <jhradile at redhat.com>
Date: Tue Aug 24 15:19:59 2010 +0200
Updated the AddLanguage directive description.
en-US/The_Apache_HTTP_Server.xml | 30 ++++++++++++++++--------------
1 files changed, 16 insertions(+), 14 deletions(-)
---
diff --git a/en-US/The_Apache_HTTP_Server.xml b/en-US/The_Apache_HTTP_Server.xml
index c8d0048..c82fcf3 100644
--- a/en-US/The_Apache_HTTP_Server.xml
+++ b/en-US/The_Apache_HTTP_Server.xml
@@ -404,21 +404,23 @@ AddIcon /icons/blank.png ^^BLANKICON^^</screen>
</example>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><option>AddLanguage</option></term>
+ <listitem>
+ <para>
+ The <option>AddLanguage</option> directive allows you to associate a file extension with a specific language. This is especially useful for web servers that serve content in multiple languages based on the client's language settings. The directive takes the following form:
+ </para>
+ <screen>AddLanguage <replaceable>language</replaceable> <replaceable>extension</replaceable>...</screen>
+ <para>
+ The <replaceable>language</replaceable> option has to be a valide MIME language such as <literal>cs</literal>, <literal>en</literal>, or <literal>fr</literal>.
+ </para>
+ <example id="example-apache-httpdconf-addlanguage">
+ <title>Using the <option>AddLanguage</option> directive</title>
+ <screen>AddLanguage cs .cs .cz</screen>
+ </example>
+ </listitem>
+ </varlistentry>
</variablelist>
- <formalpara id="s2-apache-addlanguage">
- <title>AddLanguage</title>
- <indexterm>
- <primary><command>AddLanguage</command></primary>
- <secondary>Apache configuration directive</secondary>
- </indexterm>
- <indexterm>
- <primary>configuration directives, Apache</primary>
- <secondary><command>AddLanguage</command></secondary>
- </indexterm>
- <para>
- <command>AddLanguage</command> associates file name extensions with specific languages. This directive is useful for Apache HTTP Servers which serve content in multiple languages based on the client Web browser's language settings.
- </para>
- </formalpara>
<formalpara id="s2-apache-addtype">
<title>AddType</title>
<indexterm>
More information about the docs-commits
mailing list