Browse Source

- donors quotes, cleaning up and translations

svn path=/branches/test/; revision=22344
pull/8/head
nicoulas 9 years ago
parent
commit
bb44aabd28
35 changed files with 341 additions and 121 deletions
  1. +2
    -1
      index.ar.xhtml
  2. +2
    -1
      index.bg.xhtml
  3. +2
    -1
      index.ca.xhtml
  4. +2
    -1
      index.cs.xhtml
  5. +2
    -1
      index.da.xhtml
  6. +6
    -31
      index.de.xhtml
  7. +5
    -2
      index.el.xhtml
  8. +3
    -2
      index.en.xhtml
  9. +6
    -2
      index.es.xhtml
  10. +2
    -1
      index.et.xhtml
  11. +2
    -1
      index.fi.xhtml
  12. +6
    -2
      index.fr.xhtml
  13. +2
    -1
      index.hr.xhtml
  14. +2
    -1
      index.hu.xhtml
  15. +5
    -2
      index.it.xhtml
  16. +2
    -1
      index.ku.xhtml
  17. +2
    -1
      index.mk.xhtml
  18. +2
    -1
      index.nb.xhtml
  19. +6
    -2
      index.nl.xhtml
  20. +2
    -1
      index.nn.xhtml
  21. +6
    -2
      index.pl.xhtml
  22. +2
    -1
      index.pt.xhtml
  23. +2
    -1
      index.ro.xhtml
  24. +2
    -1
      index.ru.xhtml
  25. +4
    -2
      index.sk.xhtml
  26. +2
    -1
      index.sl.xhtml
  27. +2
    -1
      index.sq.xhtml
  28. +2
    -1
      index.sr.xhtml
  29. +2
    -1
      index.sv.xhtml
  30. +2
    -1
      index.tr.xhtml
  31. +7
    -52
      index.xsl
  32. +26
    -1
      tools/texts-content-de.xml
  33. +42
    -0
      tools/texts-content-en.xml
  34. +132
    -0
      tools/xsltsl/quotes.xsl
  35. +45
    -0
      tools/xsltsl/translations.xsl

+ 2
- 1
index.ar.xhtml View File

@ -6,7 +6,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Ask your candidates</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">


+ 2
- 1
index.bg.xhtml View File

@ -7,7 +7,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Ask your candidates</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">


+ 2
- 1
index.ca.xhtml View File

@ -7,7 +7,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Ask your candidates</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">


+ 2
- 1
index.cs.xhtml View File

@ -6,7 +6,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Ask your candidates</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">


+ 2
- 1
index.da.xhtml View File

@ -11,7 +11,8 @@
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Stil spørgsmål til dine kandidater</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">


+ 6
- 31
index.de.xhtml View File

@ -7,18 +7,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<div id="cb1-back">
<first-quote/>
</div>
<div id="cb1-front">
<!-- -->
</div>
<a href="/donate/letter-2011.html">
<label-ourwork2011/>
</a>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">
@ -27,8 +17,11 @@
</div>
<div id="campaign-box-4">
<p><campaign4-label /> <a href="http://www.fsf.org/campaigns/secure-boot-vs-restricted-boot/statement"><campaign4link-label/></a></p>
<p>
<campaign4-label /> <a href="/campaigns/ilovefs/ilovefs.html"><campaign4link-label /></a>
</p>
</div>
</div>
<div id="feeds">
@ -70,24 +63,6 @@
</div>
</div>
</body>
<text>
<quote>
<photo>http://test.fsfe.org/donate/linuxhotel-reinhard-wiesemann.jpg</photo>
<text>Eine virtuelle Welt ohne Freie Software ist wie eine Stadt, in der man für jeden Bürgersteig eine Benutzungslizenz benötigt. Wir brauchen auch Allgemeingut in der virtuellen Welt.</text>
<guy>Reinhard Wiesemann - Linuxhotel</guy>
</quote>
<quote>
<photo>http://test.fsfe.org/donate/ganten08-e.png</photo>
<text>Freie Software ist das stabile Fundament unserer Unternehmenslösungen, die FSFE leistet einen wichtigen Beitrag zur Sicherung dieses Fundaments. Deswegen unterstützen wir die FSFE.</text>
<guy>Peter Ganten - Univention</guy>
</quote>
<quote>
<photo>http://test.fsfe.org/donate/inmedias-carsten-brunke.jpg</photo>
<text>Sinnvolles Lifecyclemanagement statt herstellerbestimmte Produktzyklen; Integration über Systemgrenzen hinweg statt Vendor-Lock-in; Einblick in die Sourcen statt Aktivierungspflicht - Freie Software erlaubt uns als Systemhaus, unsere Kunden von Zwängen, die nur den Softwareherstellern nützen, zu befreien.</text>
<guy>Carsten Brunke - Inmedias.it</guy>
</quote>
</text>
<timestamp>$Date$ $Author$</timestamp>
</html>


+ 5
- 2
index.el.xhtml View File

@ -8,7 +8,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Ask your candidates</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">
@ -17,7 +18,9 @@
</div>
<div id="campaign-box-4">
<p><campaign4-label /> <a href="http://www.fsf.org/campaigns/secure-boot-vs-restricted-boot/statement"><campaign4link-label/></a></p>
<p>
<campaign4-label /> <a href="/campaigns/ilovefs/ilovefs.html"><campaign4link-label/></a>
</p>
</div>
</div>


+ 3
- 2
index.en.xhtml View File

@ -10,7 +10,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Ask your candidates</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">
@ -20,7 +21,7 @@
<div id="campaign-box-4">
<p>
<campaign4-label /> <a href="http://www.fsf.org/campaigns/secure-boot-vs-restricted-boot/statement"><campaign4link-label /></a>
<campaign4-label /> <a href="/campaigns/ilovefs/ilovefs.html"><campaign4link-label /></a>
</p>
</div>
</div>


+ 6
- 2
index.es.xhtml View File

@ -7,7 +7,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Ask your candidates</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">
@ -16,8 +17,11 @@
</div>
<div id="campaign-box-4">
<p><campaign4-label /> <a href="http://www.fsf.org/campaigns/secure-boot-vs-restricted-boot/statement"><campaign4link-label/></a></p>
<p>
<campaign4-label /> <a href="/campaigns/ilovefs/ilovefs.html"><campaign4link-label /></a>
</p>
</div>
</div>
<div id="feeds">


+ 2
- 1
index.et.xhtml View File

@ -10,7 +10,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Küsi oma kandidaadilt</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">


+ 2
- 1
index.fi.xhtml View File

@ -11,7 +11,8 @@
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Kysy ehdokkailtasi</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">


+ 6
- 2
index.fr.xhtml View File

@ -7,7 +7,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Demandez à vos candidats</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">
@ -16,8 +17,11 @@
</div>
<div id="campaign-box-4">
<p><campaign4-label /> <a href="http://www.fsf.org/campaigns/secure-boot-vs-restricted-boot/statement"><campaign4link-label/></a></p>
<p>
<campaign4-label /> <a href="/campaigns/ilovefs/ilovefs.html"><campaign4link-label /></a>
</p>
</div>
</div>
<div id="feeds">


+ 2
- 1
index.hr.xhtml View File

@ -10,7 +10,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Pitajte svoje kandidate</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">


+ 2
- 1
index.hu.xhtml View File

@ -7,7 +7,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Ask your candidates</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">


+ 5
- 2
index.it.xhtml View File

@ -7,7 +7,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Chiedi ai tuoi candidati</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">
@ -16,7 +17,9 @@
</div>
<div id="campaign-box-4">
<p><campaign4-label /> <a href="http://www.fsf.org/campaigns/secure-boot-vs-restricted-boot/statement"><campaign4link-label /></a></p>
<p>
<campaign4-label /> <a href="/campaigns/ilovefs/ilovefs.html"><campaign4link-label /></a>
</p>
</div>
</div>


+ 2
- 1
index.ku.xhtml View File

@ -7,7 +7,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Ask your candidates</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">


+ 2
- 1
index.mk.xhtml View File

@ -7,7 +7,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Ask your candidates</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">


+ 2
- 1
index.nb.xhtml View File

@ -7,7 +7,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Ask your candidates</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">


+ 6
- 2
index.nl.xhtml View File

@ -7,7 +7,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Ask your candidates</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">
@ -16,8 +17,11 @@
</div>
<div id="campaign-box-4">
<p><campaign4-label /> <a href="http://www.fsf.org/campaigns/secure-boot-vs-restricted-boot/statement"><campaign4link-label/></a></p>
<p>
<campaign4-label /> <a href="/campaigns/ilovefs/ilovefs.html"><campaign4link-label /></a>
</p>
</div>
</div>
<div id="feeds">


+ 2
- 1
index.nn.xhtml View File

@ -7,7 +7,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Ask your candidates</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">


+ 6
- 2
index.pl.xhtml View File

@ -7,7 +7,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Ask your candidates</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">
@ -16,8 +17,11 @@
</div>
<div id="campaign-box-4">
<p><campaign4-label /> <a href="http://www.fsf.org/campaigns/secure-boot-vs-restricted-boot/statement"><campaign4link-label/></a></p>
<p>
<campaign4-label /> <a href="/campaigns/ilovefs/ilovefs.html"><campaign4link-label /></a>
</p>
</div>
</div>
<div id="feeds">


+ 2
- 1
index.pt.xhtml View File

@ -7,7 +7,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Ask your candidates</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">


+ 2
- 1
index.ro.xhtml View File

@ -7,7 +7,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Ask your candidates</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">


+ 2
- 1
index.ru.xhtml View File

@ -7,7 +7,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Спроси своих кандидатов</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">


+ 4
- 2
index.sk.xhtml View File

@ -2,12 +2,13 @@
<html>
<head>
<title>Európska nadácia pre slobodný softvér - FSFE</title>
<title>Free Software Foundation Europe - FSFE</title>
</head>
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Ask your candidates</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">
@ -61,6 +62,7 @@
</body>
<timestamp>$Date$ $Author$</timestamp>
<translator>Martin Husovec</translator>
</html>
<!--
Local Variables: ***


+ 2
- 1
index.sl.xhtml View File

@ -7,7 +7,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Ask your candidates</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">


+ 2
- 1
index.sq.xhtml View File

@ -7,7 +7,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Ask your candidates</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">


+ 2
- 1
index.sr.xhtml View File

@ -7,7 +7,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Ask your candidates</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">


+ 2
- 1
index.sv.xhtml View File

@ -7,7 +7,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Ask your candidates</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">


+ 2
- 1
index.tr.xhtml View File

@ -7,7 +7,8 @@
<body>
<div id="campaigns-boxes">
<div id="campaign-box-1">
<h3><a href="/campaigns/askyourcandidates/askyourcandidates.html">Ask your candidates</a></h3>
<quote-box tag="donors" />
<a href="/donate/letter-2011.html"><label-ourwork2011/></a>
</div>
<div id="campaign-box-2">


+ 7
- 52
index.xsl View File

@ -9,6 +9,7 @@
<xsl:import href="tools/xsltsl/tagging.xsl" />
<xsl:import href="tools/xsltsl/translations.xsl" />
<xsl:import href="tools/xsltsl/static-elements.xsl" />
<xsl:import href="tools/xsltsl/quotes.xsl" />
<xsl:output method="xml" encoding="UTF-8" indent="yes" />
@ -18,63 +19,17 @@
</xsl:template>
<xsl:template match="/html/body">
<script type="text/javascript">
var quotes = [
<xsl:for-each select="/html/text/quote">
{
'img': "<xsl:value-of select="photo"/>",
'txt': "<xsl:value-of select="text"/>",
'guy': "<xsl:value-of select="guy"/>"
},
</xsl:for-each>
];
var index = 0;
function changeImage () {
var oldIndex = index;
index = (index+1)%quotes.length;
var newContent =
"&lt;img src='"+quotes[index]['img']+"' /&gt;" +
"&lt;p&gt;"+quotes[index]['txt']+"&lt;br/&gt;"+
"&lt;strong&gt;"+quotes[index]['guy']+"&lt;/strong&gt;&lt;/p&gt;";
$('#cb1-front').html($('#cb1-back').html());
$('#cb1-front').fadeIn(0);
$('#cb1-back').fadeOut(0);
$('#cb1-back').html(newContent);
$('#cb1-front').fadeOut('slow', function() {
$('#cb1-back').fadeIn('slow', function() {});
});
setTimeout("changeImage();",10000);
}
setTimeout("changeImage();",10000);
</script>
<xsl:copy>
<div id="frontpage">
<xsl:apply-templates />
<xsl:apply-templates />
</div>
</xsl:copy>
</xsl:template>
<xsl:template match="first-quote">
<xsl:for-each select="/html/text/quote">
<xsl:if test="position() = 1">
<xsl:element name="img">
<xsl:attribute name="src"><xsl:value-of select="photo"/></xsl:attribute>
</xsl:element>
<p><xsl:value-of select="text"/><br/><strong><xsl:value-of select="guy"/></strong></p>
</xsl:if>
</xsl:for-each>
<xsl:template match="quote-box">
<xsl:call-template name="quote-box">
<xsl:with-param name="tag" select="@tag" />
</xsl:call-template>
</xsl:template>
<xsl:template match="label-ourwork2011">
@ -135,7 +90,7 @@
<xsl:template match="campaign-box-3">
<xsl:element name="a">
<xsl:attribute name="href">/campaigns/valentine/2011/valentine-2011<xsl:value-of select="/buildinfo/@language" />.html</xsl:attribute>
<xsl:attribute name="href">/campaigns/ilovefs/ilovefs<xsl:value-of select="/buildinfo/@language" />.html</xsl:attribute>
<xsl:variable name="lang" select="/buildinfo/@language" />


+ 26
- 1
tools/texts-content-de.xml View File

@ -18,14 +18,39 @@
<text id="contact">Kontakt</text>
<text id="donate">Spenden</text>
<!-- Restricted Boot
<text id="campaign4">Treten Sie für Ihr Recht ein, Freie Software zu installieren und</text>
<text id="campaign4link">unterzeichnen Sie unser Statement gegen <q>Restricted Boot</q>.</text>
-->
<text id="campaign4">Am 14. Februar: </text>
<text id="campaign4link">Zeigen Sie Ihre Liebe zu Freier Software!</text>
<text id="join">Beitreten</text>
<text id="subscribe">Eintragen</text>
<!-- alt text for missing avatars -->
<text id="no-avatar">Kein Bild</text>
<!-- quotes to be displayed in a rotating box -->
<quotes>
<quote id="brunke" tag="donors">
<photo>/donate/inmedias-carsten-brunke.jpg</photo>
<txt>Sinnvolles Lifecyclemanagement statt herstellerbestimmte Produktzyklen; Integration über Systemgrenzen hinweg statt Vendor-Lock-in; Einblick in die Sourcen statt Aktivierungspflicht - Freie Software erlaubt uns als Systemhaus, unsere Kunden von Zwängen, die nur den Softwareherstellern nützen, zu befreien.</txt>
<author>Carsten Brunke - Inmedias.it</author>
</quote>
<quote id="wiesemann" tag="donors">
<photo>/donate/linuxhotel-reinhard-wiesemann.jpg</photo>
<txt>Eine virtuelle Welt ohne Freie Software ist wie eine Stadt, in der man für jeden Bürgersteig eine Benutzungslizenz benötigt. Wir brauchen auch Allgemeingut in der virtuellen Welt.</txt>
<author>Reinhard Wiesemann - Linuxhotel</author>
</quote>
<quote id="ganten" tag="donors">
<photo>/donate/ganten08.JPG</photo>
<txt>Freie Software ist das stabile Fundament unserer Unternehmenslösungen, die FSFE leistet einen wichtigen Beitrag zur Sicherung dieses Fundaments. Deswegen unterstützen wir die FSFE.</txt>
<author>Peter Ganten - Univention</author>
</quote>
</quotes>
</textset-content>

+ 42
- 0
tools/texts-content-en.xml View File

@ -20,8 +20,15 @@
<text id="microblog">Microblog</text>
<text id="donate">Donate</text>
<!-- Restricted boot box
<text id="campaign4">Stand up for your freedom to install Free Software,</text>
<text id="campaign4link">sign our statement against Restricted Boot</text>
-->
<text id="campaign4">On February 14th: </text>
<text id="campaign4link">Show your love to Free Software!</text>
<text id="join">Join</text>
<text id="ourwork2011">Our work in 2011</text>
@ -29,5 +36,40 @@
<!-- alt text for missing avatars -->
<text id="no-avatar">No Picture</text>
<!-- quotes to be displayed in a rotating box -->
<quotes>
<quote id="brunke" tag="donors">
<photo>/donate/inmedias-carsten-brunke.jpg</photo>
<txt>
Reasonable Lifecyclemanagement instead of product cycles, being
determined by the manufacturer; integration across systems and
borders instead of vendor lock-in; insight into the sources instead
of mandatory activation - As a systems house, Free Software
allows us to liberate our costumers from constraints that only
benefit the manufacturer itself.
</txt>
<author>Carsten Brunke - Inmedias.it</author>
</quote>
<quote id="wiesemann" tag="donors">
<photo>/donate/linuxhotel-reinhard-wiesemann.jpg</photo>
<txt>
A virtual world without Free Software is like a city in which you are
obliged to have a usage license for every pavement. We also need
commons in the virtual world.
</txt>
<author>Reinhard Wiesemann - Linuxhotel</author>
</quote>
<quote id="ganten" tag="donors">
<photo>/donate/ganten08.JPG</photo>
<txt>
Free Software is the solid grounding of our enterprise
solutions. The FSFE provides an important contribution to secure this
grounding, therefore we support the FSFE.
</txt>
<author>Peter Ganten - Univention</author>
</quote>
</quotes>
</textset-content>

+ 132
- 0
tools/xsltsl/quotes.xsl View File

@ -0,0 +1,132 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="translations.xsl" />
<xsl:output method="xml" encoding="UTF-8" indent="yes" />
<xsl:template name="quote-box">
<xsl:param name="tag" select="''"/> <!-- if left empty, all quotes will be selected -->
<div id="cb1-back">
<xsl:call-template name="first-quote">
<xsl:with-param name="tag" select="$tag" />
</xsl:call-template>
</div>
<div id="cb1-front">
<!-- -->
</div>
<!-- javascript code for rotating quotes -->
<script type="text/javascript">
var quotes = [
<xsl:choose>
<xsl:when test="/html/set/textset-content/quotes/quote[@tag=$tag or $tag='']">
<xsl:call-template name="get-js-quotes">
<xsl:with-param name="quotes-xpath" select="/html/set/textset-content/quotes/quote[@tag=$tag or $tag='']" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="get-js-quotes">
<xsl:with-param name="quotes-xpath" select="/html/set/textset-content/quotes/quote[@tag=$tag or $tag='']" />
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
];
var index = 0;
function changeImage () {
var oldIndex = index;
index = (index+1)%quotes.length;
var newContent =
"&lt;img src='"+quotes[index]['photo']+"' /&gt;" +
"&lt;p&gt;"+quotes[index]['text']+"&lt;br/&gt;"+
"&lt;strong&gt;"+quotes[index]['author']+"&lt;/strong&gt;&lt;/p&gt;";
$('#cb1-front').html($('#cb1-back').html());
$('#cb1-front').fadeIn(0);
$('#cb1-back').fadeOut(0);
$('#cb1-back').html(newContent);
$('#cb1-front').fadeOut('slow', function() {
$('#cb1-back').fadeIn('slow', function() {});
});
setTimeout("changeImage();",10000);
}
setTimeout("changeImage();",10000);
</script>
</xsl:template>
<xsl:template name="get-js-quotes">
<xsl:param name="quotes-xpath" />
<xsl:for-each select="$quotes-xpath">
{
'photo': "<xsl:call-template name="get-quote-photo"><xsl:with-param name="id" select="@id" /></xsl:call-template>",
'text': "<xsl:call-template name="get-quote-text"><xsl:with-param name="id" select="@id" /></xsl:call-template>",
'author': "<xsl:call-template name="get-quote-author"><xsl:with-param name="id" select="@id" /></xsl:call-template>"
},
</xsl:for-each>
</xsl:template>
<xsl:template name="first-quote">
<xsl:param name="tag" />
<xsl:choose>
<xsl:when test="/html/set/textset-content/quotes/quote[@tag=$tag or $tag='']">
<xsl:call-template name="display-first-quote">
<xsl:with-param name="quotes-xpath" select="/html/set/textset-content/quotes/quote[@tag=$tag or $tag='']" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise >
<xsl:call-template name="display-first-quote">
<xsl:with-param name="quotes-xpath" select="/html/set/textset-content-backup/quotes/quote[@tag=$tag or $tag='']" />
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="display-first-quote">
<xsl:param name="quotes-xpath" />
<xsl:for-each select="$quotes-xpath">
<xsl:if test="position() = 1">
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:call-template name="get-quote-photo">
<xsl:with-param name="id" select="@id" />
</xsl:call-template>
</xsl:attribute>
</xsl:element>
<p>
<xsl:call-template name="get-quote-text">
<xsl:with-param name="id" select="@id" />
</xsl:call-template>
<br/>
<strong>
<xsl:call-template name="get-quote-author">
<xsl:with-param name="id" select="@id" />
</xsl:call-template>
</strong>
</p>
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>

+ 45
- 0
tools/xsltsl/translations.xsl View File

@ -28,5 +28,50 @@
/html/set/textset-content-backup/text[ @id=$id and not(@id=/html/set/textset-content/text/@id) ]"/>
</xsl:template>
<!-- this template is to be called to get the text of _quotes_ contained in "tools/texts-xx.xml" files -->
<xsl:template name="get-quote-text">
<xsl:param name="id" />
<xsl:choose>
<xsl:when test="/html/set/textset-content/quotes/quote[@id=$id]/txt">
<xsl:apply-templates select="/html/set/textset-content/quotes/quote[@id=$id]/txt" />
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="/html/set/textset-content-backup/quotes/quote[@id=$id]/txt" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- this template is to be called to get the image of _quotes_ contained in "tools/texts-xx.xml" files -->
<xsl:template name="get-quote-photo">
<xsl:param name="id" />
<xsl:choose>
<xsl:when test="/html/set/textset-content/quotes/quote[@id=$id]/photo">
<xsl:apply-templates select="/html/set/textset-content/quotes/quote[@id=$id]/photo" />
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="/html/set/textset-content-backup/quotes/quote[@id=$id]/photo" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- this template is to be called to get the author's nam of _quotes_ contained in "tools/texts-xx.xml" files -->
<xsl:template name="get-quote-author">
<xsl:param name="id" />
<xsl:choose>
<xsl:when test="/html/set/textset-content/quotes/quote[@id=$id]/author">
<xsl:apply-templates select="/html/set/textset-content/quotes/quote[@id=$id]/author" />
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="/html/set/textset-content-backup/quotes/quote[@id=$id]/author" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>

Loading…
Cancel
Save