]> granicus.if.org Git - apache/commitdiff
use Google Search.
authorAndré Malo <nd@apache.org>
Wed, 9 Apr 2003 12:21:21 +0000 (12:21 +0000)
committerAndré Malo <nd@apache.org>
Wed, 9 Apr 2003 12:21:21 +0000 (12:21 +0000)
We may have to experimt a bit to get best results. This is a first
attempt.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99303 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/lang/de.xml
docs/manual/style/lang/en.xml
docs/manual/style/lang/ja.xml
docs/manual/style/lang/ru.xml
docs/manual/style/manual.de.xsl
docs/manual/style/manual.en.xsl
docs/manual/style/manual.ja.xsl
docs/manual/style/manual.pt-br.xsl
docs/manual/style/manual.ru.xsl
docs/manual/style/xsl/indexpage.xsl

index 0e5d1a3d5f8946c7534f6365c91a219d7b1ac667..14f1629115747b0b2be5606656083c85cc03aa3f 100644 (file)
@@ -67,7 +67,7 @@
  <message name="apachetitle">- Apache HTTP Server</message>
  <message name="apachehttpserver">Apache HTTP Server Version 2.1</message>
  <message name="apachedocalt">[APACHE DOCUMENTATION]</message>
- <message name="search">Suchen</message> <!-- search button -->
+ <message name="search">Google-Suche</message> <!-- search button -->
  <message name="index">Index</message> <!-- deprecated -->
  <message name="home">Startseite</message> <!-- deprecated -->
 
index 1e34fe0ffe7cd4f924f4d16b6fed2a6e8024b259..09b893074c0c9ef4347598f130491ea60a51f2a5 100644 (file)
@@ -63,7 +63,7 @@
  <message name="apachetitle">- Apache HTTP Server</message>
  <message name="apachehttpserver">Apache HTTP Server Version 2.1</message>
  <message name="apachedocalt">[APACHE DOCUMENTATION]</message>
- <message name="search">Search</message> <!-- search button -->
+ <message name="search">Google Search</message> <!-- search button -->
  <message name="index">Index</message> <!-- deprecated -->
  <message name="home">Home</message> <!-- deprecated -->
 
index 7fb10f6722622b0b70840ef8640ac63ca14d5383..f2ff89d9cf3c68fc7c18698a69ab9123716eb9d4 100644 (file)
@@ -58,7 +58,7 @@
  <message name="apachetitle">- Apache HTTP \e$B%5!<%P\e(B</message>
  <message name="apachehttpserver">Apache HTTP \e$B%5!<%P\e(B \e$B%P!<%8%g%s\e(B 2.1</message>
  <message name="apachedocalt">[APACHE DOCUMENTATION]</message>
- <message name="search">Search</message> <!-- search button -->
+ <message name="search">Google Search</message> <!-- search button -->
  <message name="index">\e$B:w0z\e(B</message> <!-- deprecated -->
  <message name="home">\e$B%[!<%`\e(B</message> <!-- deprecated -->
 
index d3d755ff584c3e93c459f58d1b771c319226b7ef..12d2b0af04ce55fd3c1e57905ff63b45fb826de6 100644 (file)
@@ -52,7 +52,7 @@
  <message name="apachetitle">- HTTP ÓÅÒ×ÅÒ Apache</message>
  <message name="apachehttpserver">HTTP ÓÅÒ×ÅÒ Apache ÷ÅÒÓÉÑ 2.1</message>
  <message name="apachedocalt">[äïëõíåîôáãéñ APACHE]</message>
- <message name="search">Search</message> <!-- search button -->
+ <message name="search">Google Search</message> <!-- search button -->
  <message name="index">ïÇÌÁ×ÌÅÎÉÅ</message> <!-- deprecated -->
  <message name="home">îÁ ÇÌÁ×ÎÕÀ ÓÔÒÁÎÉÃÕ</message> <!-- deprecated -->
 
index f2fbabeb5e3b9e67ea3c40230260f659b69daa98..fd41fba3fea3861b30fcb4212f0294b4e984a8f0 100644 (file)
@@ -12,6 +12,7 @@
 
 <!-- Read the localized messages from the specified language file -->
 <xsl:variable name="messages" select="document('lang/de.xml')/messages"/>
+<xsl:variable name="output-encoding" select="'ISO-8859-1'" />
 
 <!-- Now get the real guts of the stylesheet -->
 <xsl:include href="xsl/common.xsl"/>
index 1446d5f81c54d51802ed86183fe87b0d9ccb9db6..cce29d7fea294c8ae00117bbf15d52e970acb6f0 100644 (file)
@@ -12,6 +12,7 @@
 
 <!-- Read the localized messages from the specified language file -->
 <xsl:variable name="messages" select="document('lang/en.xml')/messages"/>
+<xsl:variable name="output-encoding" select="'ISO-8859-1'" />
 
 <!-- Now get the real guts of the stylesheet -->
 <xsl:include href="xsl/common.xsl"/>
index 66e6bd4773a4f6d97370b5ffcdda5cd54425075c..8711c48dd1cd6f504465202f1a71ae4cbf90b316 100644 (file)
@@ -12,6 +12,7 @@
 
 <!-- Read the localized messages from the specified language file -->
 <xsl:variable name="messages" select="document('lang/ja.xml')/messages"/>
+<xsl:variable name="output-encoding" select="'iso-2022-jp'" />
 
 <!-- Now get the real guts of the stylesheet -->
 <xsl:include href="xsl/common.xsl"/>
index c2b1a213ddaf9b6656ee5ed5facc8c74fe28e019..a5c8c8653b92fd0e8eae081e9851f0d69b388382 100644 (file)
@@ -12,6 +12,7 @@
 
 <!-- Read the localized messages from the specified language file -->
 <xsl:variable name="messages" select="document('lang/pt-br.xml')/messages"/>
+<xsl:variable name="output-encoding" select="'ISO-8859-1'" />
 
 <!-- Now get the real guts of the stylesheet -->
 <xsl:include href="xsl/common.xsl"/>
index f9cc992e1f6ea2148ff059c446f8f6d80a872b57..0b3130161a2e88e996a126efc785c22f562d3a4f 100644 (file)
@@ -12,6 +12,7 @@
 
 <!-- Read the localized messages from the specified language file -->
 <xsl:variable name="messages" select="document('lang/ru.xml')/messages"/>
+<xsl:variable name="output-encoding" select="'KOI8-R'" />
 
 <!-- Now get the real guts of the stylesheet -->
 <xsl:include href="xsl/common.xsl"/>
index fb2dc0ef00d0737958d76a4494dac8f7fcb32256..dd9d105f86c718a85a379dded04583fe1a054615 100644 (file)
 <xsl:text>
 </xsl:text> <!-- insert line break -->
 
-          <form method="post" action="http://search.apache.org/"><p>
-            <input type="hidden" name="what" value="httpd.apache.org" />
-            <input type="hidden" name="results" value="20" />
-            <input type="hidden" name="version" value="2" />
-            <input type="text" name="keyword" size="20" />
-            <xsl:text> </xsl:text>
-            <input type="submit" value="{$messages/message[@name='search']}" />
+          <form action="http://www.google.com/search" method="get"><p>
+          <!-- search google: -->
+          <!-- with all of the words -->
+          <input type="text" value="" name="as_q" />
+          <xsl:text> </xsl:text>
+          <input type="submit" value="{$messages/message[@name='search']}" />
+
+          <!-- the specified number of results -->
+          <input type="hidden" name="num" value="10" />
+
+          <!-- the current displayed language -->
+          <input type="hidden" name="hl" value="{$messages/@lang}" />
+
+          <!-- the current document encoding for input (?) -->
+          <input type="hidden" name="ie" value="{$output-encoding}" />
+
+          <!-- (submit the original button and name) -->
+          <input type="hidden" name="btnG" value="Google Search" />
+
+          <!-- including the exact phrase "Apache 2.0" -->
+          <input type="hidden" value="Apache 2.0" name="as_epq" />
+
+          <!-- with at least one of the words (none) -->
+          <input type="hidden" value="" name="as_oq" />
+
+          <!-- without the phrase "List-Post" (to exclude the mail archives) -->
+          <input type="hidden" value="&quot;List-Post&quot;" name="as_eq" />
+
+          <!-- return results written in (any) language -->
+          <input type="hidden" name="lr" value="" />
+
+          <!-- and any format -->
+          <input type="hidden" name="as_ft" value="i" />
+          <input type="hidden" name="as_filetype" value="" />
+
+          <!-- updated anytime -->
+          <input type="hidden" name="as_qdr" value="all" />
+
+          <!-- where the result appears anywhere in the document -->
+          <input type="hidden" name="as_occt" value="any" />
+
+          <!-- only from httpd.apache.org -->
+          <input type="hidden" name="as_dt" value="i" />
+          <input type="hidden" name="as_sitesearch" value="httpd.apache.org" />
+
+          <!-- turn off "safe" mode -->
+          <input type="hidden" name="safe" value="off" />
           </p></form>
 
 <xsl:text>