Remove unused Meson option for enchant.
[pidgin-git.git] / po / l10n.xsl
blobc4e5c83b934db4b49d2d7dcb28cf7c2afb364d80
1 <?xml version='1.0' ?>
2 <xsl:stylesheet version='2.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
3 <xsl:output
4 method="html"
5 omit-xml-declaration="yes"
6 doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
7 doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
8 indent="yes"
9 />
10 <xsl:template match='/project'>
11 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
12 <head>
13 <title><xsl:value-of select='@name'/> translation statistics</title>
14 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
15 <style type="text/css">
16 .bargraph {
17 width: 200px;
18 height: 20px;
19 background-color: red;
20 border-collapse: collapse;
21 border-spacing: 0px;
22 margin: 0px;
23 border: 0px;
24 padding: 0px;
26 .translated {
27 background-color: green;
28 padding: 0px;
30 .fuzzy {
31 background-color: blue;
32 padding: 0px;
34 .untranslated {
35 background-color: red;
36 padding: 0px;
38 td.sep {
39 padding-right: 10px;
41 th {
42 text-align: left;
44 </style>
45 </head>
46 <body>
47 <!-- <div id="content"> -->
48 <h1><xsl:value-of select='@name' /> translation statistics</h1>
49 <table>
50 <tr><th>Language</th><th colspan='2'>Translated</th><th colspan='2'>Fuzzy</th><th colspan='2'>Untranslated</th></tr>
51 <xsl:for-each select="lang">
52 <xsl:sort select='@code' />
53 <tr>
54 <td><a><xsl:attribute name='href'><xsl:value-of select='@code'/>.po</xsl:attribute><xsl:value-of select='@name'/> (<xsl:value-of select='@code'/>)</a></td>
55 <td><xsl:value-of select='@translated'/></td>
56 <td class='sep'><xsl:value-of select="format-number(@translated div ../@strings * 100,'#.##')"/> %</td>
57 <td><xsl:value-of select='@fuzzy'/></td>
58 <td class='sep'><xsl:value-of select="format-number(@fuzzy div ../@strings * 100,'#.##')"/> %</td>
59 <td><xsl:value-of select='../@strings - (@translated + @fuzzy)'/></td>
60 <td><xsl:value-of select="format-number((../@strings - (@translated + @fuzzy)) div ../@strings * 100,'#.##')"/> %</td>
61 <td>
62 <table class='bargraph'><tr>
63 <td class="translated"><xsl:attribute name='style'>width:<xsl:value-of select='round(@translated div ../@strings * 200)'/>px;</xsl:attribute></td>
64 <td class="fuzzy"><xsl:attribute name='style'>width:<xsl:value-of select='round(@fuzzy div ../@strings * 200)'/>px;</xsl:attribute></td>
65 <td class="untranslated"><xsl:attribute name='style'>width:<xsl:value-of select='round((../@strings - @translated - @fuzzy) div ../@strings * 200)'/>px;</xsl:attribute></td>
66 </tr></table>
67 </td>
68 </tr>
69 </xsl:for-each>
70 </table>
71 <p><a><xsl:attribute name='href'><xsl:value-of select='@pofile'/></xsl:attribute><xsl:value-of select='@pofile'/></a> generated on <xsl:value-of select='@generated'/></p>
72 <!-- </div> -->
73 </body>
74 </html>
75 </xsl:template>
76 </xsl:stylesheet>