André Hentschel : transl: More valid HTML.

Alexandre Julliard julliard at winehq.org
Tue Jul 21 09:25:09 CDT 2009


Module: tools
Branch: master
Commit: 0cefbbbbea3c096563cc01853a8dd12c4cf3bbff
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=0cefbbbbea3c096563cc01853a8dd12c4cf3bbff

Author: André Hentschel <nerv at dawncrow.de>
Date:   Fri Jul 17 21:00:12 2009 +0200

transl: More valid HTML.

---

 transl/php/index.php   |    5 +++--
 transl/php/lib.php     |    6 ++++--
 transl/php/resfile.php |    2 +-
 3 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/transl/php/index.php b/transl/php/index.php
index a000d70..f49fade 100644
--- a/transl/php/index.php
+++ b/transl/php/index.php
@@ -20,6 +20,7 @@ while ($line = fgets($summary, 1024))
                       'missing' => $m[4], 'errors' => $m[5]);
 }
 ?>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
 <head>
     <link rel="stylesheet" href="style.css" type="text/css"/>
@@ -53,9 +54,9 @@ function draw_bar($tr, $err, $sum)
     $miss_len = 300 - $tr_len - $err_len;
     echo '<td class="bar">';
     if ($tr_len > 0)
-	echo "<img src=\"img/bar0.gif\" height=\"15\" width=\"$tr_len\">";
+	echo "<img src=\"img/bar0.gif\" height=\"15\" width=\"$tr_len\" alt=\"translations\">";
     if ($err_len > 0)
-	echo "<img src=\"img/bar1.gif\" height=\"15\" width=\"$err_len\">";
+	echo "<img src=\"img/bar1.gif\" height=\"15\" width=\"$err_len\" alt=\"errors\">";
 //    echo "<img src=\"img/bar6.gif\" height=\"15\" width=\"$miss_len\">";
     echo "</td></tr>";
 }
diff --git a/transl/php/lib.php b/transl/php/lib.php
index 400cbf7..ab71631 100644
--- a/transl/php/lib.php
+++ b/transl/php/lib.php
@@ -272,7 +272,8 @@ function dump_menu_lang($lang, $link = TRUE)
     if ($link)
         echo gen_lang_a($lang);
     echo get_lang_name($lang);
-    echo "</a>";
+    if ($link)
+        echo "</a>";
 }
 
 function dump_menu_resfile($lang, $resfile, $link = TRUE)
@@ -280,7 +281,8 @@ function dump_menu_resfile($lang, $resfile, $link = TRUE)
     if ($link)
         echo gen_resfile_a($lang, $resfile);
     echo get_resfile_name($resfile);
-    echo "</a>";
+    if ($link)
+        echo "</a>";
 }
 
 function dump_menu_resource($lang, $resfile, $type, $id)
diff --git a/transl/php/resfile.php b/transl/php/resfile.php
index 337dc89..a6fa628 100644
--- a/transl/php/resfile.php
+++ b/transl/php/resfile.php
@@ -64,7 +64,7 @@ foreach ($msgs as $value)
         unset($icon);
     }
     if (isset($icon))
-        echo "<img src=\"img/icon-".$icon."\" width=\"32\">";
+        echo "<img src=\"img/icon-".$icon."\" width=\"32\" alt=\"".$value."\">";
 
     $line_lang = $lang;
     if (preg_match("/@LANG\(([0-9a-f]{3}:[0-9a-f]{2})\)/", $value, $m))




More information about the wine-cvs mailing list