André Hentschel : transl: Sync style with test.winehq. org.
Alexandre Julliard
julliard at winehq.org
Wed Jun 24 09:39:20 CDT 2009
Module: tools
Branch: master
Commit: 58a40abc68a1edd8f748df05bb0ae931ffbf14cb
URL: http://source.winehq.org/git/tools.git/?a=commit;h=58a40abc68a1edd8f748df05bb0ae931ffbf14cb
Author: André Hentschel <nerv at dawncrow.de>
Date: Tue Jun 23 19:29:38 2009 +0200
transl: Sync style with test.winehq.org.
---
transl/php/index.php | 5 ++-
transl/php/lang.php | 15 ++++++--
transl/php/resfile.php | 3 +-
transl/php/resource.php | 2 +
transl/php/style.css | 78 ++++++++++++++++++++++++++++++++++++++++------
5 files changed, 85 insertions(+), 18 deletions(-)
diff --git a/transl/php/index.php b/transl/php/index.php
index 2993994..76ed5a8 100644
--- a/transl/php/index.php
+++ b/transl/php/index.php
@@ -24,6 +24,7 @@ while ($line = fgets($summary, 1024))
<link rel="stylesheet" href="style.css" type="text/css"/>
<title>Wine translation statistics <?php echo $TITLE_APPENDIX ?></title>
</head>
+<div class="main">
<h1>Wine translation statistics <?php echo $TITLE_APPENDIX ?></h1>
<?php echo $TITLE_DESCR ?>
@@ -35,7 +36,7 @@ it needs to be found manually by the translators. If you would like to read abou
improve Wine translations check <?php echo $WINE_WIKI_TRANSLATIONS ?>.
</p>
-<table border="1" class="index">
+<table class="index">
<tr><th></th><th>Language</th><th>Translated</th><th>Missing</th><th>Errors</th><th> </th></tr>
<?php
function draw_bar($tr, $err, $sum)
@@ -97,7 +98,7 @@ for ($i = 0; $i < count($transl); $i++)
<td><?php echo $errors_sum ?></td>
<?php draw_bar($transl_sum, $errors_sum, ($nr-1)*$sum) ?>
</table>
-
+</div>
<?php
if ($time = filemtime("$DATAROOT/langs/summary"))
{
diff --git a/transl/php/lang.php b/transl/php/lang.php
index 9d79d91..bb46261 100644
--- a/transl/php/lang.php
+++ b/transl/php/lang.php
@@ -63,7 +63,7 @@ function dump_table($table)
echo "none";
return;
}
- echo "<table border=\"1\">\n";
+ echo "<table>\n";
echo "<tr><th>name</th><th>translated</th><th>missing</th><th>errors</th></tr>\n";
foreach ($table as $key => $value)
{
@@ -81,20 +81,27 @@ function dump_table($table)
?>
<p><?php dump_menu_root() ?> > <?php dump_menu_lang($lang, FALSE)?> </p>
+<div class="main">
<h1><?php echo "Language: ".get_lang_name($lang) ?></h1>
<?php warn_if_lang_hidden($lang) ?>
+<div class="group">
<h2>Partially translated modules</h2>
<?php dump_table($partial) ?>
-
+</div>
+<div class="group">
<h2>Modules not translated</h2>
<?php dump_table($notransl) ?>
-
+</div>
+<div class="group">
<h2>Locales data</h2>
<?php dump_table($locale) ?>
-
+</div>
+<div class="group">
<h2>Fully translated modules</h2>
<?php dump_table($transl) ?>
+</div>
+</div>
</html>
diff --git a/transl/php/resfile.php b/transl/php/resfile.php
index af5f118..685f80e 100644
--- a/transl/php/resfile.php
+++ b/transl/php/resfile.php
@@ -15,7 +15,7 @@ $msgs = array();
</head>
<?php dump_menu_root() ?> > <?php dump_menu_lang($lang) ?> > <?php dump_menu_resfile($lang, $resfile, FALSE) ?>
-
+<div class="main">
<h1>Module <?php echo $resfile?></h1>
<?php
@@ -93,4 +93,5 @@ foreach ($msgs as $value)
echo "</td><td>".$value."</td></tr>\n";
}
?>
+</div>
</html>
diff --git a/transl/php/resource.php b/transl/php/resource.php
index 3a7eb72..1b9b404 100644
--- a/transl/php/resource.php
+++ b/transl/php/resource.php
@@ -18,6 +18,7 @@ $compare = isset($_REQUEST['compare']);
<body>
<?php dump_menu_root() ?> > <?php dump_menu_lang($lang) ?> > <?php dump_menu_resfile($lang, $resfile) ?> >
<?php dump_menu_resource($lang, $resfile, $type, $id) ?>
+<div class="main">
<h1>Dump of <?php echo get_resource_name($type, $id) ?></h1>
<?php
@@ -83,5 +84,6 @@ $res->dump($master_res);
?>
</table>
+</div>
</body>
</html>
diff --git a/transl/php/style.css b/transl/php/style.css
index 808597a..ee17ee3 100644
--- a/transl/php/style.css
+++ b/transl/php/style.css
@@ -1,7 +1,68 @@
+body {
+ background-color: #E2E2E2;
+ color: #000000;
+ font-family: "bitstream vera sans", "verdana", "arial", "helvetica", sans-serif;
+ margin: 10px;
+ font-size: small;
+}
+
+a:link { color: #A50D0D; text-decoration: none; }
+a:visited { color: #FF0000; }
+a:hover { color: #FF6666; text-decoration: underline; }
+a:active { color: #FF0000; }
+a.hidden { text-decoration: none; color: #000000; }
+
+h1 { font-size: 180%; }
+h2 { font-size: 150%; }
+
+:link, :visited {
+ text-decoration: none;
+}
+
+h1, h2 {
+ text-align: center;
+ background-color: #601919;
+ color: #ffffff;
+ padding: 4px;
+ margin: 0;
+}
+
+h1 :link {
+ color: #ffe0e0;
+}
+
+div.main {
+ margin: 10px 0 0 0;
+ background-color: white;
+ width: 100%;
+ border: 1px solid #601919;
+}
+
+div.group {
+ margin: 10px 20% 10px 20%;
+ background-color: white;
+ border: 1px solid #601919;
+}
+
+td {
+ font-family: monospace;
+ font-size: medium;
+ padding-left: 5px;
+ padding-right: 5px;
+}
+
+th {
+ vertical-align: text-top;
+ border-top-width: thin;
+ border-bottom-width: thin;
+ border-bottom-style: solid;
+ border-bottom-color: #601919;
+}
+
/* used to mark resource parts that are not literaly in the string, like \0, \n etc*/
.resmeta
{
- color: #7f7fff;
+ color: #c34b4b;
font-style: italic;
}
@@ -22,30 +83,25 @@ p.note
padding: 2px;
}
-/* summary table on index page, bars column*/
-table.index td.bar
-{
- background-color: #d1daf9;
-}
-
/* table with a standard resource dump */
table.resource
{
- background-color: #f0f0ff;
+ margin: 10px;
+ background-color: #f7e8e8;
}
table.resource tr.header
{
- background-color: #e0e0ff;
+ background-color: #f0d2d2;
}
table.resource tr.subheader
{
- background-color: #e8e8ff;
+ background-color: #f3dcdc;
}
/* rows are different (in resource comparision mode) */
table.resource tr.diff
{
- background-color: #ffb8d0;
+ background-color: #e3acac;
}
More information about the wine-cvs
mailing list