Re: Re: Using Translation from PEAR, other libraries

From: Date: Thu, 09 Dec 2004 12:16:03 +0000
Subject: Re: Re: Using Translation from PEAR, other libraries
References: 1 2 3  Groups: php.i18n 
Request: Send a blank email to php-i18n+get-827@lists.php.net to get a copy of this message
Hi Christophe Chisogne, you wrote: > Ian Eure wrote: >> - Hard to set up > > With gettext php extension installed and correct path, it's not that > hard (locale/fr_BE/LC_MESSAGES/domain.mo). Only thing really annoying > is that locale names arent standardized : win uses long names like > English, French etc while *nix simply uses std names like fr_BE, > en_US, nl_NL etc This is where I18Nv2::setLocale() comes in (already used in Translation2) > Well, there is a second one. To set locale, you have to define env > var (LC_MESSAGES, LC_ALL, LANGUAGE,...) Not sure same settings work > everywhere (Unix boxes at least). But with php safe_mode on, only > some env vars can be set, which means editing php.ini is often > required to fix this, like safe_mode_allowed_env_vars = > "PHP_,LC,LANG,TZ" Yeah, this is a real show-stopper :-( > Perhaps a third, but I never got an answer to this one. I dont know > if using gettext with php (as Apache module) is "thread safe". If 2 > scripts are setting locale, I just hope they wont mix. Well, this only concerns threaded Webservers/Apache-MPMs (AFAIK), but I guess it's not thread safe. Regards, -- Michael - < mike(@)php.net >

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.i18n (#827) next »