diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-10-10 22:03:42 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-10-10 22:03:42 +0000 |
commit | aa3b80645e8b1d9df3136591aa95bacbe8fb1f8a (patch) | |
tree | bd34ecd211cb114521bd5fb2858b4614b5fbfa18 /xml | |
parent | 485dcd4e301771df4788ad4ada976703129ab49d (diff) | |
download | ellinika-aa3b80645e8b1d9df3136591aa95bacbe8fb1f8a.tar.gz ellinika-aa3b80645e8b1d9df3136591aa95bacbe8fb1f8a.tar.bz2 |
Add htdig framework
git-svn-id: file:///home/puszcza/svnroot/ellinika/trunk@469 941c8c0f-9102-463b-b60b-cd22ce0e6858
Diffstat (limited to 'xml')
-rw-r--r-- | xml/lingua.conf.in | 83 | ||||
-rw-r--r-- | xml/pl/ellinika.xml | 23 | ||||
-rw-r--r-- | xml/uk/ellinika.xml | 24 |
3 files changed, 125 insertions, 5 deletions
diff --git a/xml/lingua.conf.in b/xml/lingua.conf.in index 41ed693..3569f8a 100644 --- a/xml/lingua.conf.in +++ b/xml/lingua.conf.in | |||
@@ -12,13 +12,16 @@ | |||
12 | <SOUNDREF> | 12 | <SOUNDREF> |
13 | <![CDATA[ | 13 | <![CDATA[ |
14 | <img src="graphics/audio.png" width="16" height="16" alt="[ sound ]" />]]> | 14 | <img src="graphics/audio.png" width="16" height="16" alt="[ sound ]" />]]> |
15 | </SOUNDREF> | 15 | </SOUNDREF> |
16 | <SEARCH | ||
17 | ADD-INPUTS="config=ellinika.{@LANG},restrict=/{@LANG}/,lang={@LANG}" /> | ||
16 | <GUILE> | 18 | <GUILE> |
17 | <![CDATA[ | 19 | <![CDATA[ |
18 | (use-modules (xmltools xmltrans) | 20 | (use-modules (xmltools xmltrans) |
19 | (xmltools gamlet) | 21 | (xmltools gamlet) |
20 | (xmltrans lingua) | 22 | (xmltrans lingua) |
21 | (xmltools dict)) | 23 | (xmltools dict) |
24 | (ice-9 format)) | ||
22 | 25 | ||
23 | (define-macro (install-nea) | 26 | (define-macro (install-nea) |
24 | `(use-modules (xmltrans lingua) | 27 | `(use-modules (xmltrans lingua) |
@@ -29,7 +32,7 @@ | |||
29 | "/nea.=SCRIPT_SUFFIX=?LANG=" | 32 | "/nea.=SCRIPT_SUFFIX=?LANG=" |
30 | (lingua:LANG args))))) | 33 | (lingua:LANG args))))) |
31 | (xmltrans:set-attr "LINGUA" "NEA" nea))) | 34 | (xmltrans:set-attr "LINGUA" "NEA" nea))) |
32 | 35 | ||
33 | (xmltrans:end-tag | 36 | (xmltrans:end-tag |
34 | "KATHAREVUSA" | 37 | "KATHAREVUSA" |
35 | (tag attr text) | 38 | (tag attr text) |
@@ -59,7 +62,79 @@ | |||
59 | "news:permanent-article" | 62 | "news:permanent-article" |
60 | (tag attr text) | 63 | (tag attr text) |
61 | (list "<div class=\"permanent-article\">" text "</div>")) | 64 | (list "<div class=\"permanent-article\">" text "</div>")) |
62 | 65 | ||
66 | (xmltrans:end-tag | ||
67 | "htdig:nomatch" | ||
68 | (tag attr text) | ||
69 | (format #f | ||
70 | "<div class=\"htdig-result-header\"> | ||
71 | ~A | ||
72 | </div> | ||
73 | |||
74 | <div class=\"htdig-result-form\"> | ||
75 | <form method=\"get\" action=\"$(CGI)\"> | ||
76 | <input type=\"hidden\" name=\"exclude\" value=\"$&(EXCLUDE)\"> | ||
77 | ~A: $(METHOD) | ||
78 | ~A: $(FORMAT) | ||
79 | ~A: $(SORT) | ||
80 | <br> | ||
81 | ~A: | ||
82 | <input type=\"text\" size=\"30\" name=\"words\" value=\"$&(WORDS)\"> | ||
83 | <input type=\"submit\" value=\"~A\"> | ||
84 | ~{~A~} | ||
85 | </form> | ||
86 | </div>" | ||
87 | (lingua:gettext "No matches were found for '$&(LOGICAL_WORDS)'") | ||
88 | (lingua:gettext "Match") | ||
89 | (lingua:gettext "Format") | ||
90 | (lingua:gettext "Sort by") | ||
91 | (lingua:gettext "New search") | ||
92 | (lingua:gettext "Search") | ||
93 | (lingua:expand-additional-inputs | ||
94 | (xmltrans:tag-attributes "LINGUA") | ||
95 | (lingua:attr "SEARCH" "ADD-INPUTS")))) | ||
96 | |||
97 | (xmltrans:end-tag | ||
98 | "htdig:body" | ||
99 | (tag attr text) | ||
100 | (format #f | ||
101 | "<div class=\"htdig-result-form\"> | ||
102 | <form method=\"get\" action=\"$(CGI)\"> | ||
103 | <input type=\"hidden\" name=\"exclude\" value=\"$&(EXCLUDE)\"> | ||
104 | ~A: $(METHOD) | ||
105 | ~A: $(FORMAT) | ||
106 | ~A: $(SORT) | ||
107 | <br> | ||
108 | ~A: | ||
109 | <input type=\"text\" size=\"30\" name=\"words\" value=\"$&(WORDS)\"> | ||
110 | <input type=\"submit\" value=\"~A\"> | ||
111 | ~{~A~} | ||
112 | </form> | ||
113 | </div> | ||
114 | |||
115 | <div class=\"htdig-result-header\"> | ||
116 | ~A | ||
117 | ~A | ||
118 | </div> | ||
119 | |||
120 | <div class=\"htdig-result-list\"> | ||
121 | $(HTSEARCH_RESULTS) | ||
122 | $(PAGEHEADER) | ||
123 | $(PREVPAGE) $(PAGELIST) $(NEXTPAGE) | ||
124 | </div>" | ||
125 | (lingua:gettext "Match") | ||
126 | (lingua:gettext "Format") | ||
127 | (lingua:gettext "Sort by") | ||
128 | (lingua:gettext "New search") | ||
129 | (lingua:gettext "Search") | ||
130 | (lingua:expand-additional-inputs | ||
131 | (xmltrans:tag-attributes "LINGUA") | ||
132 | (lingua:attr "SEARCH" "ADD-INPUTS")) | ||
133 | (lingua:gettext "Documents $(FIRSTDISPLAYED) - $(LASTDISPLAYED) of $(MATCHES) matches.") | ||
134 | (format #f | ||
135 | (lingua:gettext "More ~A's indicate a better match.") | ||
136 | "<img src=\"/htdig/star.gif\" alt=\"*\">"))) | ||
137 | |||
63 | (gamlet:set-handler "INFO" | 138 | (gamlet:set-handler "INFO" |
64 | (lambda (. args) | 139 | (lambda (. args) |
65 | (display "<ul class=\"menu\">") | 140 | (display "<ul class=\"menu\">") |
diff --git a/xml/pl/ellinika.xml b/xml/pl/ellinika.xml index ea1e3e3..6925957 100644 --- a/xml/pl/ellinika.xml +++ b/xml/pl/ellinika.xml | |||
@@ -22,6 +22,17 @@ | |||
22 | <MSGSTR ID="Next Page">Następna strona</MSGSTR> | 22 | <MSGSTR ID="Next Page">Następna strona</MSGSTR> |
23 | <MSGSTR ID="Top of the Page">Początek strony</MSGSTR> | 23 | <MSGSTR ID="Top of the Page">Początek strony</MSGSTR> |
24 | <MSGSTR ID="This page in other languages">Ta strona w innych językach</MSGSTR> | 24 | <MSGSTR ID="This page in other languages">Ta strona w innych językach</MSGSTR> |
25 | <MSGSTR ID="Search">Szukaj</MSGSTR> | ||
26 | <MSGSTR ID="Match">Dopasowanie</MSGSTR> | ||
27 | <MSGSTR ID="Format">Format</MSGSTR> | ||
28 | <MSGSTR ID="Sort by">Sortuj</MSGSTR> | ||
29 | <MSGSTR ID="New search">Nowy wzorzec</MSGSTR> | ||
30 | <MSGSTR ID="Documents $(FIRSTDISPLAYED) - $(LASTDISPLAYED) of $(MATCHES) matches."> | ||
31 | Wyniki $(FIRSTDISPLAYED) - $(LASTDISPLAYED) z $(MATCHES). | ||
32 | </MSGSTR> | ||
33 | <MSGSTR ID="More ~A's indicate a better match."> | ||
34 | Im więcej gwiazdek (~A), tym lepiej pasuje wzorzec. | ||
35 | </MSGSTR> | ||
25 | </LOCALIZATION> | 36 | </LOCALIZATION> |
26 | 37 | ||
27 | <COPYRIGHT> | 38 | <COPYRIGHT> |
@@ -110,13 +121,23 @@ this notice is preserved.</PARA> | |||
110 | <PAGE PREFIX="map" HEADER="Mapa witryny"> | 121 | <PAGE PREFIX="map" HEADER="Mapa witryny"> |
111 | {SITEMAP} | 122 | {SITEMAP} |
112 | </PAGE> | 123 | </PAGE> |
124 | <ITEM>SEARCH</ITEM> | ||
113 | </GROUP> | 125 | </GROUP> |
114 | 126 | ||
115 | <GROUP TITLE="permalink" HIDDEN="1"> | 127 | <GROUP TITLE="permalink" HIDDEN="1"> |
116 | <PAGE PREFIX="monima" HEADER="@@title@@" REF="NEA"> | 128 | <PAGE PREFIX="monima" HEADER="@@title@@" REF="NEA" ROBOTS="index,nofollow"> |
117 | <PARA>@@article-date@@</PARA> | 129 | <PARA>@@article-date@@</PARA> |
118 | <news:permanent-article>@@article-text@@</news:permanent-article> | 130 | <news:permanent-article>@@article-text@@</news:permanent-article> |
119 | </PAGE> | 131 | </PAGE> |
132 | |||
133 | <PAGE PREFIX="htdig" HIDDEN="1"> | ||
134 | <HEADER>Wyniki wyszukiwania "$&(WORDS)"</HEADER> | ||
135 | <htdig:body /> | ||
136 | </PAGE> | ||
137 | <PAGE PREFIX="nomatch" HIDDEN="1"> | ||
138 | <HEADER>Wyniki wyszukiwania "$&(WORDS)"</HEADER> | ||
139 | <htdig:nomatch /> | ||
140 | </PAGE> | ||
120 | </GROUP> | 141 | </GROUP> |
121 | 142 | ||
122 | </LINGUA> | 143 | </LINGUA> |
diff --git a/xml/uk/ellinika.xml b/xml/uk/ellinika.xml index b8ef25d..38e7e3a 100644 --- a/xml/uk/ellinika.xml +++ b/xml/uk/ellinika.xml | |||
@@ -22,6 +22,20 @@ | |||
22 | <MSGSTR ID="Next Page">Наступна сторінка</MSGSTR> | 22 | <MSGSTR ID="Next Page">Наступна сторінка</MSGSTR> |
23 | <MSGSTR ID="Top of the Page">Початок сторінки</MSGSTR> | 23 | <MSGSTR ID="Top of the Page">Початок сторінки</MSGSTR> |
24 | <MSGSTR ID="This page in other languages">Ця сторінка іншими мовами</MSGSTR> | 24 | <MSGSTR ID="This page in other languages">Ця сторінка іншими мовами</MSGSTR> |
25 | <MSGSTR ID="Search">Пошук</MSGSTR> | ||
26 | <MSGSTR ID="Match">Шукати</MSGSTR> | ||
27 | <MSGSTR ID="Format">Формат</MSGSTR> | ||
28 | <MSGSTR ID="Sort by">Сортировка</MSGSTR> | ||
29 | <MSGSTR ID="New search">Новий пошук</MSGSTR> | ||
30 | <MSGSTR ID="Documents $(FIRSTDISPLAYED) - $(LASTDISPLAYED) of $(MATCHES) matches."> | ||
31 | Сторінки $(FIRSTDISPLAYED) - $(LASTDISPLAYED) з $(MATCHES). | ||
32 | </MSGSTR> | ||
33 | <MSGSTR ID="More ~A's indicate a better match."> | ||
34 | Кількість ~A зірок відповідає ступеню збігу. | ||
35 | </MSGSTR> | ||
36 | <MSGSTR ID="No matches were found for '$&(LOGICAL_WORDS)'"> | ||
37 | |||
38 | </MSGSTR> | ||
25 | </LOCALIZATION> | 39 | </LOCALIZATION> |
26 | 40 | ||
27 | <COPYRIGHT> | 41 | <COPYRIGHT> |
@@ -110,6 +124,7 @@ this notice is preserved.</PARA> | |||
110 | <PAGE PREFIX="map" HEADER="Мапа сайту"> | 124 | <PAGE PREFIX="map" HEADER="Мапа сайту"> |
111 | {SITEMAP} | 125 | {SITEMAP} |
112 | </PAGE> | 126 | </PAGE> |
127 | <ITEM>SEARCH</ITEM> | ||
113 | </GROUP> | 128 | </GROUP> |
114 | 129 | ||
115 | <GROUP TITLE="permalink" HIDDEN="1"> | 130 | <GROUP TITLE="permalink" HIDDEN="1"> |
@@ -117,6 +132,15 @@ this notice is preserved.</PARA> | |||
117 | <PARA>@@article-date@@</PARA> | 132 | <PARA>@@article-date@@</PARA> |
118 | <news:permanent-article>@@article-text@@</news:permanent-article> | 133 | <news:permanent-article>@@article-text@@</news:permanent-article> |
119 | </PAGE> | 134 | </PAGE> |
135 | |||
136 | <PAGE PREFIX="htdig" HIDDEN="1"> | ||
137 | <HEADER>Результати пошуку "$&(WORDS)"</HEADER> | ||
138 | <htdig:body /> | ||
139 | </PAGE> | ||
140 | <PAGE PREFIX="nomatch" HIDDEN="1"> | ||
141 | <HEADER>Результати пошуку "$&(WORDS)"</HEADER> | ||
142 | <htdig:nomatch /> | ||
143 | </PAGE> | ||
120 | </GROUP> | 144 | </GROUP> |
121 | 145 | ||
122 | </LINGUA> | 146 | </LINGUA>< |