From: skaill <sk...@ro...> - 2004-09-08 14:47:27
|
I think I'm confused. I thought the script was an alternative to the built in gettext. Guess I just don't understand how it can use the built in gettext when the variables are embedded in the strings unless it ends up using the alternative software gettext every time. I'm not crazy about the db solution. It's a one shot instead of well known and tested. I think there are other ways such as building a tool that extracts the strings in the po and puts them into a database if you want to work with the database for other reasons. Building another tool that takes the database and makes a po. From what I've seen it would not be difficult to build such tools. Steve ----- Original Message ----- From: "Hani Naguib" <ha...@na...> To: <web...@li...> Sent: Wednesday, September 08, 2004 10:06 AM Subject: Re: [Web-erp-developers] Translation of sentence with parameters... > skaill wrote: > > >When using the built in gettext you cannot have variables interpolated > >within strings. Therefore I would still suggest not to do it or you are > >relying on the software version always. I do believe the software version > >should be included though for those who cannot have it installed. It also > >sounds easy enough to include it and you're saying it's stable. > > > > > Using the script will give you the ability of having variables > interpolated, so I would suggest using it. > If you have gettext it will use it AND give you variable interpolation, > if you dont it will still work. > This is a tiny 18k script I dont see why you would not want to use it. > To me it boils down to this; > If you are going to use gettext then you should use this script if you > are going to use a db approach > do it in a way that allows you to use gettext tools such as xgettext. I > would go further and say > in a db approach you should be able to give translators .po and .pot > files which they can use in > a proper translation oriented editor. That might mean creating a few > scripts that populate/merge/update the db given .po files. > > Having said that I think the db version is overkill. > > > ------------------------------------------------------- > 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_id=5047&alloc_id=10808&op=click > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers |