Paul Vriens : transl: Don't offer to compare English(US) with English(US).

Alexandre Julliard julliard at winehq.org
Fri Jul 17 09:16:38 CDT 2009


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Fri Jul 17 11:33:48 2009 +0200

transl: Don't offer to compare English(US) with English(US).

---

 transl/php/resource.php |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/transl/php/resource.php b/transl/php/resource.php
index 877c363..e86fe8c 100644
--- a/transl/php/resource.php
+++ b/transl/php/resource.php
@@ -68,10 +68,13 @@ if ($compare)
 
 if (!$compare)
 {
-    echo "<tr class=\"subheader\"><td colspan=\"3\" style=\"text-align: right\">";
-    echo "<small>".gen_resource_a($lang, $resfile, $type, $id, TRUE);
-    echo "Compare with ".$MASTER_LANGUAGE_NAME." &gt;&gt;</a></small>";
-    echo "</td></tr>";
+    if ($lang != $MASTER_LANGUAGE)
+    {
+        echo "<tr class=\"subheader\"><td colspan=\"3\" style=\"text-align: right\">";
+        echo "<small>".gen_resource_a($lang, $resfile, $type, $id, TRUE);
+        echo "Compare with ".$MASTER_LANGUAGE_NAME." &gt;&gt;</a></small>";
+        echo "</td></tr>";
+    }
 }
 else
 {




More information about the wine-cvs mailing list