aboutsummaryrefslogtreecommitdiff
path: root/xml
diff options
context:
space:
mode:
Diffstat (limited to 'xml')
-rw-r--r--xml/Makefile.am25
-rw-r--r--xml/lingua.conf.in25
-rw-r--r--xml/pl/ellinika.xml7
-rw-r--r--xml/ru/ellinika.xml6
-rw-r--r--xml/uk/ellinika.xml6
5 files changed, 57 insertions, 12 deletions
diff --git a/xml/Makefile.am b/xml/Makefile.am
index ccb5d01..356c334 100644
--- a/xml/Makefile.am
+++ b/xml/Makefile.am
@@ -21,13 +21,24 @@ CLEANFILES=conf.sed
noinst_DATA= lingua.conf
conf.sed: Makefile
- echo 's,=TMPDIR=,$(top_builddir)/../tmp,' > conf.sed
- echo 's,=OUTDIR=,$(top_builddir)/../html,' >> conf.sed
- echo 's,=TARGET_DIR=,$(TARGET_DIR),' >> conf.sed
- echo 's,=SCRIPT_SUFFIX=,$(SCRIPT_SUFFIX),' >> conf.sed
- echo 's,=SCRIPT_DIR=,$(SCRIPT_DIR),' >> conf.sed
- echo 's,=BASE_HREF=,$(BASE_HREF),' >> conf.sed
- echo 's,=PACKAGE_BUGREPORT=,$(PACKAGE_BUGREPORT),' >> conf.sed
+ echo 's,=TMPDIR=,$(top_builddir)/../tmp,g' > conf.sed
+ echo 's,=OUTDIR=,$(top_builddir)/../html,g' >> conf.sed
+ echo 's,=TARGET_DIR=,$(TARGET_DIR),g' >> conf.sed
+ echo 's,=SCRIPT_SUFFIX=,$(SCRIPT_SUFFIX),g' >> conf.sed
+ echo 's,=SCRIPT_DIR=,$(SCRIPT_DIR),g' >> conf.sed
+ echo 's,=BASE_HREF=,$(BASE_HREF),g' >> conf.sed
+ echo 's,=PACKAGE_BUGREPORT=,$(PACKAGE_BUGREPORT),g' >> conf.sed
+ echo 's,=PROD_URL=,$(PROD_URL),g' >> conf.sed
+ echo 's,=EXP_URL=,$(EXP_URL),g' >> conf.sed
+ if test "$(STATE)" = "EXP"; then \
+ echo 's,=IFEXP=,,' >> conf.sed; \
+ echo 's,=END IFEXP=,,' >> conf.sed; \
+ echo '/=IFPROD=/,/=END IFPROD=/d' >> conf.sed; \
+ else \
+ echo 's,=IFPROD=,,' >> conf.sed; \
+ echo 's,=END IFPROD=,,' >> conf.sed; \
+ echo '/=IFEXP=/,/=END IFEXP=/d' >> conf.sed; \
+ fi
lingua.conf: $(srcdir)/lingua.conf.in conf.sed
sed -f conf.sed $(srcdir)/lingua.conf.in > $@
diff --git a/xml/lingua.conf.in b/xml/lingua.conf.in
index 9ea3534..3cace9a 100644
--- a/xml/lingua.conf.in
+++ b/xml/lingua.conf.in
@@ -8,7 +8,7 @@
<DIRECTORY SOUND="=TARGET_DIR=/sound" />
<AUTHOR EMAIL="=PACKAGE_BUGREPORT=" HOMEPAGE="http://gray.gnu.org.ua" />
-
+
<DICT PROG="dict.=SCRIPT_SUFFIX=" />
<BASE HREF="=BASE_HREF=" />
<SEARCH ARGS="(list (lingua:gettext &quot;Search&quot;))">
@@ -30,10 +30,7 @@
</SEARCH>
<GUILE>
<![CDATA[
-(use-modules (xmltools xmltrans)
- (xmltools gamlet)
- (xmltrans lingua)
- (xmltools dict)
+(use-modules (xmltools dict)
(ice-9 format))
(define-macro (install-nea)
@@ -46,6 +43,17 @@
(lingua:LANG args)))))
(xmltrans:set-attr "LINGUA" "NEA" nea)))
+ (xmltrans:end-tag
+ "IFEXP"
+ (tag attr text)
+=IFEXP=
+ text
+=END IFEXP=
+=IFPROD=
+ #f
+=END IFPROD=
+ )
+
(xmltrans:end-tag
"FOOTER"
(tag attr text)
@@ -74,6 +82,8 @@ this notice is preserved.</p>\n"
"</div>"
))
+
+(lingua:tag-ignore EL:WARNING)
(xmltrans:end-tag
"KATHAREVUSA"
@@ -105,6 +115,11 @@ this notice is preserved.</p>\n"
(tag attr text)
(list "<div class=\"permanent-article\">" text "</div>"))
+(gamlet:set-handler "THIS-REF"
+ (lambda (. args)
+ (display "http://ellinika.gnu.org.ua/")
+ (display (gamlet:current-output-file-name))))
+
(gamlet:set-handler "INFO"
(lambda (. args)
(display "<ul class=\"menu\">")
diff --git a/xml/pl/ellinika.xml b/xml/pl/ellinika.xml
index 9e3e6af..fc7e3a0 100644
--- a/xml/pl/ellinika.xml
+++ b/xml/pl/ellinika.xml
@@ -24,6 +24,13 @@
<MSGSTR ID="Search">Szukaj</MSGSTR>
</LOCALIZATION>
+<WARNING>
+ <IFEXP>
+ <PARA>Uwaga! To jest wersja eksperymentalna. Wersję stabilną
+ znajdziesz <XREF LIT="{THIS-REF}">tutaj</XREF>.</PARA>
+ </IFEXP>
+</WARNING>
+
<COPYRIGHT>
<FOOTER VCS-ID="$Id$">
Copyright <![CDATA[&copy;]]> 2004, 2005, 2006, 2007, 2010 Sergey Poznyakoff
diff --git a/xml/ru/ellinika.xml b/xml/ru/ellinika.xml
index 60866eb..76e8a82 100644
--- a/xml/ru/ellinika.xml
+++ b/xml/ru/ellinika.xml
@@ -24,6 +24,12 @@
<MSGSTR ID="Search">Поиск</MSGSTR>
</LOCALIZATION>
+<WARNING>
+ <IFEXP>
+ <PARA>Предупреждение! Это - экспериментальная версия. Официальная версия <XREF LIT="{THIS-REF}">тут</XREF>.</PARA>
+ </IFEXP>
+</WARNING>
+
<COPYRIGHT>
<FOOTER VCS-ID="$Id$">
Copyright <![CDATA[&copy;]]> 2004, 2005, 2006, 2007, 2010 Sergey Poznyakoff
diff --git a/xml/uk/ellinika.xml b/xml/uk/ellinika.xml
index 2e79899..d5b4218 100644
--- a/xml/uk/ellinika.xml
+++ b/xml/uk/ellinika.xml
@@ -24,6 +24,12 @@
<MSGSTR ID="Search">Пошук</MSGSTR>
</LOCALIZATION>
+<WARNING>
+ <IFEXP>
+ <PARA>Увага! Це експериментальна версія сайту. Офіційна версія <XREF LIT="{THIS-REF}">тут</XREF>.</PARA>
+ </IFEXP>
+</WARNING>
+
<COPYRIGHT>
<FOOTER VCS-ID="$Id$">
Copyright <![CDATA[&copy;]]> 2004, 2005, 2006, 2007, 2010 Sergey Poznyakoff

Return to:

Send suggestions and report system problems to the System administrator.