RE: [PHP] multilingual website

From: Date: Thu, 05 Feb 2004 20:46:09 +0000
Subject: RE: [PHP] multilingual website
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-176932@lists.php.net to get a copy of this message
> My inclination would be to just use the DB, have linked tables with > languages and pieces of text in various languages. A single query could > get a full language preference setting for a site, and a little array > munging could turn it into a usable set of key/value pairs, where the key > is the context of the text, and the value if the text itself. > > (Been thinking about this alot, since I'm being asked to develop a hybrid > flash/html site that needs to be in Spanish and English) > Yes, I would also recommend the DB approach. The tables in your DB that contain language-sensitive information would probably have a languageId field which you could use to limit your result set to a specific language. HTH, Shaunak

« previous php.general (#176932) next »