diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2017-04-18 18:25:03 +0200 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2017-04-18 18:25:03 +0200 |
commit | 2091bb843a42ad62423b6f624a0157afed10e463 (patch) | |
tree | cd935c59eb3f08c82f1f9bbd21993b75de200794 /docs/conf | |
parent | On the trunk: (diff) | |
download | apache2-2091bb843a42ad62423b6f624a0157afed10e463.tar.xz apache2-2091bb843a42ad62423b6f624a0157afed10e463.zip |
KISS: RemoveType is a simpler fix for .tr; explain .da files; order our
LanguagePriority by a first-order comparison and drop negligable translations
from our ordered priority preference list entirely.
A better comparison would be total number of documents in-sync, or some
convoluted weight ordering each document by which are more in sync than
others. Leaving that puzzle to an interested hacker.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1791807 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/conf')
-rw-r--r-- | docs/conf/extra/httpd-manual.conf.in | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/docs/conf/extra/httpd-manual.conf.in b/docs/conf/extra/httpd-manual.conf.in index 4e3d514989..e925210564 100644 --- a/docs/conf/extra/httpd-manual.conf.in +++ b/docs/conf/extra/httpd-manual.conf.in @@ -18,16 +18,22 @@ AliasMatch ^/manual(?:/(?:da|de|en|es|fr|ja|ko|pt-br|ru|tr|zh-cn))?(/.*)?$ "@exp <Files *.html> SetHandler type-map </Files> + # .tr is text/troff in mime.types! - <Files *.html.tr.utf8> - ForceType "text/html; charset=utf-8" - </Files> + RemoveType tr + # Traditionally, used .dk filename extension for da language AddLanguage da .da SetEnvIf Request_URI ^/manual/(da|de|en|es|fr|ja|ko|pt-br|ru|tr|zh-cn)/ prefer-language=$1 RedirectMatch 301 ^/manual(?:/(da|de|en|es|fr|ja|ko|pt-br|ru|tr|zh-cn)){2,}(/.*)?$ /manual/$1$2 - LanguagePriority en da de es fr ja ko pt-br ru tr + # Reflect the greatest effort in translation (most content available), + # inferring greater attention to detail (potentially false assumption, + # counting translations presently in-sync would be more helpful.) + # Use caution counting; safest pattern is '*.xml.XX*' and drop negligable + # translations of fewer than 10 manual pages. At the time of this list, + # .xml sources: 278 183 110 94 82 31 22 18 + LanguagePriority en fr ko ja tr es de zh-cn ForceLanguagePriority Prefer Fallback </Directory> |