Paul Vriens : transl: Don't use hardcoded language identifier.

Alexandre Julliard julliard at winehq.org
Thu Jul 23 09:42:38 CDT 2009


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Thu Jul 23 09:24:09 2009 +0200

transl: Don't use hardcoded language identifier.

---

 transl/php/index.php |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/transl/php/index.php b/transl/php/index.php
index 4e37347..904fc47 100644
--- a/transl/php/index.php
+++ b/transl/php/index.php
@@ -65,13 +65,14 @@ function draw_bar($tr, $err, $sum)
 
 function nicesort($a, $b)
 {
+    global $MASTER_LANGUAGE;
     if ($a['translated'] != $b['translated'])
         return ($a['translated'] < $b['translated']);
 
     // English (Unites States) always on top
-    if ($a['langid'] == "009:01")
+    if ($a['langid'] == $MASTER_LANGUAGE)
         return 0;
-    if ($b['langid'] == "009:01")
+    if ($b['langid'] == $MASTER_LANGUAGE)
         return 1;
     return strcasecmp($a['name'], $b['name']);
 }




More information about the wine-cvs mailing list