Re: Translation2 class

From: Date: Mon, 29 Jan 2007 10:07:23 +0000
Subject: Re: Translation2 class
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-45535@lists.php.net to get a copy of this message
Jandro brozaman wrote:
I'm new working with PEAR and i'd like to use the Translation2 class for my develops. What is fast? gettext or MDB2 with cache? I'm not sure what is easy and what is better?
one of the goals of the Translation2 class is to have a consistent interface for all the drivers, so all of them should be easy at the same level. Once you've set up the script, you shouldn't note any difference in the usage of one driver or the other. Gettext will probably give you the best performances, but any driver with the CacheLite decorator will probably be "fast enough" for most cases. If you plan to access the translations directly, without the use of Translation2, then choose the driver you're most comfortable with: - if you are a database guy, use the MDB2 driver; - if you know how to deal with .po/.mo files, then gettext is for you; - if you like xml files, use the xml driver. YMMV -- Lorenzo Alberton http://pear.php.net/user/quipo ___________________________________________________________________ Quipo Free Internet - 2 email, 150 Mb di spazio web e molto di più. ADSL, Hardware & Software Online Store

« previous php.pear.dev (#45535) next »