Paul Vriens : transl: Actually highlight equal strings when comparing to English (US).

Alexandre Julliard julliard at winehq.org
Mon Jul 13 07:49:05 CDT 2009


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

Author: Paul Vriens <paul at acer.famvriens.nl>
Date:   Fri Jul 10 16:36:10 2009 +0200

transl: Actually highlight equal strings when comparing to English (US).

---

 transl/php/lib_res.php |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/transl/php/lib_res.php b/transl/php/lib_res.php
index 5a980f8..534e16d 100644
--- a/transl/php/lib_res.php
+++ b/transl/php/lib_res.php
@@ -429,7 +429,9 @@ class StringTable extends Resource
     {
         $uni_str = $this->strings[$lparam];
         $other_uni_str = $other->strings[$lparam];
-        return ((!$other_uni_str && $uni_str) || ($other_uni_str && !$uni_str));
+        return ((!$other_uni_str && $uni_str) ||
+                ($other_uni_str && !$uni_str) ||
+                (($uni_str && $other_uni_str) && ($uni_str == $other_uni_str)));
     }
 
     function dump($master_res = NULL)
@@ -503,7 +505,9 @@ class MessageTable extends Resource
     {
         $uni_str = $this->strings[$lparam];
         $other_uni_str = $other->strings[$lparam];
-        return ((!$other_uni_str && $uni_str) || ($other_uni_str && !$uni_str));
+        return ((!$other_uni_str && $uni_str) ||
+                ($other_uni_str && !$uni_str) ||
+                (($uni_str && $other_uni_str) && ($uni_str == $other_uni_str)));
     }
 
     function dump($master_res = NULL)




More information about the wine-cvs mailing list