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 >
signature.asc
Description: OpenPGP digital signature