From: Todd O. <to...@da...> - 2001-03-23 21:37:41
|
As an ongoing project we should think about a better way to make phpWebSite multi-lingual on demand. We are only multi-lingual before installation. I'd like to see the user profile containing his/her default language preference. Large case statements are too slow. phpmyadmin using the following language include file scheme: english.inc.php $strAPrimaryKey = "A primary key has been added on "; $strAccessDenied = "Access denied"; german.inc.php $strAPrimaryKey = "Ein Primarschlssel wurde fur folgendes Feld hinzugefegt: "; $strAccessDenied = "Zugriff verweigert."; Has anyone used this many DEFINE statements in an include file? Were there any performance issues? The php code would have to pull the user's session_id and get his/her language preference from the user database before including the appropriate language "define" file. Who would like to toss ideas in on this one? --Todd |