[dev] very off topic, but I would need serious help please.

Frederic Trudeau ftrudeau@cam.org
Sun, 26 May 2002 11:35:56 -0400


You mean like this ?

putenv("LANG=$SESS_LANG"); 
setlocale(LC_ALL, $SESS_LANG);
bindTextDomain("usage",'../locale');
textDomain('usage');



Surlignage Jan Schneider <jan@horde.org>:

> I'm not sure but I think in Horde we set the environment variables _before_
> we call the gettext binding functions. Did you try that?
> 
> Zitat von Frederic Trudeau <ftrudeau@cam.org>:
> 
> > 
> > Not really, in fact, I dont see anything in the logs when it fails, only
> > when 
> > is succeed (in errorlog or transferlog for mod_ssl, that is).
> > 
> > Looks like it may not be related to mod_ssl, Apache or PHP itself.
> > Weird thing.
> > 
> > Surlignage Jan Schneider <jan@horde.org>:
> > 
> > > Zitat von Frederic Trudeau <ftrudeau@cam.org>:
> > > 
> > > > All my pages are starting with this code ...
> > > > 
> > > > <?
> > > > session_start($PHPSID);
> > > > 
> > > > // If user is accessing directly this page, forward him to index
> > > > if(!session_is_registered(SESS_LOGIN)) {
> > > >         header("Location:index.php");
> > > > }
> > > > 
> > > > require("../_config/services.inc.php");
> > > > require("../_config/config.inc.php");
> > > > require("../_config/functions.inc.php");
> > > > 
> > > > bindTextDomain("usage",'../locale');
> > > > textDomain('usage');
> > > > putenv("LANG=$SESS_LANG"); 
> > > > setlocale(LC_ALL, $SESS_LANG);
> > > > ?>
> > > > 
> > > > can you see anything wrong in here ??
> > > 
> > > No, looks fine. Anything in the logs?
> 
> --
> http://www.horde.org - The Horde Project
> http://www.ammma.de - discover your knowledge
> http://www.tip4all.de - Deine private Tippgemeinschaft
> 
> 




--------------------------------------------------------------------
Message envoyé grace au système de courrier en-ligne de CAM Internet
Mail sent with CAM Internet's webmail system 

http://www.cam.net
Tel/phone : 514-529-3000
Fax : 514-529-3300