annotate po/l10n.xsl @ 31584:cf702c6ab9e7

Getting the P2P version is probably the slplink's job, since it has the rest of the information we need, like the session, which gives us the userlist, etc.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Mon, 09 May 2011 22:56:29 +0000
parents 7a5c2db0803d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11466
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
1 <?xml version='1.0' ?>
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
2 <xsl:stylesheet version='2.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
25342
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
3 <xsl:output
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
4 method="html"
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
5 omit-xml-declaration="yes"
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
6 doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
7 doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
8 indent="yes"
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
9 />
11466
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
10 <xsl:template match='/project'>
25342
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
11 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
11466
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
12 <head>
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
13 <title><xsl:value-of select='@name'/> translation statistics</title>
25342
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
14 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
15 <style type="text/css">
11466
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
16 .bargraph {
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
17 width: 200px;
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
18 height: 20px;
25342
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
19 background-color: red;
11466
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
20 border-collapse: collapse;
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
21 border-spacing: 0px;
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
22 margin: 0px;
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
23 border: 0px;
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
24 padding: 0px;
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
25 }
25342
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
26 .translated {
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
27 background-color: green;
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
28 padding: 0px;
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
29 }
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
30 .fuzzy {
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
31 background-color: blue;
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
32 padding: 0px;
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
33 }
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
34 .untranslated {
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
35 background-color: red;
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
36 padding: 0px;
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
37 }
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
38 td.sep {
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
39 padding-right: 10px;
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
40 }
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
41 th {
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
42 text-align: left;
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
43 }
11466
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
44 </style>
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
45 </head>
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
46 <body>
11471
c586c2ffaaab [gaim-migrate @ 13712]
Mark Doliner <mark@kingant.net>
parents: 11470
diff changeset
47 <!-- <div id="content"> -->
11466
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
48 <h1><xsl:value-of select='@name' /> translation statistics</h1>
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
49 <table>
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
50 <tr><th>Language</th><th colspan='2'>Translated</th><th colspan='2'>Fuzzy</th><th colspan='2'>Untranslated</th></tr>
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
51 <xsl:for-each select="lang">
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
52 <xsl:sort select='@code' />
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
53 <tr>
11471
c586c2ffaaab [gaim-migrate @ 13712]
Mark Doliner <mark@kingant.net>
parents: 11470
diff changeset
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>
25342
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
55 <td><xsl:value-of select='@translated'/></td>
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
56 <td class='sep'><xsl:value-of select="format-number(@translated div ../@strings * 100,'#.##')"/> %</td>
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
57 <td><xsl:value-of select='@fuzzy'/></td>
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
58 <td class='sep'><xsl:value-of select="format-number(@fuzzy div ../@strings * 100,'#.##')"/> %</td>
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
59 <td><xsl:value-of select='../@strings - (@translated + @fuzzy)'/></td>
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
60 <td><xsl:value-of select="format-number((../@strings - (@translated + @fuzzy)) div ../@strings * 100,'#.##')"/> %</td>
11466
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
61 <td>
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
62 <table class='bargraph'><tr>
25342
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
63 <td class="translated"><xsl:attribute name='style'>width:<xsl:value-of select='round(@translated div ../@strings * 200)'/>px;</xsl:attribute></td>
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
64 <td class="fuzzy"><xsl:attribute name='style'>width:<xsl:value-of select='round(@fuzzy div ../@strings * 200)'/>px;</xsl:attribute></td>
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
65 <td class="untranslated"><xsl:attribute name='style'>width:<xsl:value-of select='round((../@strings - @translated - @fuzzy) div ../@strings * 200)'/>px;</xsl:attribute></td>
11466
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
66 </tr></table>
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
67 </td>
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
68 </tr>
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
69 </xsl:for-each>
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
70 </table>
25342
161d9bdcca3c Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents: 11471
diff changeset
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>
11471
c586c2ffaaab [gaim-migrate @ 13712]
Mark Doliner <mark@kingant.net>
parents: 11470
diff changeset
72 <!-- </div> -->
11466
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
73 </body>
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
74 </html>
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
75 </xsl:template>
eaa10266cd96 [gaim-migrate @ 13706]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
76 </xsl:stylesheet>