aboutsummaryrefslogtreecommitdiff
path: root/xml/lingua.conf.in
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2014-05-08 14:26:32 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2014-05-08 14:26:32 +0300
commit24abd7afb6530620c4a80c14fdce96eead280ef7 (patch)
treee24267cc7747d94d9a38c424bdce7190a7c10673 /xml/lingua.conf.in
parent750e7ae3bafe9eec88887eb22b7250719028f6d6 (diff)
downloadellinika-24abd7afb6530620c4a80c14fdce96eead280ef7.tar.gz
ellinika-24abd7afb6530620c4a80c14fdce96eead280ef7.tar.bz2
Use Sphinx for searches.
* sphinx/index.php: New file. * sphinx/xmlindex: New file. * xml/lingua.conf.in: Use own search instead of Google. (install-srch): New macro. * xml/pl/ellinika.xml: Call (install-srch). Build search page template. * xml/ru/ellinika.xml: Likewise. * xml/uk/ellinika.xml: Likewise. * po/pl.po: Update. * po/ru.po: Update. * po/uk.po: Update.
Diffstat (limited to 'xml/lingua.conf.in')
-rw-r--r--xml/lingua.conf.in22
1 files changed, 12 insertions, 10 deletions
diff --git a/xml/lingua.conf.in b/xml/lingua.conf.in
index 66e62cb..d736bcb 100644
--- a/xml/lingua.conf.in
+++ b/xml/lingua.conf.in
@@ -11,22 +11,19 @@
<DICT PROG="dict.=SCRIPT_SUFFIX=" />
<BASE HREF="=BASE_HREF=" />
- <SEARCH ARGS="(list (lingua:gettext &quot;Search&quot;))">
+ <SEARCH ARGS="(list (lingua:gettext &quot;Search&quot;) (lingua:attr &quot;LINGUA&quot; &quot;LANG&quot;))">
<![CDATA[
<form method="get"
- action="http://www.google.com/custom"
+ action="/search"
enctype="application/x-www-form-urlencoded">
<div>
<label for="searchinput">
- ~A <img src="=TARGET_DIR=/graphics/google.png" alt="[Google]" width="75" height="32" />
- <input id="searchinput" type="text" size="30" maxlength="255" name="q" value="" />
- </label>
- <input type="hidden" name="cof" value="L:http://ellinika.gnu.org.ua/graphics/parthenon-gnu.png;LW:180;LH:140;T:black;ALC:#ff3300;LC:#000099;BGC:white;AH:left;VLC:#660066;GL:0;" />
-
- <input type="hidden" id="searchEllinika" name="sitesearch" checked="checked" value="ellinika.gnu.org.ua" />
- <input type="hidden" name="domains" value="ellinika.gnu.org.ua" />
+ ~A <input id="searchinput" type="text" size="30" maxlength="255" name="q" value="" />
+ </label>
+ <input type="hidden" id="searchlang" name="l" value="~A" />
</div>
- </form>]]>
+ </form>
+ ]]>
</SEARCH>
<GUILE>
<![CDATA[
@@ -53,6 +50,11 @@
(lingua:LANG args)))))
(xmltrans:set-attr "LINGUA" "CONJ" conj)))
+(define-macro (install-srch)
+ `(letrec ((srch (lambda (. args)
+ (string-append "/search?l=" (lingua:LANG args)))))
+ (xmltrans:set-attr "LINGUA" "SRCH" srch)))
+
(xmltrans:end-tag
"FOOTER"
(tag attr text)

Return to:

Send suggestions and report system problems to the System administrator.