From: William A. Rowe Jr Date: Tue, 18 Apr 2017 16:25:39 +0000 (+0000) Subject: KISS: RemoveType is a simpler fix for .tr; explain .da files; order our X-Git-Tag: 2.4.26~144 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d820d78629bd5cd3dd1973b72d73aba669a4d961;p=apache 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/branches/2.4.x@1791808 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/conf/extra/httpd-manual.conf.in b/docs/conf/extra/httpd-manual.conf.in index 4d7ee7e6aa..b45b1c5784 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 SetHandler type-map + # .tr is text/troff in mime.types! - - ForceType "text/html; charset=utf-8" - + 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: 266 214 110 94 82 25 22 18 + LanguagePriority en fr ko ja tr es de zh-cn ForceLanguagePriority Prefer Fallback