From: Jesse P. <je...@st...> - 2004-09-07 11:46:59
|
>> The worst I've seen that may cause a problem is the caching the = apache=20 >> or php supposedly does on strings - I've read many times that you = need=20 >> to restart apache every time you change a PO/MO file. > In fact you can switch languages on the fly ie using our user settings > script selecting it then change back to another language and the whole > application instantly changes to the other .mo file. I am not sure why > you would need to restart apache? > Phil Sorry, I was just repeating what I read, not what I tested. You'll see = even in the PHP dpc comments people say that: http://us4.php.net/manual/en/ref.gettext.php If that's not the case, then all the better, though we may want to = beware that it may end up being an issue for other's at somepoint = (albeit a small issue since most people won't be mucking around with the = mo/po files). jesse |
From: Jesse P. <je...@st...> - 2004-09-07 20:11:53
|
geeezzz! I found a queue problem earlier today and fixed it. Let me know = if you get more dupes!! sorry! jesse -----Original Message----- From: Daintrees [mailto:p.d...@pa...] Sent: Tuesday, September 07, 2004 3:59 PM To: web...@li... Subject: Re: [Web-erp-developers] Rereading the .mo file Got this one 4 times! Phil ----- Original Message -----=20 From: "Jesse Peterson" <je...@st...> To: <web...@li...> Sent: Tuesday, September 07, 2004 11:46 PM Subject: RE: [Web-erp-developers] Rereading the .mo file > >> The worst I've seen that may cause a problem is the caching the = apache > >> or php supposedly does on strings - I've read many times that you = need > >> to restart apache every time you change a PO/MO file. > > > > In fact you can switch languages on the fly ie using our user = settings > > script selecting it then change back to another language and the = whole > > application instantly changes to the other .mo file. I am not sure = why > > you would need to restart apache? > > Phil > > Sorry, I was just repeating what I read, not what I tested. You'll see even in the PHP dpc comments people say that: > http://us4.php.net/manual/en/ref.gettext.php > > If that's not the case, then all the better, though we may want to = beware that it may end up being an issue for other's at somepoint (albeit a = small issue since most people won't be mucking around with the mo/po files). > > > jesse > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_idP47&alloc_id=10808&op=CCk > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idP47&alloc_id=10808&op=3Dick _______________________________________________ Web-erp-developers mailing list Web...@li... https://lists.sourceforge.net/lists/listinfo/web-erp-developers |
From: skaill <sk...@ro...> - 2004-09-07 20:18:04
|
Only one came through that time! ----- Original Message ----- From: "Jesse Peterson" <je...@st...> To: <web...@li...> Sent: Tuesday, September 07, 2004 4:11 PM Subject: RE: [Web-erp-developers] Rereading the .mo file geeezzz! I found a queue problem earlier today and fixed it. Let me know if you get more dupes!! sorry! jesse -----Original Message----- From: Daintrees [mailto:p.d...@pa...] Sent: Tuesday, September 07, 2004 3:59 PM To: web...@li... Subject: Re: [Web-erp-developers] Rereading the .mo file Got this one 4 times! Phil ----- Original Message ----- From: "Jesse Peterson" <je...@st...> To: <web...@li...> Sent: Tuesday, September 07, 2004 11:46 PM Subject: RE: [Web-erp-developers] Rereading the .mo file > >> The worst I've seen that may cause a problem is the caching the apache > >> or php supposedly does on strings - I've read many times that you need > >> to restart apache every time you change a PO/MO file. > > > > In fact you can switch languages on the fly ie using our user settings > > script selecting it then change back to another language and the whole > > application instantly changes to the other .mo file. I am not sure why > > you would need to restart apache? > > Phil > > Sorry, I was just repeating what I read, not what I tested. You'll see even in the PHP dpc comments people say that: > http://us4.php.net/manual/en/ref.gettext.php > > If that's not the case, then all the better, though we may want to beware that it may end up being an issue for other's at somepoint (albeit a small issue since most people won't be mucking around with the mo/po files). > > > jesse > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_idP47&alloc_id808&opÌk > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idP47&alloc_id808&op=ick _______________________________________________ Web-erp-developers mailing list Web...@li... https://lists.sourceforge.net/lists/listinfo/web-erp-developers ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idP47&alloc_id808&op=ick _______________________________________________ Web-erp-developers mailing list Web...@li... https://lists.sourceforge.net/lists/listinfo/web-erp-developers |
From: Daintrees <p.d...@pa...> - 2004-09-07 19:57:01
|
Got this one 4 times! Phil ----- Original Message -----=20 =46rom: "Jesse Peterson" <je...@st...> To: <web...@li...> Sent: Tuesday, September 07, 2004 11:46 PM Subject: RE: [Web-erp-developers] Rereading the .mo file > >> The worst I've seen that may cause a problem is the caching the = apache > >> or php supposedly does on strings - I've read many times that yo= u need > >> to restart apache every time you change a PO/MO file. > > > > In fact you can switch languages on the fly ie using our user set= tings > > script selecting it then change back to another language and the = whole > > application instantly changes to the other .mo file. I am not sur= e why > > you would need to restart apache? > > Phil > > Sorry, I was just repeating what I read, not what I tested. You'll = see even in the PHP dpc comments people say that: > http://us4.php.net/manual/en/ref.gettext.php > > If that's not the case, then all the better, though we may want to = beware that it may end up being an issue for other's at somepoint (albeit a = small issue since most people won't be mucking around with the mo/po files)= . > > > jesse > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_idP47&alloc_id=10808&op=CCk > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > |
From: Daintrees <p.d...@pa...> - 2004-09-12 20:20:23
|
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 |
From: skaill <sk...@ro...> - 2004-09-12 20:31:14
|
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 |
From: Jesse P. <je...@st...> - 2004-09-12 20:38:50
|
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 > > |
From: Phil D. <we...@pa...> - 2004-09-13 08:14:48
|
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 > |