Re: Re: Using Translation from PEAR, other libraries

Michael Wallner <[email protected]>
Newsgroups gmane.comp.php.internationalization
Organization IWORKS
Message-ID <[email protected]>
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 (application/pgp-signature, 186 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Cygwin)

iD8DBQFBuEID2pTtEijQyW0RAt9OAJ42vcsp3fjMDmxHsixV9UrlIj1e7QCfRRGv
zdLnqGx7FjMISEOIhP58l4c=
=KByA
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.