aboutsummaryrefslogtreecommitdiffstats
path: root/english/search.xml.in
diff options
context:
space:
mode:
authorDavid Prévot <taffit>2012-04-06 23:41:13 +0000
committerDavid Prévot <taffit>2012-04-06 23:41:13 +0000
commit49dcf70be5c79a79f33b94673b8cf450a8283030 (patch)
tree0ba89f724e98ecad0f4f3093cc8042df426fd0be /english/search.xml.in
parent4c1286dd0dd389f83c294a1b171241c65b4e8ff8 (diff)
Add OpenSearch plugin, closes: #103975; also add a {#meta#} tag in headers
CVS version numbers english/Makefile: 1.93 -> 1.94 english/search.xml.in: INITIAL -> 1.1 english/po/Makefile: 1.93 -> 1.94 english/po/templates.pot: 1.70 -> 1.71 english/template/debian/basic.wml: 1.100 -> 1.101 french/po/templates.fr.po: 1.73 -> 1.74
Diffstat (limited to 'english/search.xml.in')
-rw-r--r--english/search.xml.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/english/search.xml.in b/english/search.xml.in
new file mode 100644
index 00000000000..d356b0c37d3
--- /dev/null
+++ b/english/search.xml.in
@@ -0,0 +1,15 @@
+#use wml::debian::common_tags
+
+<bind-gettext-domain domain="templates" />
+
+<suck><?xml version="1.0" encoding="UTF-8"?>
+<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
+ <ShortName><gettext domain="templates">Debian website</gettext> ($(CUR_ISO_LANG))</ShortName>
+ <Image height="16" width="16" type="image/x-icon">http://www.debian.org/favicon.ico</Image>
+ <Description><gettext domain="templates">Search the Debian website.</gettext></Description>
+<protect pass="2">
+ <Url type="text/html"
+</protect>
+<: my $ext = lc('$(CUR_ISO_LANG)'); $ext =~ s/-/_/;
+ print 'template="http://search.debian.org/cgi-bin/omega?P={searchTerms}&amp;HITSPERPAGE={count?}&amp;%5B={startPage}&amp;DB='.$ext.'[CN:-cn:][TW:-tw:][HK:-hk:]"/>'; :>
+</OpenSearchDescription>

© 2014-2024 Faster IT GmbH | imprint | privacy policy