switch to XSL-based generation of displaying sponsoring buttons

This commit is contained in:
Max Mehl 2019-02-21 14:21:18 +01:00
parent 752ea1d37d
commit 00e4585b64
Signed by: max.mehl
GPG Key ID: 2704E4AB371E2E92
6 changed files with 145 additions and 290 deletions

View File

@ -9,7 +9,9 @@ Where outputdir is the name of a directory where the files will be generated. If
Make sure that button_template.svg is available when you run the script.
The script will also generate xhtml chunks for inclusion in the sponsoring.xhtml file. You can find the xhtml code in the output directory (file: xhtml) after running the script. To be provided with correct path names in the xhtml output it is recommended to run the script from the directory containing "sponsoring.xhtml".
(DEPRECATED: The script will also generate xhtml chunks for inclusion in the sponsoring.xhtml file. You can find the xhtml code in the output directory (file: xhtml) after running the script. To be provided with correct path names in the xhtml output it is recommended to run the script from the directory containing "sponsoring.xhtml".)
After running the script, open the file about/graphics/sponsoring/sponsoring-buttons.en.xml and add the new year. You don't need to edit sponsoring.en.xhtml or translated files, but it might need a full site rebuild or a fake update to have the website updated.
Note:
generate-all.sh and sponsoring_buttons.svg are DEPRECATED.

View File

@ -0,0 +1,38 @@
<yearset>
<year id="2019">
<button type="Donor" />
<button type="BronzeDonor" />
<button type="SilverDonor" />
<button type="GoldDonor" />
</year>
<year id="2018">
<button type="Donor" />
<button type="BronzeDonor" />
<button type="SilverDonor" />
<button type="GoldDonor" />
</year>
<year id="2017">
<button type="Donor" />
<button type="BronzeDonor" />
<button type="SilverDonor" />
<button type="GoldDonor" />
</year>
<year id="2016">
<button type="Donor" />
<button type="BronzeDonor" />
<button type="SilverDonor" />
<button type="GoldDonor" />
</year>
<year id="2015">
<button type="Donor" />
<button type="BronzeDonor" />
<button type="SilverDonor" />
<button type="GoldDonor" />
</year>
<year id="2014">
<button type="Donor" />
<button type="BronzeDonor" />
<button type="SilverDonor" />
<button type="GoldDonor" />
</year>
</yearset>

View File

@ -16,295 +16,7 @@
advertise their contribution to the Free Software Foundation
Europe.</p>
<h2>2018 Buttons</h2>
<h3>Donor 2018</h3>
<p class="indent">
<img src="2018/Donor2018_w_medium.png" border="0" alt="Donor 2018 button"/><br />
white background:
[<a href="2018/Donor2018_w_huge.png">huge; png; 45kb</a>]
[<a href="2018/Donor2018_w_large.png">large; png; 29kb</a>]
[<a href="2018/Donor2018_w_medium.png">medium; png; 14kb</a>]
[<a href="2018/Donor2018_w_small.png">small; png; 9kb</a>]
transparent background:
[<a href="2018/Donor2018_t_huge.png">huge; png; 44kb</a>]
[<a href="2018/Donor2018_t_large.png">large; png; 28kb</a>]
[<a href="2018/Donor2018_t_medium.png">medium; png; 14kb</a>]
[<a href="2018/Donor2018_t_small.png">small; png; 9kb</a>]
</p>
<h3>BronzeDonor 2018</h3>
<p class="indent">
<img src="2018/BronzeDonor2018_w_medium.png" border="0" alt="BronzeDonor 2018 button"/><br />
white background:
[<a href="2018/BronzeDonor2018_w_huge.png">huge; png; 49kb</a>]
[<a href="2018/BronzeDonor2018_w_large.png">large; png; 32kb</a>]
[<a href="2018/BronzeDonor2018_w_medium.png">medium; png; 15kb</a>]
[<a href="2018/BronzeDonor2018_w_small.png">small; png; 10kb</a>]
transparent background:
[<a href="2018/BronzeDonor2018_t_huge.png">huge; png; 48kb</a>]
[<a href="2018/BronzeDonor2018_t_large.png">large; png; 31kb</a>]
[<a href="2018/BronzeDonor2018_t_medium.png">medium; png; 15kb</a>]
[<a href="2018/BronzeDonor2018_t_small.png">small; png; 10kb</a>]
</p>
<h3>SilverDonor 2018</h3>
<p class="indent">
<img src="2018/SilverDonor2018_w_medium.png" border="0" alt="SilverDonor 2018 button"/><br />
white background:
[<a href="2018/SilverDonor2018_w_huge.png">huge; png; 49kb</a>]
[<a href="2018/SilverDonor2018_w_large.png">large; png; 31kb</a>]
[<a href="2018/SilverDonor2018_w_medium.png">medium; png; 15kb</a>]
[<a href="2018/SilverDonor2018_w_small.png">small; png; 10kb</a>]
transparent background:
[<a href="2018/SilverDonor2018_t_huge.png">huge; png; 48kb</a>]
[<a href="2018/SilverDonor2018_t_large.png">large; png; 31kb</a>]
[<a href="2018/SilverDonor2018_t_medium.png">medium; png; 15kb</a>]
[<a href="2018/SilverDonor2018_t_small.png">small; png; 9kb</a>]
</p>
<h3>GoldDonor 2018</h3>
<p class="indent">
<img src="2018/GoldDonor2018_w_medium.png" border="0" alt="GoldDonor 2018 button"/><br />
white background:
[<a href="2018/GoldDonor2018_w_huge.png">huge; png; 48kb</a>]
[<a href="2018/GoldDonor2018_w_large.png">large; png; 31kb</a>]
[<a href="2018/GoldDonor2018_w_medium.png">medium; png; 15kb</a>]
[<a href="2018/GoldDonor2018_w_small.png">small; png; 10kb</a>]
transparent background:
[<a href="2018/GoldDonor2018_t_huge.png">huge; png; 47kb</a>]
[<a href="2018/GoldDonor2018_t_large.png">large; png; 31kb</a>]
[<a href="2018/GoldDonor2018_t_medium.png">medium; png; 15kb</a>]
[<a href="2018/GoldDonor2018_t_small.png">small; png; 9kb</a>]
</p>
<h2>2017 Buttons</h2>
<h3>Donor 2017</h3>
<p class="indent">
<img src="2017/Donor2017_w_medium.png" border="0" alt="Donor 2017 button"/><br />
white background:
[<a href="2017/Donor2017_w_huge.png">huge; png; 44kb</a>]
[<a href="2017/Donor2017_w_large.png">large; png; 28kb</a>]
[<a href="2017/Donor2017_w_medium.png">medium; png; 14kb</a>]
[<a href="2017/Donor2017_w_small.png">small; png; 9kb</a>]
transparent background:
[<a href="2017/Donor2017_t_huge.png">huge; png; 38kb</a>]
[<a href="2017/Donor2017_t_large.png">large; png; 24kb</a>]
[<a href="2017/Donor2017_t_medium.png">medium; png; 11kb</a>]
[<a href="2017/Donor2017_t_small.png">small; png; 7kb</a>]
</p>
<h3>BronzeDonor 2017</h3>
<p class="indent">
<img src="2017/BronzeDonor2017_w_medium.png" border="0" alt="BronzeDonor 2017 button"/><br />
white background:
[<a href="2017/BronzeDonor2017_w_huge.png">huge; png; 48kb</a>]
[<a href="2017/BronzeDonor2017_w_large.png">large; png; 31kb</a>]
[<a href="2017/BronzeDonor2017_w_medium.png">medium; png; 15kb</a>]
[<a href="2017/BronzeDonor2017_w_small.png">small; png; 10kb</a>]
transparent background:
[<a href="2017/BronzeDonor2017_t_huge.png">huge; png; 42kb</a>]
[<a href="2017/BronzeDonor2017_t_large.png">large; png; 26kb</a>]
[<a href="2017/BronzeDonor2017_t_medium.png">medium; png; 13kb</a>]
[<a href="2017/BronzeDonor2017_t_small.png">small; png; 8kb</a>]
</p>
<h3>SilverDonor 2017</h3>
<p class="indent">
<img src="2017/SilverDonor2017_w_medium.png" border="0" alt="SilverDonor 2017 button"/><br />
white background:
[<a href="2017/SilverDonor2017_w_huge.png">huge; png; 48kb</a>]
[<a href="2017/SilverDonor2017_w_large.png">large; png; 31kb</a>]
[<a href="2017/SilverDonor2017_w_medium.png">medium; png; 15kb</a>]
[<a href="2017/SilverDonor2017_w_small.png">small; png; 10kb</a>]
transparent background:
[<a href="2017/SilverDonor2017_t_huge.png">huge; png; 41kb</a>]
[<a href="2017/SilverDonor2017_t_large.png">large; png; 26kb</a>]
[<a href="2017/SilverDonor2017_t_medium.png">medium; png; 13kb</a>]
[<a href="2017/SilverDonor2017_t_small.png">small; png; 8kb</a>]
</p>
<h3>GoldDonor 2017</h3>
<p class="indent">
<img src="2017/GoldDonor2017_w_medium.png" border="0" alt="GoldDonor 2017 button"/><br />
white background:
[<a href="2017/GoldDonor2017_w_huge.png">huge; png; 47kb</a>]
[<a href="2017/GoldDonor2017_w_large.png">large; png; 30kb</a>]
[<a href="2017/GoldDonor2017_w_medium.png">medium; png; 15kb</a>]
[<a href="2017/GoldDonor2017_w_small.png">small; png; 9kb</a>]
transparent background:
[<a href="2017/GoldDonor2017_t_huge.png">huge; png; 41kb</a>]
[<a href="2017/GoldDonor2017_t_large.png">large; png; 26kb</a>]
[<a href="2017/GoldDonor2017_t_medium.png">medium; png; 13kb</a>]
[<a href="2017/GoldDonor2017_t_small.png">small; png; 8kb</a>]
</p>
<h2>2016 Buttons</h2>
<h3>Donor 2016</h3>
<p class="indent">
<img src="2016/Donor2016_w_medium.png" border="0" alt="Donor 2016 button"/><br />
white background:
[<a href="2016/Donor2016_w_huge.png">huge; png; 45kb</a>]
[<a href="2016/Donor2016_w_large.png">large; png; 29kb</a>]
[<a href="2016/Donor2016_w_medium.png">medium; png; 14kb</a>]
[<a href="2016/Donor2016_w_small.png">small; png; 9kb</a>]
transparent background:
[<a href="2016/Donor2016_t_huge.png">huge; png; 44kb</a>]
[<a href="2016/Donor2016_t_large.png">large; png; 28kb</a>]
[<a href="2016/Donor2016_t_medium.png">medium; png; 14kb</a>]
[<a href="2016/Donor2016_t_small.png">small; png; 9kb</a>]
</p>
<h3>BronzeDonor 2016</h3>
<p class="indent">
<img src="2016/BronzeDonor2016_w_medium.png" border="0" alt="BronzeDonor 2016 button"/><br />
white background:
[<a href="2016/BronzeDonor2016_w_huge.png">huge; png; 49kb</a>]
[<a href="2016/BronzeDonor2016_w_large.png">large; png; 32kb</a>]
[<a href="2016/BronzeDonor2016_w_medium.png">medium; png; 15kb</a>]
[<a href="2016/BronzeDonor2016_w_small.png">small; png; 10kb</a>]
transparent background:
[<a href="2016/BronzeDonor2016_t_huge.png">huge; png; 48kb</a>]
[<a href="2016/BronzeDonor2016_t_large.png">large; png; 31kb</a>]
[<a href="2016/BronzeDonor2016_t_medium.png">medium; png; 15kb</a>]
[<a href="2016/BronzeDonor2016_t_small.png">small; png; 10kb</a>]
</p>
<h3>SilverDonor 2016</h3>
<p class="indent">
<img src="2016/SilverDonor2016_w_medium.png" border="0" alt="SilverDonor 2016 button"/><br />
white background:
[<a href="2016/SilverDonor2016_w_huge.png">huge; png; 49kb</a>]
[<a href="2016/SilverDonor2016_w_large.png">large; png; 31kb</a>]
[<a href="2016/SilverDonor2016_w_medium.png">medium; png; 15kb</a>]
[<a href="2016/SilverDonor2016_w_small.png">small; png; 10kb</a>]
transparent background:
[<a href="2016/SilverDonor2016_t_huge.png">huge; png; 48kb</a>]
[<a href="2016/SilverDonor2016_t_large.png">large; png; 31kb</a>]
[<a href="2016/SilverDonor2016_t_medium.png">medium; png; 15kb</a>]
[<a href="2016/SilverDonor2016_t_small.png">small; png; 9kb</a>]
</p>
<h3>GoldDonor 2016</h3>
<p class="indent">
<img src="2016/GoldDonor2016_w_medium.png" border="0" alt="GoldDonor 2016 button"/><br />
white background:
[<a href="2016/GoldDonor2016_w_huge.png">huge; png; 48kb</a>]
[<a href="2016/GoldDonor2016_w_large.png">large; png; 31kb</a>]
[<a href="2016/GoldDonor2016_w_medium.png">medium; png; 15kb</a>]
[<a href="2016/GoldDonor2016_w_small.png">small; png; 10kb</a>]
transparent background:
[<a href="2016/GoldDonor2016_t_huge.png">huge; png; 47kb</a>]
[<a href="2016/GoldDonor2016_t_large.png">large; png; 31kb</a>]
[<a href="2016/GoldDonor2016_t_medium.png">medium; png; 15kb</a>]
[<a href="2016/GoldDonor2016_t_small.png">small; png; 9kb</a>]
</p>
<h2>2015 Buttons</h2>
<h3>Donor 2015</h3>
<p class="indent">
<img src="2015/Donor2015_w_medium.png" border="0" alt="Donor 2015 button"/><br />
white background:
[<a href="2015/Donor2015_w_huge.png">huge; png; 45kb</a>]
[<a href="2015/Donor2015_w_large.png">large; png; 29kb</a>]
[<a href="2015/Donor2015_w_medium.png">medium; png; 14kb</a>]
[<a href="2015/Donor2015_w_small.png">small; png; 9kb</a>]
transparent background:
[<a href="2015/Donor2015_t_huge.png">huge; png; 38kb</a>]
[<a href="2015/Donor2015_t_large.png">large; png; 24kb</a>]
[<a href="2015/Donor2015_t_medium.png">medium; png; 12kb</a>]
[<a href="2015/Donor2015_t_small.png">small; png; 7kb</a>]
</p>
<h3>BronzeDonor 2015</h3>
<p class="indent">
<img src="2015/BronzeDonor2015_w_medium.png" border="0" alt="BronzeDonor 2015 button"/><br />
white background:
[<a href="2015/BronzeDonor2015_w_huge.png">huge; png; 49kb</a>]
[<a href="2015/BronzeDonor2015_w_large.png">large; png; 31kb</a>]
[<a href="2015/BronzeDonor2015_w_medium.png">medium; png; 15kb</a>]
[<a href="2015/BronzeDonor2015_w_small.png">small; png; 10kb</a>]
transparent background:
[<a href="2015/BronzeDonor2015_t_huge.png">huge; png; 42kb</a>]
[<a href="2015/BronzeDonor2015_t_large.png">large; png; 26kb</a>]
[<a href="2015/BronzeDonor2015_t_medium.png">medium; png; 13kb</a>]
[<a href="2015/BronzeDonor2015_t_small.png">small; png; 8kb</a>]
</p>
<h3>SilverDonor 2015</h3>
<p class="indent">
<img src="2015/SilverDonor2015_w_medium.png" border="0" alt="SilverDonor 2015 button"/><br />
white background:
[<a href="2015/SilverDonor2015_w_huge.png">huge; png; 48kb</a>]
[<a href="2015/SilverDonor2015_w_large.png">large; png; 31kb</a>]
[<a href="2015/SilverDonor2015_w_medium.png">medium; png; 15kb</a>]
[<a href="2015/SilverDonor2015_w_small.png">small; png; 10kb</a>]
transparent background:
[<a href="2015/SilverDonor2015_t_huge.png">huge; png; 42kb</a>]
[<a href="2015/SilverDonor2015_t_large.png">large; png; 26kb</a>]
[<a href="2015/SilverDonor2015_t_medium.png">medium; png; 13kb</a>]
[<a href="2015/SilverDonor2015_t_small.png">small; png; 8kb</a>]
</p>
<h3>GoldDonor 2015</h3>
<p class="indent">
<img src="2015/GoldDonor2015_w_medium.png" border="0" alt="GoldDonor 2015 button"/><br />
white background:
[<a href="2015/GoldDonor2015_w_huge.png">huge; png; 48kb</a>]
[<a href="2015/GoldDonor2015_w_large.png">large; png; 31kb</a>]
[<a href="2015/GoldDonor2015_w_medium.png">medium; png; 15kb</a>]
[<a href="2015/GoldDonor2015_w_small.png">small; png; 9kb</a>]
transparent background:
[<a href="2015/GoldDonor2015_t_huge.png">huge; png; 41kb</a>]
[<a href="2015/GoldDonor2015_t_large.png">large; png; 26kb</a>]
[<a href="2015/GoldDonor2015_t_medium.png">medium; png; 13kb</a>]
[<a href="2015/GoldDonor2015_t_small.png">small; png; 8kb</a>]
</p>
<h2>2014 Buttons</h2>
<h3>Donor 2014</h3>
<p class="indent">
<img src="2014/Donor2014_w_medium.png" border="0" alt="Donor 2014 button"/><br />
white background:
[<a href="2014/Donor2014_w_huge.png">huge; png; 44kb</a>]
[<a href="2014/Donor2014_w_large.png">large; png; 28kb</a>]
[<a href="2014/Donor2014_w_medium.png">medium; png; 14kb</a>]
[<a href="2014/Donor2014_w_small.png">small; png; 9kb</a>]
<br/>transparent background:
[<a href="2014/Donor2014_t_huge.png">huge; png; 38kb</a>]
[<a href="2014/Donor2014_t_large.png">large; png; 24kb</a>]
[<a href="2014/Donor2014_t_medium.png">medium; png; 12kb</a>]
[<a href="2014/Donor2014_t_small.png">small; png; 7kb</a>]
</p>
<h3>Bronze Donor 2014</h3>
<p class="indent">
<img src="2014/BronzeDonor2014_w_medium.png" border="0" alt="BronzeDonor 2014 button"/><br />
white background:
[<a href="2014/BronzeDonor2014_w_huge.png">huge; png; 48kb</a>]
[<a href="2014/BronzeDonor2014_w_large.png">large; png; 31kb</a>]
[<a href="2014/BronzeDonor2014_w_medium.png">medium; png; 15kb</a>]
[<a href="2014/BronzeDonor2014_w_small.png">small; png; 10kb</a>]
<br/>transparent background:
[<a href="2014/BronzeDonor2014_t_huge.png">huge; png; 42kb</a>]
[<a href="2014/BronzeDonor2014_t_large.png">large; png; 26kb</a>]
[<a href="2014/BronzeDonor2014_t_medium.png">medium; png; 13kb</a>]
[<a href="2014/BronzeDonor2014_t_small.png">small; png; 8kb</a>]
</p>
<h3>Silver Donor 2014</h3>
<p class="indent">
<img src="2014/SilverDonor2014_w_medium.png" border="0" alt="SilverDonor 2014 button"/><br />
white background:
[<a href="2014/SilverDonor2014_w_huge.png">huge; png; 48kb</a>]
[<a href="2014/SilverDonor2014_w_large.png">large; png; 31kb</a>]
[<a href="2014/SilverDonor2014_w_medium.png">medium; png; 15kb</a>]
[<a href="2014/SilverDonor2014_w_small.png">small; png; 10kb</a>]
<br/>transparent background:
[<a href="2014/SilverDonor2014_t_huge.png">huge; png; 42kb</a>]
[<a href="2014/SilverDonor2014_t_large.png">large; png; 26kb</a>]
[<a href="2014/SilverDonor2014_t_medium.png">medium; png; 13kb</a>]
[<a href="2014/SilverDonor2014_t_small.png">small; png; 8kb</a>]
</p>
<h3>Gold Donor 2014</h3>
<p class="indent">
<img src="2014/GoldDonor2014_w_medium.png" border="0" alt="GoldDonor 2014 button"/><br />
white background:
[<a href="2014/GoldDonor2014_w_huge.png">huge; png; 48kb</a>]
[<a href="2014/GoldDonor2014_w_large.png">large; png; 31kb</a>]
[<a href="2014/GoldDonor2014_w_medium.png">medium; png; 15kb</a>]
[<a href="2014/GoldDonor2014_w_small.png">small; png; 9kb</a>]
<br/>transparent background:
[<a href="2014/GoldDonor2014_t_huge.png">huge; png; 41kb</a>]
[<a href="2014/GoldDonor2014_t_large.png">large; png; 26kb</a>]
[<a href="2014/GoldDonor2014_t_medium.png">medium; png; 13kb</a>]
[<a href="2014/GoldDonor2014_t_small.png">small; png; 8kb</a>]
</p>
<buttons />
<h3>Terms of usage</h3>

View File

@ -0,0 +1 @@
about/graphics/sponsoring/sponsoring-buttons:[]

View File

@ -0,0 +1,89 @@
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../../fsfe.xsl" />
<xsl:output method="html" encoding="utf-8" indent="yes" doctype-system="about:legacy-compat" />
<xsl:template match="buttons">
<xsl:for-each select="/buildinfo/document/set/year"> <!-- loop years -->
<xsl:variable name="year"><xsl:value-of select="@id"/></xsl:variable>
<xsl:element name="h2">
<xsl:value-of select="$year" />
<xsl:text> </xsl:text><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'donation-buttons'" /></xsl:call-template>
</xsl:element>
<xsl:for-each select="button"> <!-- loop donation levels -->
<xsl:element name="h3">
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="@type" /></xsl:call-template>
<xsl:text> </xsl:text>
<xsl:value-of select="$year" /></xsl:element>
<xsl:element name="div">
<!-- image -->
<xsl:element name="img">
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="@type" /> <xsl:value-of select="$year" />
</xsl:attribute>
<xsl:attribute name="src"><xsl:value-of select="$year" />/<xsl:value-of select="@type" /><xsl:value-of select="$year" />_w_medium.png</xsl:attribute>
</xsl:element>
<!-- white background -->
<xsl:element name="p"><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'background/white'" /></xsl:call-template>:
<xsl:text>[</xsl:text>
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="$year" />/<xsl:value-of select="@type" /><xsl:value-of select="$year" />_w_huge.png</xsl:attribute>
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'size/huge'" /></xsl:call-template>
</xsl:element>
<xsl:text>], </xsl:text>
<xsl:text>[</xsl:text>
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="$year" />/<xsl:value-of select="@type" /><xsl:value-of select="$year" />_w_large.png</xsl:attribute>
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'size/large'" /></xsl:call-template>
</xsl:element>
<xsl:text>], </xsl:text>
<xsl:text>[</xsl:text>
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="$year" />/<xsl:value-of select="@type" /><xsl:value-of select="$year" />_w_medium.png</xsl:attribute>
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'size/medium'" /></xsl:call-template>
</xsl:element>
<xsl:text>], </xsl:text>
<xsl:text>[</xsl:text>
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="$year" />/<xsl:value-of select="@type" /><xsl:value-of select="$year" />_w_small.png</xsl:attribute>
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'size/small'" /></xsl:call-template>
</xsl:element>
<xsl:text>]</xsl:text>
</xsl:element>
<!-- transparent background -->
<xsl:element name="p"><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'background/transparent'" /></xsl:call-template>:
<xsl:text>[</xsl:text>
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="$year" />/<xsl:value-of select="@type" /><xsl:value-of select="$year" />_t_huge.png</xsl:attribute>
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'size/huge'" /></xsl:call-template>
</xsl:element>
<xsl:text>], </xsl:text>
<xsl:text>[</xsl:text>
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="$year" />/<xsl:value-of select="@type" /><xsl:value-of select="$year" />_t_large.png</xsl:attribute>
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'size/large'" /></xsl:call-template>
</xsl:element>
<xsl:text>], </xsl:text>
<xsl:text>[</xsl:text>
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="$year" />/<xsl:value-of select="@type" /><xsl:value-of select="$year" />_t_medium.png</xsl:attribute>
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'size/medium'" /></xsl:call-template>
</xsl:element>
<xsl:text>], </xsl:text>
<xsl:text>[</xsl:text>
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="$year" />/<xsl:value-of select="@type" /><xsl:value-of select="$year" />_t_small.png</xsl:attribute>
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'size/small'" /></xsl:call-template>
</xsl:element>
<xsl:text>]</xsl:text>
</xsl:element>
</xsl:element>
</xsl:for-each>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>

View File

@ -227,4 +227,17 @@
<text id="share-page">Share this page on</text>
<text id="share-microdonation">Make a micro-donation via</text>
<text id="share-warning">Some services may be Free Software unfriendly and harm your privacy.</text>
<!-- Sponsoring buttons -->
<text id="donation-buttons">Buttons</text>
<text id="Donor">Donor</text>
<text id="BronzeDonor">Bronze Donor</text>
<text id="SilverDonor">Silver Donor</text>
<text id="GoldDonor">Gold Donor</text>
<text id="size/huge">huge</text>
<text id="size/large">large</text>
<text id="size/medium">medium</text>
<text id="size/small">small</text>
<text id="background/white">White background</text>
<text id="background/transparent">Transparent background</text>
</textset>