2 <xsl:stylesheet version='
2.0' xmlns:xsl='http://www.w3.org/
1999/XSL/Transform'
>
3 <xsl:template match='/project'
>
6 <title><xsl:value-of select='@name'
/> translation statistics
</title>
7 <!-- <link rel="Stylesheet" href="../style.css" type="text/css" media="screen" /> -->
13 border-collapse: collapse;
23 <!-- <div id="content"> -->
24 <h1><xsl:value-of select='@name'
/> translation statistics
</h1>
25 Statistics generated
<xsl:value-of select='@stats_generated'
/><br/><br/>
27 <tr><th>Language
</th><th /><th colspan='
2'
>Translated
</th><th /><th colspan='
2'
>Fuzzy
</th><th /><th colspan='
2'
>Untranslated
</th><th colspan='
3'
>Warnings
</th><th>Progress
</th></tr>
28 <xsl:for-each select=
"lang">
29 <xsl:sort select='@translated'
data-type=
"number" order=
"descending"/>
31 <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>
33 <td><xsl:value-of select='@translated'
/></td><td> ~
<xsl:value-of select=
"format-number(@translated div ../@strings * 100,'#.##')"/>%
</td>
35 <td><xsl:value-of select='@fuzzy'
/></td><td> ~
<xsl:value-of select=
"format-number(@fuzzy div ../@strings * 100,'#.##')"/>%
</td>
37 <td><xsl:value-of select='../@strings - (@translated + @fuzzy)'
/></td><td> ~
<xsl:value-of select=
"format-number((../@strings - (@translated + @fuzzy)) div ../@strings * 100,'#.##')"/>%
</td>
40 <xsl:when test=
"@warnings = 0">
41 <td><xsl:value-of select='@warnings'
/></td>
44 <td bgcolor=
"#ff0000">
45 <a><xsl:attribute name='href'
><xsl:value-of select='@code'
/>.po.warnings
</xsl:attribute><xsl:value-of select='@warnings'
/></a>
51 <table class='bargraph'
><tr>
52 <xsl:if test=
"@translated > 0">
53 <td bgcolor='green'
><xsl:attribute name='width'
><xsl:value-of select='round(@translated div ../@strings *
200)'
/>px;
</xsl:attribute></td>
55 <xsl:if test=
"@fuzzy > 0">
57 <xsl:when test=
"../@strings - @translated - @fuzzy > 0">
58 <td bgcolor='blue'
><xsl:attribute name='width'
><xsl:value-of select='round(@fuzzy div ../@strings *
200)'
/>px;
</xsl:attribute></td>
61 <td bgcolor='blue'
><xsl:attribute name='width'
><xsl:value-of select='
200 - round(@translated div ../@strings *
200)'
/>px;
</xsl:attribute></td>
65 <xsl:if test=
"../@strings - @translated - @fuzzy > 0">
66 <td bgcolor='red'
><xsl:attribute name='width'
><xsl:value-of select='
200 - round(@translated div ../@strings *
200) - round(@fuzzy div ../@strings *
200)'
/>px;
</xsl:attribute></td>
67 <!-- <td bgcolor='red'></td> -->
75 <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'
/>