Added automatic detection of translation to the english pages.

svn path=/trunk/; revision=1946
This commit is contained in:
jneves 2002-02-07 16:50:13 +00:00
parent 7f1e6fd0df
commit 20228a72a8
48 changed files with 21 additions and 414 deletions

View File

@ -34,7 +34,9 @@ XSLTOPTS = \
'$$fsf=$(FSF)' \
'$$gnu=$(GNU)'
ENPAGES = $(shell find * -path 'fr' -prune -o \( -regex '.*\.en\.xhtml' -o -regex '[^\.]*\.xhtml' \) -print | sed "s/xhtml$$/html/")
ENPAGESOLD = $(shell find * -path 'fr' -prune -o -regex '[^\.]*\.xhtml' -print | sed "s/xhtml$$/html/")
ENPAGES = $(shell find * -path 'fr' -prune -o -regex '.*\.en\.xhtml' -print | sed "s/xhtml$$/html/")
FRPAGES = $(shell find * -path 'fr' -prune -o -regex '.*\.fr\.xhtml' -print | sed "s/xhtml$$/html/")
@ -49,20 +51,32 @@ ESPAGES = $(shell find * -path 'fr' -prune -o -regex '.*\.es\.xhtml' -print | se
# temporary, added by mad@april.org
NEWS = news/news.fr.html news/news.en.html news/news.pt.html
all: $(ENPAGES) $(FRPAGES) $(DEPAGES) $(PTPAGES) $(ITPAGES) $(ESPAGES)
all: $(ENPAGESOLD) $(ENPAGES) $(FRPAGES) $(DEPAGES) $(PTPAGES) $(ITPAGES) $(ESPAGES)
swpat/patents.en.html: swpat/patents-agenda.en.xml
$(ENPAGES): %.html: %.xhtml fsfe.xsl navigation.en.xsl
$(ENPAGESOLD): %.html: %.xhtml fsfe.xsl navigation.en.xsl
@$(ECHO) "Building $@ ..."; \
path=$< ; \
base=`expr $$path : '\(.*\).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:/by/, s/\$$//g) if(/\$$''Date:/); s/mode: xml \*\*\*/mode: html \*\*\*/' > $$base.html) ; \
langlinks="`./tools/translate.sh $$base en`" ; \
$(XSLTPROC) fsfe.xsl $$path $(XSLTOPTS) '$$fsfeurope='$$root '$$filebase='$$filebase '$$path='$$path '$$langlinks='"$$langlinks" > $$base.html-temp && (cat $$base.html-temp | perl -p -e '$$| = 1; (s/Date://, s/Author:/by/, s/\$$//g) if(/\$$''Date:/); s/mode: xml \*\*\*/mode: html \*\*\*/' > $$base.html) ; \
rm -f $$base.html-temp
$(ENPAGES): %.html: %.xhtml fsfe.xsl navigation.en.xsl
@$(ECHO) "Building $@ ..."; \
path=$< ; \
base=`expr $$path : '\(.*\).en.xhtml'` ; \
filebase=`basename $$base` ; \
dir=`dirname $$path` ; \
root=`dirname $$path | perl -pe 'chop; s:([^/]+):..:g if($$_ ne ".")'` ; \
langlinks="`./tools/translate.sh $$base en`" ; \
$(XSLTPROC) fsfe.xsl $$path $(XSLTOPTS) '$$fsfeurope='$$root '$$filebase='$$filebase.en '$$path='$$path '$$langlinks='"$$langlinks" > $$base.en.html-temp && (cat $$base.en.html-temp | perl -p -e '$$| = 1; (s/Date://, s/Author:/by/, s/\$$//g) if(/\$$''Date:/); s/mode: xml \*\*\*/mode: html \*\*\*/' > $$base.en.html) ; \
rm -f $$base.en.html-temp
$(FRPAGES): %.html: %.xhtml fsfe.xsl navigation.fr.xsl
@$(ECHO) "Building $@ ..."; \
path=$< ; \

View File

@ -9,14 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
English |
<a href="about.pt.html">Português</a>
]
</center>
<!-- Begin page content -->
<blockquote>

View File

@ -9,16 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="background.de.html">Deutsch</a> |
English |
<a href="background.fr.html">Français</a> |
<a href="background.pt.html">Português</a>
]
</center>
<!-- Begin page content -->
<h2>Background</h2>

View File

@ -9,15 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="boilerplate.de.html">Deutsch</a> |
English |
<a href="boilerplate.fr.html">Français</a>
]
</center>
<!-- Begin page content -->
<p>This rocks</p>

View File

@ -9,16 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="contact.de.html">Deutsch</a> |
English |
<a href="contact.fr.html">Français</a> |
<a href="contact.pt.html">Português</a>
]
</center>
<!-- Begin page content -->
<h2>General Discussion</h2>

View File

@ -9,13 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please keep this list alphabetical -->
English | <a href="index.fr.html">French</a>
]
</center>
<blockquote>
<p>Here is a tool to visually represent the geographical

View File

@ -9,14 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="index.de.html">Deutsch</a> |
English
]
</center>
<!-- Begin page content -->
<center>
<h1>FSF Europe - Chapter Germany</h1>

View File

@ -9,14 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="speakers.de.html">Deutsch</a> |
English
]
</center>
<!-- Begin page content -->
<div align="center">
<h2>Speakers</h2>

View File

@ -9,16 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="documents.de.html">Deutsch</a> |
English |
<a href="documents.fr.html">Français</a> |
<a href="documents.pt.html">Português</a>
]
</center>
<!-- Begin page content -->
<div align="center">
<h2>Documents</h2>

View File

@ -9,16 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="doi.de.html">Deutsch</a> |
English |
<a href="doi.fr.html">Français</a> |
<a href="doi.pt.html">Português</a>
]
</center>
<!-- Begin page content -->
<div align="center">
<h2>Declaration of Intent - Free Software Foundation Europe</h2>

View File

@ -9,16 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="freesoftware.de.html">Deutsch</a> |
English |
<a href="freesoftware.fr.html">Français</a> |
<a href="freesoftware.pt.html">Português</a>
]
</center>
<!-- Begin page content -->
<div align="center">
<h2>What is Free Software?</h2>

View File

@ -9,16 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="gnuproject.de.html">Deutsch</a> |
English |
<a href="gnuproject.fr.html">Français</a> |
<a href="gnuproject.pt.html">Português</a>
]
</center>
<!-- Begin page content -->
<div align="center">
<h2>What is the GNU-Project?</h2>

View File

@ -9,16 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="preamble.de.html">Deutsch</a> |
English |
<a href="preamble.fr.html">Français</a> |
<a href="preamble.pt.html">Português</a>
]
</center>
<!-- Begin page content -->
<div align="center">
<h2>Preamble of the Free Software Foundation Europe</h2>

View File

@ -9,15 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="whatwedo.de.html">Deutsch</a> |
English |
<a href="whatwedo.pt.html">Português</a>
]
</center>
<!-- Begin page content -->
<div align="center">
<h2>What do we do?</h2>

View File

@ -9,15 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="whyfs-howto.de.html">Deutsch</a> |
English |
<a href="whyfs-howto.fr.html">Français</a>
]
</center>
<!-- Begin page content -->
<center><h2>We speak about Free Software</h2>

View File

@ -10,18 +10,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="whyfs.de.html">Deutsch</a> |
English |
<a href="whyfs.es.html">Español</a> |
<a href="whyfs.fr.html">Français</a> |
<a href="whyfs.it.html">Italiano</a> |
<a href="whyfs.pt.html">Português</a>
]
</center>
<!-- Begin page content -->
<center><h2>We speak about Free Software</h2></center>

View File

@ -9,15 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="whyweexist.de.html">Deutsch</a> |
English |
<a href="whyweexist.pt.html">Português</a>
]
</center>
<!-- Begin page content -->
<div align="center">
<h2>Why do we exist?</h2>

View File

@ -9,16 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="argumentation.de.html">Deutsch</a> |
English |
<a href="argumentation.fr.html">Français</a> <!--|
<a href="index.pt.html">Português</a> -->
]
</center>
<!-- Begin page content -->
<div align="center">
<h2>Why give precedence to Free Software at school?</h2>

View File

@ -9,16 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="education.de.html">Deutsch</a> |
English |
<a href="education.fr.html">Français</a> <!--|
<a href="index.pt.html">Português</a> -->
]
</center>
<!-- Begin page content -->
<div align="center">
<h2>Education</h2>

View File

@ -9,14 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="index.de.html">Deutsch</a> |
English
]
</center>
<!-- Begin page content -->
<h2>FSF Europe on the Systems 2001</h2>

View File

@ -9,14 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="index.de.html">Deutsch</a> |
English
]
</center>
<!-- Begin page content -->
<h1>FSF Europe on the Systems 2001</h1>

View File

@ -9,15 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please keep this list alphabetical -->
<a href="events.de.html">Deutsch</a> |
English |
<a href="events.fr.html">Français</a>
]
</center>
<center>
<h2>Future and planned events</h2>
</center>

View File

@ -9,15 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please keep this list alphabetical -->
<a href="passed-2001.de.html">Deutsch</a> |
English |
<a href="passed-2001.fr.html">Français</a>
]
</center>
<center>
<h2>Passed events</h2>
</center>

View File

@ -9,15 +9,6 @@
</head>
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
English |
<a href="eucd-fs.es.html">Español</a> |
<a href="eucd-fs.fr.html">Français</a> |
]
</center>
<!-- Begin page content -->
<h1>Copyright Extensions threaten Free Software in Europe</h1>

View File

@ -9,13 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
English
]
</center>
<!-- Begin page content -->
<h1>EUCD - Copyright extensions that harm</h1>

View File

@ -9,15 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<a href="index.de.html">Deutsch</a> |
English |
<a href="index.fr.html">Français</a> |
<a href="index.pt.html">Português</a>
]
</center>
<!-- Begin page content -->
<h2>GNU Business Network</h2>

View File

@ -9,15 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="donate.de.html">Deutsch</a> |
English |
<a href="donate.it.html">Italiano</a>
]
</center>
<!-- Begin page content -->
<h2>Donations to the FSF Europe</h2>

View File

@ -9,14 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="donate-2002.de.html">Deutsch</a> |
English
]
</center>
<!-- Begin page content -->
<h2>Donations to the FSF Europe</h2>

View File

@ -9,16 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="help.de.html">Deutsch</a> |
English |
<a href="help.it.html">Italiano</a> |
<a href="help.pt.html">Português</a>
]
</center>
<!-- Begin page content -->
<h2>How can you help us?</h2>

View File

@ -9,15 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="thankgnus-2001.de.html">Deutsch</a> |
English
<a href="thankgnus-2001.it.html">Italiano</a>
]
</center>
<!-- Begin page content -->
<center>
[

View File

@ -13,15 +13,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="thankgnus-2002.de.html">Deutsch</a> |
English |
<a href="thankgnus-2002.it.html">Italiano</a>
]
</center>
<!-- Begin page content -->
<center>
[

View File

@ -9,18 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="index.de.html">Deutsch</a> |
English |
<a href="index.es.html">Español</a> |
<a href="index.fr.html">Français</a> |
<a href="index.it.html">Italiano</a> |
<a href="index.pt.html">Português</a>
]
</center>
<!-- Begin page content -->
<center>
<h1>Free Software Foundation Europe</h1>

View File

@ -9,16 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="law.de.html">Deutsch</a> |
English |
<a href="law.fr.html">Français</a> |
<a href="law.pt.html">Português</a>
]
</center>
<!-- Begin page content -->
<div align="center">
<h2>Secure Free Software in Europe</h2>

View File

@ -9,16 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="index.de.html">Deutsch</a> |
English |
<a href="index.fr.html">Français</a> |
<a href="index.pt.html">Português</a>
]
</center>
<!-- Begin page content -->
<h2>About the Mailing Lists</h2>
<p>

View File

@ -48,6 +48,9 @@
<tr>
<td width="99%" valign="top">
<div class="content">
<center>
<xsl:value-of select="$langlinks" disable-output-escaping="yes"/>
</center>
<xsl:apply-templates select="@*|node()"/>
</div>
</td>

View File

@ -8,17 +8,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="article2001-08-23-01.de.html">Deutsch</a> |
English |
<a href="article2001-08-23-01.es.html">Español</a> |
<a href="article2001-08-23-01.fr.html">Français</a> |
<a href="article2001-08-23-01.it.html">Italian</a> |
<a href="article2001-08-23-01.pt.html">Português</a>
]
</center>
<p />
<blockquote>
<center><h2>Free Software Experts</h2></center>

View File

@ -8,13 +8,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="article2001-10-01-01.de.html">Deutsch</a> |
English
]
</center>
<p />
<blockquote>

View File

@ -8,16 +8,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="article2001-10-20-01.de.html">Deutsch</a> |
English |
<a href="article2001-10-20-01.es.html">Español</a> |
<a href="article2001-10-20-01.fr.html">Français</a> |
<a href="article2001-10-20-01.pt.html">Português</a>
]
</center>
<p />
<blockquote>
<center><h2>SourceForge drifting</h2></center>

View File

@ -8,13 +8,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
English |
<a href="article2001-10-26-01.es.html">Español</a>
]
</center>
<p />
<blockquote>
<center><h2>Free Software in Portugal</h2></center>

View File

@ -8,14 +8,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
English |
<a href="article2001-12-17-01.pt.html">Português</a>
]
</center>
<!-- Begin page content -->
<center>

View File

@ -8,16 +8,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
English |
<a href="article2002-01-18-01.es.html">Español</a> |
<a href="article2002-01-18-01.fr.html">Français</a> |
<a href="article2002-01-18-01.pt.html">Português</a>
]
</center>
<!-- Begin page content -->
<center>

View File

@ -9,13 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
English
]
</center>
<!-- Begin page content -->
<center>

View File

@ -9,16 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="news.de.html">Deutsch</a> |
English |
<a href="news.fr.html">Français</a> |
<a href="news.pt.html">Português</a>
]
</center>
<!-- Begin page content -->
<div align="center">

View File

@ -9,16 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="index.de.html">Deutsch</a> |
English |
<a href="index.fr.html">Français</a> |
<a href="index.pt.html">Português</a>
]
</center>
<!-- Begin page content -->
<h2>Press Contact</h2>

View File

@ -9,7 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<!-- Begin page content -->
<h2>WebAdministration</h2>

View File

@ -9,16 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
<a href="speakers.de.html">Deutsch</a> |
English |
<a href="speakers.fr.html">Français</a> <!--|
<a href="speakers.pt.html">Português</a> -->
]
</center>
<!-- Begin page content -->
<div align="center">
<h2>Speakers</h2>

View File

@ -10,13 +10,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
English
]
</center>
This agenda lists events that involve a relation between the
european or government officials and the european citizens on
the subject of Software Patents. It deliberatly omits events

View File

@ -9,13 +9,6 @@
<body>
<div> <!-- The header will be inserted here -->
<center>
[
<!-- Please update as needed and keep it in alphabetical order -->
English
]
</center>
<!-- Begin page content -->
<center><h2>Software Patents in Europe</h2></center>