RE: [PHP] best practice wrt multi-lingual websites, gettext() etc.

From: Date: Mon, 26 Jan 2009 18:52:14 +0000
Subject: RE: [PHP] best practice wrt multi-lingual websites, gettext() etc.
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-287156@lists.php.net to get a copy of this message
> -----Original Message----- > From: Bastien Koert [mailto:phpster@gmail.com] > Sent: Monday, January 26, 2009 12:23 PM > To: Per Jessen > Cc: php-general@lists.php.net > Subject: Re: [PHP] best practice wrt multi-lingual websites, gettext() > etc. ---8<--- > At work, we don't use gettext() since : > a) its an classic ASP shop ( :-( ), therefore no Linux and no PHP > b) the db current doesn't support multi-byte charsets If database size (on disk, not spatially) isn't a concern, you might consider encoding the multi-byte strings, storing them encoded, and then decoding them when that language is requested. There will be overhead involved in the codec operations, obviously, but you could help to curb that with client- or server-side caching. Just a thought. It might not be feasible for your situation at all... // Todd

« previous php.general (#287156) next »