From: Jesse P. <je...@st...> - 2004-09-13 15:03:36
|
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.=20 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=20 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=20 > to remove strings so translation is moot (probably more correct) " > there aren't too terribly many strings, so it should not be noticed = very=20 > often that they are not done. Worst case we could pass in whatever=20 > strings from the file the functions are used in... > I'll write if I think up some other way... >=20 > jesse >=20 >=20 > skaill wrote: >=20 > >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 -----=20 > >From: "Daintrees" <p.d...@pa...> > >To: <web...@li...> > >Sent: Sunday, September 12, 2004 4:22 PM > >Subject: [Web-erp-developers] Including LanguageSetup.php > > > > > > =20 > > > >>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 > >> =20 > >> > >needs > > =20 > > > >>to be initiated before LanguageSetup.php is included - so we have = access > >> =20 > >> > >to > > =20 > > > >>$_SESSION['Language']! This creates a more serious difficulty for = strings > >> =20 > >> > >in > > =20 > > > >>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 > >> =20 > >> > > > > > > > >------------------------------------------------------- > >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.=20 > >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 > > =20 > > >=20 >=20 >=20 > ------------------------------------------------------- > 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.=20 > 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 >=20 ------------------------------------------------------- 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.=20 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 |