gforge-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gforge-devel] ( gforge-Patches-292 ) Browser language selection fixed


From: noreply
Subject: [Gforge-devel] ( gforge-Patches-292 ) Browser language selection fixed if you are not logged in
Date: Sun, 13 Apr 2003 11:58:43 -0500

Patches item #292, was opened at 2003-04-13 18:58
You can respond by visiting: 
http://gforge.org/tracker/?func=detail&atid=106&aid=292&group_id=1

Category: SiteWide
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Vicente Ruiz (vjrj)
Assigned to: Nobody (None)
Summary: Browser language selection fixed if you are not logged in

Initial Comment:
In a gforge-3.0b1 installation (from a debian-sf
migration) the automatic selection of browser language
don't works. Then the home page are always in English.

I have fixed it with this little patch.

Best Regards,

Vicente

*** include/pre.php     Sun Apr 13 10:46:30 2003
---
/home/test/projects/gforge/gforge-3.0b1/www/include/pre.php
Tue Mar  4 23:14:58 2003
***************
*** 154,160 ****
        //if we don't support it, just use English as default
        if ($HTTP_ACCEPT_LANGUAGE) {
                $res = language_code_to_result ($HTTP_ACCEPT_LANGUAGE);
!               $classname=db_result($res,0,'classname');
        }
        if (!$classname) {
                $classname=$sys_lang;
--- 154,160 ----
        //if we don't support it, just use English as default
        if ($HTTP_ACCEPT_LANGUAGE) {
                $res = language_code_to_result ($HTTP_ACCEPT_LANGUAGE);
!               $classfile=db_result($res,0,'filename');
        }
        if (!$classname) {
                $classname=$sys_lang;

----------------------------------------------------------------------

You can respond by visiting: 
http://gforge.org/tracker/?func=detail&atid=106&aid=292&group_id=1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]