Added automatic detection of translation to the french pages.

svn path=/trunk/; revision=1945
This commit is contained in:
jneves
2002-02-07 16:18:53 +00:00
parent 51c27b2b9c
commit 7f1e6fd0df
29 changed files with 7 additions and 274 deletions

View File

@@ -66,12 +66,13 @@ $(ENPAGES): %.html: %.xhtml fsfe.xsl navigation.en.xsl
$(FRPAGES): %.html: %.xhtml fsfe.xsl navigation.fr.xsl
@$(ECHO) "Building $@ ..."; \
path=$< ; \
base=`expr $$path : '\(.*\).xhtml'` ; \
base=`expr $$path : '\(.*\).fr.xhtml'` ; \
filebase=`basename $$base` ; \
dir=`dirname $$path` ; \
root=`dirname $$path | perl -pe 'chop; s:([^/]+):..:g if($$_ ne ".")'` ; \
$(XSLTPROC) fsfe.xsl $$path $(XSLTOPTS) '$$fsfeurope='$$root '$$filebase='$$filebase '$$path='$$path > $$base.html-temp && (cat $$base.html-temp | perl -p -e '$$| = 1; (s/Date://, s/Author:/par/, s/\$$//g) if(/\$$''Date:/); s/mode: xml \*\*\*/mode: html \*\*\*/' > $$base.html) ; \
rm -f $$base.html-temp
langlinks="`./tools/translate.sh $$base fr`" ; \
$(XSLTPROC) fsfe.xsl $$path $(XSLTOPTS) '$$fsfeurope='$$root '$$filebase='$$filebase.fr '$$path='$$path '$$langlinks='"$$langlinks" > $$base.fr.html-temp && (cat $$base.fr.html-temp | perl -p -e '$$| = 1; (s/Date://, s/Author:/par/, s/\$$//g) if(/\$$''Date:/); s/mode: xml \*\*\*/mode: html \*\*\*/' > $$base.fr.html) ; \
rm -f $$base.fr.html-temp
$(DEPAGES): %.html: %.xhtml fsfe.xsl navigation.de.xsl
@$(ECHO) "Building $@ ..."; \