Paul Vriens : transl: Only add a margin to real text boxes, not to tables.
Alexandre Julliard
julliard at winehq.org
Tue Aug 4 09:28:06 CDT 2009
Module: tools
Branch: master
Commit: 2ff5b8d7d7320861a68dac297bc2ba5312a54a57
URL: http://source.winehq.org/git/tools.git/?a=commit;h=2ff5b8d7d7320861a68dac297bc2ba5312a54a57
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Fri Jul 31 19:59:30 2009 +0200
transl: Only add a margin to real text boxes, not to tables.
---
transl/php/lang.php | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/transl/php/lang.php b/transl/php/lang.php
index 9f36d0c..304783d 100644
--- a/transl/php/lang.php
+++ b/transl/php/lang.php
@@ -58,7 +58,9 @@ function dump_table($table)
{
global $lang;
if (count($table) == 0) {
+ echo "<div class=\"contents\">";
echo "none";
+ echo "</div>";
return;
}
echo "<table>\n";
@@ -95,29 +97,25 @@ parse_file($lang);
$translations = count($partial) + count($transl);
if (preg_match("/:00/", $lang) && $translations == 0)
{
+ echo "<div class=\"contents\">";
show_sublangs($lang);
+ echo "</div>";
exit();
}
?>
<div class="group">
<h2>Partially translated modules</h2>
-<div class="contents">
<?php dump_table($partial) ?>
</div>
-</div>
<div class="group">
<h2>Modules not translated</h2>
-<div class="contents">
<?php dump_table($notransl) ?>
</div>
-</div>
<div class="group">
<h2>Fully translated modules</h2>
-<div class="contents">
<?php dump_table($transl) ?>
</div>
-</div>
</div>
</html>
More information about the wine-cvs
mailing list