Paul Vriens : transl: Add the ability to pass a resource file.

Alexandre Julliard julliard at winehq.org
Wed Aug 12 11:01:22 CDT 2009


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

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Mon Aug 10 17:14:57 2009 +0200

transl: Add the ability to pass a resource file.

---

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

diff --git a/transl/php/lib.php b/transl/php/lib.php
index 8d23291..0d69076 100644
--- a/transl/php/lib.php
+++ b/transl/php/lib.php
@@ -44,7 +44,7 @@ function res_enum($header, $f)
     }
 }
 
-function enum_locale_names()
+function enum_locale_names($kernel32_res = "")
 {
     include_once "lib_res.php";
     include "config.php";
@@ -54,7 +54,11 @@ function enum_locale_names()
     {
         return;
     }
-    $res = new ResFile("$DATAROOT/res/dlls-kernel32.res");
+
+    if ($kernel32_res == "")
+        $kernel32_res = "$DATAROOT/res/dlls-kernel32.res";
+
+    $res = new ResFile($kernel32_res);
     $res->enumResources("res_enum");
     ksort($LOCALE_NAMES);
 }




More information about the wine-cvs mailing list