From 7c0d7b10d0f6eef79c32b43461b65b5fffbd0df4 Mon Sep 17 00:00:00 2001 From: hhanke Date: Mon, 8 Apr 2002 23:14:25 +0000 Subject: [PATCH] I've linked the Czech translation and corrected some minor bugs in the Czech version. svn path=/trunk/; revision=2023 --- Makefile | 17 ++++++++++++++-- boilerplate.cs.html | 49 ++++++++++++++++++++++++++++++--------------- fsfe.xsl | 1 + index.cs.xhtml | 10 ++++----- navigation.cs.xsl | 2 +- tools/translate.sh | 12 +++++++++++ 6 files changed, 67 insertions(+), 24 deletions(-) diff --git a/Makefile b/Makefile index 819c2d8636..1db986ce82 100644 --- a/Makefile +++ b/Makefile @@ -48,12 +48,14 @@ ITPAGES = $(shell find * -path 'fr' -prune -o -regex '.*\.it\.xhtml' -print | se ESPAGES = $(shell find * -path 'fr' -prune -o -regex '.*\.es\.xhtml' -print | sed "s/xhtml$$/html/") +CSPAGES = $(shell find * -path 'fr' -prune -o -regex '.*\.cs\.xhtml' -print | sed "s/xhtml$$/html/") + LANGFILES = $(shell find * -path 'fr' -prune -o -regex '.*\.lang' -print) # temporary, added by mad@april.org NEWS = news/news.fr.html news/news.en.html news/news.pt.html -all: $(ENPAGESOLD) $(ENPAGES) $(FRPAGES) $(DEPAGES) $(PTPAGES) $(ITPAGES) $(ESPAGES) +all: $(ENPAGESOLD) $(ENPAGES) $(FRPAGES) $(DEPAGES) $(PTPAGES) $(ITPAGES) $(ESPAGES) $(CSPAGES) swpat/patents.en.html: swpat/patents-agenda.en.xml @@ -134,6 +136,17 @@ $(ESPAGES): %.es.html: %.es.xhtml fsfe.xsl navigation.es.xsl %.lang $(XSLTPROC) fsfe.xsl $$path $(XSLTOPTS) '$$fsfeurope='$$root '$$filebase='$$filebase.es '$$path='$$path '$$langlinks='"$$langlinks" > $$base.es.html-temp && (cat $$base.es.html-temp | perl -p -e '$$| = 1; (s/Date://, s/Author:/por/, s/\$$//g) if(/\$$''Date:/); s/mode: xml \*\*\*/mode: html \*\*\*/' > $$base.es.html) ; \ rm -f $$base.es.html-temp +$(CSPAGES): %.cs.html: %.cs.xhtml fsfe.xsl navigation.cs.xsl %.lang + @$(ECHO) "Building $@ ..."; \ + path=$< ; \ + base=`expr $$path : '\(.*\).cs.xhtml'` ; \ + filebase=`basename $$base` ; \ + dir=`dirname $$path` ; \ + root=`dirname $$path | perl -pe 'chop; s:([^/]+):..:g if($$_ ne ".")'` ;\ + langlinks="`./tools/translate.sh $$base cs`" ; \ + $(XSLTPROC) fsfe.xsl $$path $(XSLTOPTS) '$$fsfeurope='$$root '$$filebase='$$filebase.cs '$$path='$$path '$$langlinks='"$$langlinks" > $$base.cs.html-temp && (cat $$base.cs.html-temp | perl -p -e '$$| = 1; (s/Date://, s/Author:/od/, s/\$$//g) if(/\$$''Date:/); s/mode: xml \*\*\*/mode: html \*\*\*/' > $$base.cs.html) ; \ + rm -f $$base.cs.html-temp + %lang: @$(ECHO) "Building $@ ..."; \ path=$@ ; \ @@ -143,7 +156,7 @@ $(ESPAGES): %.es.html: %.es.xhtml fsfe.xsl navigation.es.xsl %.lang # remove html files for which an xhtml version exists (exclude fr/) clean: - rm -f $(ENPAGES) $(FRPAGES) $(DEPAGES) $(PTPAGES) $(ITPAGES) $(ESPAGES) $(LANGFILES) + rm -f $(ENPAGES) $(FRPAGES) $(DEPAGES) $(PTPAGES) $(ITPAGES) $(ESPAGES) $(CSPAGES) $(LANGFILES) sync: $(SSH) -l www france.fsfeurope.org 'cd fsfe ; cvs -z3 -q update -I "*.html" -d ; ../bin/nightly' diff --git a/boilerplate.cs.html b/boilerplate.cs.html index d4afc41542..303d2d54cd 100644 --- a/boilerplate.cs.html +++ b/boilerplate.cs.html @@ -1,31 +1,48 @@ - - + - - FSF Europe - Šablona + + FSF Europe - Šablona - + + DO NOT MODIFY THIS DOCUMENT. IT WAS GENERATED BY XSLT PROCESSING + AND YOUR MODIFICATIONS WILL BE LOST. THE SOURCE OF THE DOCUMENT + IS IN THE .xhtml FILE USE make all TO REGENERATE + + --> + +
+    + FSF EvropaFSF +   |   + GNU +   |   + GNU Španělsko
+  Francie | + Něměcko +
FSFE Logo
[ Cesky | Deutsch | English | Español | Français | Italiano | Português ]
-

Zde je umístěn obsah

+

Zde text...

-
+
 
Projekty
Ochrana Svobodného software
Coposys
Mluvíme o svobodném software
Svobodný software a vzdělávání
Sekce

Hlavní stránka
Kontakty
O nás
Nápověda
Přispějte
Poděkování
Souvislosti
Dokumenty
Emailové konference
Novinky
Události
Pro tisk
Mluvčí
Obchodní síť GNU
fan articles

Přidružené organizace
ANSOL
APRIL
AsSoLi
FFS
OFSET
Admin

O projektu
Průvodce GNU
Úlohy

XHTML zdroj  | +   XSL stylesheet  | Změny
+  webmaster@fsfeurope.org
+ Copyright (C) 2001 FSF Europe
+ Doslovné kopírování a distribuce tohoto dokumentu jsou povoleny + na jakémkoliv médiu za předpokladu, že bude zachováno toto upozornění. +
 
- Last update: + Poslední aktualizace: - $Date: 2002-02-21 19:50:43 $ $Author: hhanke $ + od - - +--> \ No newline at end of file diff --git a/fsfe.xsl b/fsfe.xsl index f602cafb1d..162788ff85 100644 --- a/fsfe.xsl +++ b/fsfe.xsl @@ -47,6 +47,7 @@ + diff --git a/index.cs.xhtml b/index.cs.xhtml index 964a0a6a80..1a2377de44 100644 --- a/index.cs.xhtml +++ b/index.cs.xhtml @@ -16,19 +16,19 @@ @@ -144,7 +144,7 @@ - Last update: + Poslední aktualizace: $Date$ $Author$ diff --git a/navigation.cs.xsl b/navigation.cs.xsl index 390e7588ce..97da23e854 100644 --- a/navigation.cs.xsl +++ b/navigation.cs.xsl @@ -4,7 +4,7 @@ - + diff --git a/tools/translate.sh b/tools/translate.sh index 61329c5b3b..c6192eb4fd 100644 --- a/tools/translate.sh +++ b/tools/translate.sh @@ -16,7 +16,19 @@ fi # Create the string to be included in the webpage. BASENAME=`basename $BASE` + SEPARATOR="[ " +if [ "`echo $LANGS | grep cs`" != "" ]; then + RESULT="$RESULT""$SEPARATOR" + if [ "$LANGUAGE" != "cs" ]; then + RESULT="$RESULT""" + fi + RESULT="$RESULT""Cesky" + if [ "$LANGUAGE" != "cs" ]; then + RESULT="$RESULT""" + fi + SEPARATOR=" | " +fi if [ "`echo $LANGS | grep de`" != "" ]; then RESULT="$RESULT""$SEPARATOR" if [ "$LANGUAGE" != "de" ]; then