From: skaill <sk...@ro...> - 2004-08-17 12:53:14
|
Hey, great! From that link... Extracting Strings from the Code Gettext provides a utility called 'xgettext' to extract all the strings from your scripts to a file called a "po" file, you have to use: $xgettext -a src/*.php To extract all the strings. Steve ----- Original Message ----- From: "Daintrees" <p.d...@pa...> To: <web...@li...> Sent: Tuesday, August 17, 2004 6:18 AM Subject: Re: [Web-erp-developers] Translations > > I have been doing a little research ... > > http://www.appliedlanguage.com/articles/internationalization_using_php_and_get_text.shtml > > actually wrapping all strings in the gettext() function allows the strings > to be extracted automatically - this seems like a huge bonus to me. I think > I will experiment a bit and see if I can get a couple of scripts going - the > only real downer with this is that I only speak english perhaps I could give > my .po file to Rom to translate so we can see how a few scripts work. > > It seems pretty straightforward! > > Phil > > > ----- Original Message ----- > From: "skaill" <sk...@ro...> > To: <web...@li...> > Sent: Tuesday, August 17, 2004 8:40 AM > Subject: Re: [Web-erp-developers] Translations > > > > Sounds good. I'll be there. To do the majority of the work we just need > to > > find who all is involved, split the pages up between us and decide whether > > to use gettext() or an alias like _(). > > > > >From there each of us just finds all the strings in their pages and puts > in > > the function call. > > > > Steve > > > > ----- Original Message ----- > > From: "Daintrees" <p.d...@pa...> > > To: <web...@li...> > > Sent: Monday, August 16, 2004 4:26 PM > > Subject: Re: [Web-erp-developers] Translations > > > > > > > Luca is still away basking in the med sunshine but he preferred the db > > > approach. Luca was keen to get stuck in on his return and we should wait > > for > > > his input. However, I would like us to go ahead with the gettext > approach > > as > > > Hani who has done this already advises. There is quite a swag of > resources > > > around gettext and it appears almost a defacto standard. > > > > > > I think it is well known that my objection is to compromising the > > > readability of the code. Using gettext appears not to damage this too > > badly. > > > It might be an idea if those developers who are keen to be a part of > this > > > effort put their hands up and once the approach is clear then divide and > > > conquor > > > > > > Phil > > > > > > > > > > > > ------------------------------------------------------- > > > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > > > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > > > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > > > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > > > _______________________________________________ > > > Web-erp-developers mailing list > > > Web...@li... > > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > > _______________________________________________ > > Web-erp-developers mailing list > > Web...@li... > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers |