]> granicus.if.org Git - apache/commitdiff
Cleanup the ForceLanguagePriority docs.
authorJoshua Slive <slive@apache.org>
Sun, 30 Dec 2001 15:45:05 +0000 (15:45 +0000)
committerJoshua Slive <slive@apache.org>
Sun, 30 Dec 2001 15:45:05 +0000 (15:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92667 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_negotiation.html

index 386fb9bc75744f694fe8a17b0dab5b7bae61e941..048991a4e6d8d8787dbe992843c29a91c1b5c530 100644 (file)
 
     <h2><a id="forcelanguagepriority"
     name="forcelanguagepriority">ForceLanguagePriority</a> directive</h2>
-    <!--%plaintext &lt;?INDEX {\tt ForceLanguagePriority} directive&gt; -->
     <a href="directive-dict.html#Syntax"
     rel="Help"><strong>Syntax:</strong></a> ForceLanguagePriority
-    <em>None</em> | [<em>Prefer</em>] [<em>Fallback</em>]</em><br />
+    None|Prefer|Fallback [Prefer|Fallback]<br />
+     <a href="directive-dict.html#Default"
+    rel="Help"><strong>Default:</strong></a>
+    <code>ForceLanguagePriority None</code><br />
      <a href="directive-dict.html#Context"
     rel="Help"><strong>Context:</strong></a> server config, virtual
     host, directory, .htaccess<br />
      <a href="directive-dict.html#Module"
     rel="Help"><strong>Module:</strong></a> mod_negotiation 
 
-    <p>The <em>ForceLanguagePriority</em> directive uses the given
-    <em>LanguagePriority</em> to satisfy two common negotation results.</p>
-
-    <p><em>ForceLanguagePriority Prefer</em> uses <em>LanguagePriority</em>
-    to serve a one valid result, rather than returning an HTTP result 300,
-    MULTIPLE CHOICES, when there are several equally valid choices.  
-    If the directives below were given, and the user's Accept-Language 
-    header assigned en and de each as quality .500 (equally acceptable)
-    then then first matching variant, en, will be served;</p>
-
-    <blockquote>
-      <code>LanguagePriority en fr de</code>
-      <code>ForceLanguagePriority Prefer</code>
-    </blockquote>
-
-    <p><em>ForceLanguagePriority Fallback</em> uses <em>LanguagePriority</em>
-    to serve a valid result, rather than returning an HTTP result 406,
-    NOT ACCEPTABLE.  If the directives below were given, and the user's
-    Accept-Language only permitted an es langauge response, but such a
-    variant isn't found, then the first variant from the LanguagePriority 
-    list below will be served;</p>
-
-    <blockquote>
-      <code>LanguagePriority en fr de</code>
-      <code>ForceLanguagePriority Fallback</code>
-    </blockquote>
+    <p>The <code>ForceLanguagePriority</code> directive uses the given
+    <a href="#languagepriority">LanguagePriority</a> to satisfy
+    negotation where the server could otherwise not return a single
+    matching document.</p>
+
+    <p><code>ForceLanguagePriority Prefer</code> uses
+    <code>LanguagePriority</code> to serve a one valid result, rather
+    than returning an HTTP result 300 (MULTIPLE CHOICES) when there
+    are several equally valid choices.  If the directives below were
+    given, and the user's Accept-Language header assigned en and de
+    each as quality .500 (equally acceptable) then then first matching
+    variant, en, will be served.</p>
+
+    <blockquote><code>
+      LanguagePriority en fr de<br />
+      ForceLanguagePriority Prefer
+    </code></blockquote>
+
+    <p><code>ForceLanguagePriority Fallback</code> uses
+    <code>LanguagePriority</code> to serve a valid result, rather than
+    returning an HTTP result 406 (NOT ACCEPTABLE).  If the directives
+    below were given, and the user's Accept-Language only permitted an
+    es langauge response, but such a variant isn't found, then the
+    first variant from the LanguagePriority list below will be
+    served.</p>
+
+    <blockquote><code>
+      LanguagePriority en fr de<br />
+      ForceLanguagePriority Fallback
+    </code></blockquote>
 
     <p>Both options, Prefer and Fallback, may be specified, so either the
     first matching variant from LanguagePriority will be served if more
     then <code>foo.html.fr</code> would be returned. 
 
     <p>Note that this directive only has an effect if a 'best'
-    language cannot be determined by any other means. Correctly
-    implemented HTTP/1.1 requests will mean this directive has no
-    effect.</p>
+    language cannot be determined by any other means or the <a
+    href="#forcelanguagepriority">ForceLanguagePriority</a> directive
+    is not <code>None</code>. Correctly implemented HTTP/1.1 requests
+    will mean this directive has no effect.</p>
 
     <p><strong>See also</strong>: <a
-    href="./mod_mime.html#defaultlanguage">DefaultLanguage</a> and
-    <a href="./mod_mime.html#addlanguage">AddLanguage</a> 
+    href="./mod_mime.html#defaultlanguage">DefaultLanguage</a>,
+    <a href="./mod_mime.html#addlanguage">AddLanguage</a> and
+    <a href="#forcelanguagepriority">ForceLanguagePriority</a>. 
     <!--#include virtual="footer.html" -->
     </p>
   </body>