From: skaill <sk...@ro...> - 2004-09-13 15:19:26
|
And if I understand correctly the only include files needing to be before session.inc are classes because they must be included before session.inc creates the session with session_start. Steve ----- Original Message ----- From: "Jesse Peterson" <je...@st...> To: <web...@li...> Sent: Monday, September 13, 2004 11:02 AM Subject: RE: [Web-erp-developers] Including LanguageSetup.php that is basically my option 1 ;) * require_once() for the language file include, and putting that line in session and all the files that may be included before it. Also, I REALLY like the idea of including like chunks of code via include files better than several lines of code - that minimizes future corrections/additions to 1 change rather than 50. jesse -----Original Message----- From: Phil Daintree [mailto:we...@pa...] Sent: Monday, September 13, 2004 4:15 AM To: web...@li... Subject: Re: [Web-erp-developers] Including LanguageSetup.php Possible cunning plan? What say we take the if (!function_exists('gettext')){ function _($text){ return ($text); } } bit out of LanguageSetup.php and pop it into the DefineCartClass.php and other classes that need it? Phil On Mon, 2004-09-13 at 08:38, Jesse Peterson wrote: > Yes... this was my option 3 from the initial email - "* changing classes > to remove strings so translation is moot (probably more correct) " > there aren't too terribly many strings, so it should not be noticed very > often that they are not done. Worst case we could pass in whatever > strings from the file the functions are used in... > I'll write if I think up some other way... > > jesse > > > skaill wrote: > > >Hahaha...none from me. > > > >The good news is the classes I've looked through don't have any strings. > >It's still possible some may though. If a class does display a string then > >it is probably due to an error and could be modified to pass back an error > >code instead. That code can be checked later once the multilangauge is > >running and the proper message displayed at that time. > > > >It may be that none of the classes use (or at least display) strings. > > > >Steve > > > >----- Original Message ----- > >From: "Daintrees" <p.d...@pa...> > >To: <web...@li...> > >Sent: Sunday, September 12, 2004 4:22 PM > >Subject: [Web-erp-developers] Including LanguageSetup.php > > > > > > > > > >>Shot from the hip and missed with that previous email Jesse! > >> > >>The snag is that language is set from a session variable, so a session > >> > >> > >needs > > > > > >>to be initiated before LanguageSetup.php is included - so we have access > >> > >> > >to > > > > > >>$_SESSION['Language']! This creates a more serious difficulty for strings > >> > >> > >in > > > > > >>class defintion files :-( > >> > >>Need a little more thought and some brilliant ideas would be most > >>appreciated. > >> > >>Phil > >> > >> > >> > >>------------------------------------------------------- > >>This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > >>Project Admins to receive an Apple iPod Mini FREE for your judgement on > >>who ports your project to Linux PPC the best. Sponsored by IBM. > >>Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > >>_______________________________________________ > >>Web-erp-developers mailing list > >>Web...@li... > >>https://lists.sourceforge.net/lists/listinfo/web-erp-developers > >> > >> > > > > > > > >------------------------------------------------------- > >This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > >Project Admins to receive an Apple iPod Mini FREE for your judgement on > >who ports your project to Linux PPC the best. Sponsored by IBM. > >Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > >_______________________________________________ > >Web-erp-developers mailing list > >Web...@li... > >https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php _______________________________________________ Web-erp-developers mailing list Web...@li... https://lists.sourceforge.net/lists/listinfo/web-erp-developers ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php _______________________________________________ Web-erp-developers mailing list Web...@li... https://lists.sourceforge.net/lists/listinfo/web-erp-developers |