changeset 11471:c586c2ffaaab

[gaim-migrate @ 13712] Revert this because it made the page look weird in IE, because IE sucks. Also show the "name" of the language in addition to the code committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 09 Sep 2005 03:01:07 +0000
parents e88517f573f4
children 6aa833b18a05
files po/l10n.xsl
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/po/l10n.xsl	Fri Sep 09 01:31:40 2005 +0000
+++ b/po/l10n.xsl	Fri Sep 09 03:01:07 2005 +0000
@@ -4,7 +4,7 @@
 		<html>
 			<head>
 				<title><xsl:value-of select='@name'/> translation statistics</title>
-				<link rel="Stylesheet" href="/gaim.css" type="text/css" media="screen" />
+				<!-- <link rel="Stylesheet" href="/gaim.css" type="text/css" media="screen" /> -->
 				<style>
 					.bargraph {
 						width: 200px;
@@ -20,14 +20,14 @@
 				</style>
 			</head>
 			<body>
-				<div id="content">
+				<!-- <div id="content"> -->
 				<h1><xsl:value-of select='@name' /> translation statistics</h1>
 				<table>
 					<tr><th>Language</th><th colspan='2'>Translated</th><th colspan='2'>Fuzzy</th><th colspan='2'>Untranslated</th></tr>
 					<xsl:for-each select="lang">
 						<xsl:sort select='@code' />
 						<tr>
-							<td><a><xsl:attribute name='href'><xsl:value-of select='@code'/>.po</xsl:attribute><xsl:value-of select='@code'/></a></td>
+							<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>
 							<td><xsl:value-of select='@translated'/></td><td><xsl:value-of select="format-number(@translated div ../@strings * 100,'#.##')"/> %</td>
 							<td><xsl:value-of select='@fuzzy'/></td><td><xsl:value-of select="format-number(@fuzzy div ../@strings * 100,'#.##')"/> %</td>
 							<td><xsl:value-of select='../@strings - (@translated + @fuzzy)'/></td><td><xsl:value-of select="format-number((../@strings - (@translated + @fuzzy)) div ../@strings * 100,'#.##')"/> %</td>
@@ -35,6 +35,7 @@
 							<table class='bargraph'><tr>
 									<td bgcolor='green'><xsl:attribute name='width'><xsl:value-of select='round(@translated div ../@strings * 200)'/>px;</xsl:attribute></td>
 									<td bgcolor='blue'><xsl:attribute name='width'><xsl:value-of select='round(@fuzzy div ../@strings * 200)'/>px;</xsl:attribute></td>
+									<!-- <td bgcolor='red'><xsl:attribute name='width'><xsl:value-of select='200 - round((@translated + @fuzzy) div ../@strings * 200)'/>px;</xsl:attribute></td> -->
 									<td bgcolor='red'></td>
 							</tr></table>
 						</td>
@@ -42,7 +43,7 @@
 					</xsl:for-each>
 				</table>
 				<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'/>
-				</div>
+				<!-- </div> -->
 			</body>
 		</html>
 	</xsl:template>