[Bug 899] New - Problem. with language
bugs@bugs.horde.org
bugs@bugs.horde.org
Wed, 13 Mar 2002 07:00:21 -0400
http://bugs.horde.org/show_bug.cgi?id=899
*** shadow/899 Wed Mar 13 07:00:21 2002
--- shadow/899.tmp.22343 Wed Mar 13 07:00:21 2002
***************
*** 0 ****
--- 1,44 ----
+ Bug#: 899
+ Product: Horde
+ Version: other
+ Platform: All Browsers
+ OS/Version: Windows NT
+ Status: NEW
+ Resolution:
+ Severity: major
+ Priority: P1
+ Component: IMP
+ Area: BUILD
+ AssignedTo: chuck@horde.org
+ ReportedBy: t.tognolo@vi.artigianinet.com
+ URL:
+ Summary: Problem. with language
+
+ If i have for first language "en_US" on browser don't change language IMP to
+ italian or another, i have mandrake 8.1 and all patches for php etc...
+ for resolve the problem i have change /horde/lib/Lang.php, now working ALL
+
+
+ function setLang($lang = null)
+ {
+ if (@file_exists(HORDE_BASE . '/config/lang.php')) {
+ include_once HORDE_BASE . '/config/lang.php';
+ } else {
+ include_once HORDE_BASE . '/config/lang.php.dist';
+ }
+ if (empty($lang) || !Lang::isValid($lang)) {
+ $lang = Lang::select();
+ }
+
+ --> $GLOBALS['language'] = "en_US";
+ --> putenv('LANG=' . "en_US");
+ --> putenv('LANGUAGE=' . "en_US");
+ --> setlocale(LC_ALL, "en_US");
+
+ $GLOBALS['language'] = $lang;
+ putenv('LANG=' . $lang);
+ putenv('LANGUAGE=' . $lang);
+ setlocale(LC_ALL, $lang);
+ }
+
+