|
From: Jason C. <cam...@xp...> - 2001-03-23 21:49:53
|
I was looking at a source of another portal that implemented languages on demand. I'll look at the source and see how its fully implemented throughout the code. > 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 > > > > _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > http://lists.sourceforge.net/lists/listinfo/phpwebsite-developers |