Mercurial > pidgin.yaz
annotate po/l10n.xsl @ 25030:986edbefc516
Remove the rest of the status node code
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 29 Jan 2009 08:23:12 +0000 |
parents | 161d9bdcca3c |
children | 7a5c2db0803d |
rev | line source |
---|---|
11466 | 1 <?xml version='1.0' ?> |
2 <xsl:stylesheet version='2.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'> | |
24972
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 | 10 <xsl:template match='/project'> |
24972
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 | 12 <head> |
13 <title><xsl:value-of select='@name'/> translation statistics</title> | |
24972
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" /> |
11471 | 15 <!-- <link rel="Stylesheet" href="/gaim.css" type="text/css" media="screen" /> --> |
24972
161d9bdcca3c
Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11471
diff
changeset
|
16 <style type="text/css"> |
11466 | 17 .bargraph { |
18 width: 200px; | |
19 height: 20px; | |
24972
161d9bdcca3c
Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11471
diff
changeset
|
20 background-color: red; |
11466 | 21 border-collapse: collapse; |
22 border-spacing: 0px; | |
23 margin: 0px; | |
24 border: 0px; | |
25 padding: 0px; | |
26 } | |
24972
161d9bdcca3c
Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11471
diff
changeset
|
27 .translated { |
161d9bdcca3c
Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11471
diff
changeset
|
28 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
|
29 padding: 0px; |
161d9bdcca3c
Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11471
diff
changeset
|
30 } |
161d9bdcca3c
Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11471
diff
changeset
|
31 .fuzzy { |
161d9bdcca3c
Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11471
diff
changeset
|
32 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
|
33 padding: 0px; |
161d9bdcca3c
Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11471
diff
changeset
|
34 } |
161d9bdcca3c
Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11471
diff
changeset
|
35 .untranslated { |
161d9bdcca3c
Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11471
diff
changeset
|
36 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
|
37 padding: 0px; |
161d9bdcca3c
Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11471
diff
changeset
|
38 } |
161d9bdcca3c
Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11471
diff
changeset
|
39 td.sep { |
161d9bdcca3c
Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11471
diff
changeset
|
40 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
|
41 } |
161d9bdcca3c
Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11471
diff
changeset
|
42 th { |
161d9bdcca3c
Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11471
diff
changeset
|
43 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
|
44 } |
11466 | 45 </style> |
46 </head> | |
47 <body> | |
11471 | 48 <!-- <div id="content"> --> |
11466 | 49 <h1><xsl:value-of select='@name' /> translation statistics</h1> |
50 <table> | |
51 <tr><th>Language</th><th colspan='2'>Translated</th><th colspan='2'>Fuzzy</th><th colspan='2'>Untranslated</th></tr> | |
52 <xsl:for-each select="lang"> | |
53 <xsl:sort select='@code' /> | |
54 <tr> | |
11471 | 55 <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> |
24972
161d9bdcca3c
Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11471
diff
changeset
|
56 <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
|
57 <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
|
58 <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
|
59 <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
|
60 <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
|
61 <td><xsl:value-of select="format-number((../@strings - (@translated + @fuzzy)) div ../@strings * 100,'#.##')"/> %</td> |
11466 | 62 <td> |
63 <table class='bargraph'><tr> | |
24972
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="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
|
65 <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
|
66 <td class="untranslated"><xsl:attribute name='style'>width:<xsl:value-of select='round((../@strings - @translated - @fuzzy) div ../@strings * 200)'/>px;</xsl:attribute></td> |
11466 | 67 </tr></table> |
68 </td> | |
69 </tr> | |
70 </xsl:for-each> | |
71 </table> | |
24972
161d9bdcca3c
Updates to the translation statistics styleshoot from Hans Nordhaug to improve
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11471
diff
changeset
|
72 <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 | 73 <!-- </div> --> |
11466 | 74 </body> |
75 </html> | |
76 </xsl:template> | |
77 </xsl:stylesheet> |