cvs: pear /Translation2 Admin.php Container.php Decorator.php Translation2.php /Translation2/Admin Decorator.php /Translation2/Admin/Container
dataobjectsimple.php db.php gettext.php mdb.php mdb2.php xml.php /Translation2/Admin/Decorator Autoadd.php /Translation2/Container
dataobjectsimple.php db.php gettext.php mdb.php mdb2.php xml.php /Translation2/Decorator CacheLiteFunction.php CacheMemory.php DefaultText.php
ErrorText.php Iconv.php Lang.php SpecialChars.php UTF8.php
| From: | Lorenzo Alberton | Date: | Tue, 22 Feb 2005 17:55:10 +0000 |
| Subject: | cvs: pear /Translation2 Admin.php Container.php Decorator.php Translation2.php /Translation2/Admin Decorator.php /Translation2/Admin/Container dataobjectsimple.php db.php gettext.php mdb.php mdb2.php xml.php /Translation2/Admin/Decorator Autoadd.php /Translation2/Container dataobjectsimple.php db.php gettext.php mdb.php mdb2.php xml.php /Translation2/Decorator CacheLiteFunction.php CacheMemory.php DefaultText.php ErrorText.php Iconv.php Lang.php SpecialChars.php UTF8.php |
||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-29683@lists.php.net to get a copy of this message | ||
quipo Tue Feb 22 12:55:10 2005 EDT
Modified files:
/pear/Translation2 Admin.php Container.php Decorator.php
Translation2.php
/pear/Translation2/Admin/Container dataobjectsimple.php db.php
gettext.php mdb.php mdb2.php
xml.php
/pear/Translation2/Admin Decorator.php
/pear/Translation2/Admin/Decorator Autoadd.php
/pear/Translation2/Container dataobjectsimple.php db.php
gettext.php mdb.php mdb2.php xml.php
/pear/Translation2/Decorator CacheLiteFunction.php CacheMemory.php
DefaultText.php ErrorText.php
Iconv.php Lang.php SpecialChars.php
UTF8.php
Log:
Header block comments tweaks
http://cvs.php.net/diff.php/pear/Translation2/Admin.php?r1=1.14&r2=1.15&ty=u Index: pear/Translation2/Admin.php diff -u pear/Translation2/Admin.php:1.14 pear/Translation2/Admin.php:1.15 --- pear/Translation2/Admin.php:1.14 Mon Feb 21 17:44:51 2005 +++ pear/Translation2/Admin.php Tue Feb 22 12:55:04 2005 @@ -2,10 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Administration utilities for translation string management - * - * Set of methods to easily add/remove languages and strings, - * with a common API for all the containers. + * Contains the Translation2_Admin base class * * PHP versions 4 and 5 * @@ -20,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Admin.php,v 1.14 2005/02/21 22:44:51 quipo Exp $ + * @version CVS: $Id: Admin.php,v 1.15 2005/02/22 17:55:04 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -30,7 +27,10 @@ require_once 'Translation2.php'; /** - * Translation2 Admin class + * Administration utilities for translation string management + * + * Set of methods to easily add/remove languages and strings, + * with a common API for all the containers. * * @category Internationalization * @package Translation2 @@ -41,6 +41,9 @@ */ class Translation2_Admin extends Translation2 { + // {{{ class vars + + // }}} // {{{ factory() /** http://cvs.php.net/diff.php/pear/Translation2/Container.php?r1=1.12&r2=1.13&ty=u Index: pear/Translation2/Container.php diff -u pear/Translation2/Container.php:1.12 pear/Translation2/Container.php:1.13 --- pear/Translation2/Container.php:1.12 Mon Feb 21 17:41:31 2005 +++ pear/Translation2/Container.php Tue Feb 22 12:55:04 2005 @@ -2,10 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2_Container. Base class for Translation2 drivers/containers - * - * Extend this class to provide custom containers. - * Some containers are already bundled with the package. + * Contains the Translation2_Container base class * * PHP versions 4 and 5 * @@ -20,12 +17,15 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Container.php,v 1.12 2005/02/21 22:41:31 quipo Exp $ + * @version CVS: $Id: Container.php,v 1.13 2005/02/22 17:55:04 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ /** - * Translation2 base storage class + * Base class for Translation2 drivers/containers + * + * Extend this class to provide custom containers. + * Some containers are already bundled with the package. * * @category Internationalization * @package Translation2 http://cvs.php.net/diff.php/pear/Translation2/Decorator.php?r1=1.11&r2=1.12&ty=u Index: pear/Translation2/Decorator.php diff -u pear/Translation2/Decorator.php:1.11 pear/Translation2/Decorator.php:1.12 --- pear/Translation2/Decorator.php:1.11 Mon Feb 21 17:41:31 2005 +++ pear/Translation2/Decorator.php Tue Feb 22 12:55:04 2005 @@ -2,10 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2_Decorator. Base Decorator class for Translation2 - * - * Extend this class to provide custom decorators. - * Some decorators are already bundled with the package. + * Contains the Translation2_Decorator base class * * PHP versions 4 and 5 * @@ -20,12 +17,16 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Decorator.php,v 1.11 2005/02/21 22:41:31 quipo Exp $ + * @version CVS: $Id: Decorator.php,v 1.12 2005/02/22 17:55:04 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ /** - * Translation2_Decorator base class + * Translation2_Decorator. Base Decorator class for Translation2 + * + * Extend this class to provide custom decorators. + * Some decorators are already bundled with the package. + * * * @category Internationalization * @package Translation2 http://cvs.php.net/diff.php/pear/Translation2/Translation2.php?r1=1.29&r2=1.30&ty=u Index: pear/Translation2/Translation2.php diff -u pear/Translation2/Translation2.php:1.29 pear/Translation2/Translation2.php:1.30 --- pear/Translation2/Translation2.php:1.29 Mon Feb 21 17:41:31 2005 +++ pear/Translation2/Translation2.php Tue Feb 22 12:55:04 2005 @@ -2,11 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * PEAR::Translation2. Powerful translation manager. - * - * This class provides an easy way to retrieve all the strings - * for a multilingual site or application from a data source - * (i.e. a db, an xml file or a gettext file). + * Contains the Translation2 base class * * PHP versions 4 and 5 * @@ -21,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Translation2.php,v 1.29 2005/02/21 22:41:31 quipo Exp $ + * @version CVS: $Id: Translation2.php,v 1.30 2005/02/22 17:55:04 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -55,6 +51,10 @@ /** * Translation2 base class * + * This class provides an easy way to retrieve all the strings + * for a multilingual site or application from a data source + * (i.e. a db, an xml file or a gettext file). + * * @category Internationalization * @package Translation2 * @author Lorenzo Alberton <l dot alberton at quipo dot it> http://cvs.php.net/diff.php/pear/Translation2/Admin/Container/dataobjectsimple.php?r1=1.5&r2=1.6&ty=u Index: pear/Translation2/Admin/Container/dataobjectsimple.php diff -u pear/Translation2/Admin/Container/dataobjectsimple.php:1.5 pear/Translation2/Admin/Container/dataobjectsimple.php:1.6 --- pear/Translation2/Admin/Container/dataobjectsimple.php:1.5 Mon Feb 21 17:41:31 2005 +++ pear/Translation2/Admin/Container/dataobjectsimple.php Tue Feb 22 12:55:05 2005 @@ -2,10 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 PEAR::DB_DataObject admin container - * - * This storage driver can use all databases which are supported - * by the PEAR::DB abstraction layer to fetch data. + * Contains the Translation2_Admin_Container_dataobjectsimple class * * PHP versions 4 and 5 * @@ -20,7 +17,7 @@ * @author Alan Knowles <alan@akbkhome.com> * @copyright 2004-2005 Alan Knowles * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: dataobjectsimple.php,v 1.5 2005/02/21 22:41:31 quipo Exp $ + * @version CVS: $Id: dataobjectsimple.php,v 1.6 2005/02/22 17:55:05 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -32,8 +29,12 @@ /** * Storage driver for storing/fetching data to/from a database * + * This storage driver can use all databases which are supported + * by PEAR::DB_DataObject to fetch data. + * * Database Structure: * + * <pre> * // meta data etc. not supported * * table: translations @@ -42,10 +43,7 @@ * page // indexed varchar eg. (mytemplate.html) * lang // index varchar (eg. en|fr|.....) * translation // the translated value in language lang. - * - * - * This storage driver can use all databases which are supported - * by the PEAR DB abstraction layer to fetch data. + * </pre> * * @category Internationalization * @package Translation2 http://cvs.php.net/diff.php/pear/Translation2/Admin/Container/db.php?r1=1.25&r2=1.26&ty=u Index: pear/Translation2/Admin/Container/db.php diff -u pear/Translation2/Admin/Container/db.php:1.25 pear/Translation2/Admin/Container/db.php:1.26 --- pear/Translation2/Admin/Container/db.php:1.25 Mon Feb 21 17:41:31 2005 +++ pear/Translation2/Admin/Container/db.php Tue Feb 22 12:55:05 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 PEAR::DB admin container + * Contains the Translation2_Admin_Container_db class * * This storage driver can use all databases which are supported * by the PEAR::DB abstraction layer to fetch data. @@ -21,7 +21,7 @@ * @author Ian Eure <ieure at php dot net> * @copyright 2004-2005 Lorenzo Alberton, Ian Eure * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: db.php,v 1.25 2005/02/21 22:41:31 quipo Exp $ + * @version CVS: $Id: db.php,v 1.26 2005/02/22 17:55:05 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -34,7 +34,7 @@ * Storage driver for storing/fetching data to/from a database * * This storage driver can use all databases which are supported - * by the PEAR DB abstraction layer to fetch data. + * by the PEAR::DB abstraction layer to store and fetch data. * * @category Internationalization * @package Translation2 http://cvs.php.net/diff.php/pear/Translation2/Admin/Container/gettext.php?r1=1.22&r2=1.23&ty=u Index: pear/Translation2/Admin/Container/gettext.php diff -u pear/Translation2/Admin/Container/gettext.php:1.22 pear/Translation2/Admin/Container/gettext.php:1.23 --- pear/Translation2/Admin/Container/gettext.php:1.22 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Admin/Container/gettext.php Tue Feb 22 12:55:07 2005 @@ -2,9 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 gettext admin container - * - * This storage driver requires the gettext extension + * Contains the Translation2_Admin_Container_gettext class * * PHP versions 4 and 5 * @@ -20,7 +18,7 @@ * @author Michael Wallner <mike at php dot net> * @copyright 2004-2005 Lorenzo Alberton, Michael Wallner * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: gettext.php,v 1.22 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: gettext.php,v 1.23 2005/02/22 17:55:07 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -40,7 +38,7 @@ * @author Michael Wallner <mike at php dot net> * @copyright 2004-2005 Lorenzo Alberton, Michael Wallner * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: gettext.php,v 1.22 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: gettext.php,v 1.23 2005/02/22 17:55:07 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ class Translation2_Admin_Container_gettext extends Translation2_Container_gettext @@ -518,4 +516,4 @@ // }}} } -?> \ No newline at end of file +?> http://cvs.php.net/diff.php/pear/Translation2/Admin/Container/mdb.php?r1=1.23&r2=1.24&ty=u Index: pear/Translation2/Admin/Container/mdb.php diff -u pear/Translation2/Admin/Container/mdb.php:1.23 pear/Translation2/Admin/Container/mdb.php:1.24 --- pear/Translation2/Admin/Container/mdb.php:1.23 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Admin/Container/mdb.php Tue Feb 22 12:55:07 2005 @@ -2,10 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 PEAR::MDB admin container - * - * This storage driver can use all databases which are supported - * by the PEAR::MDB abstraction layer to fetch data. + * Contains the Translation2_Admin_Container_mdb class * * PHP versions 4 and 5 * @@ -20,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: mdb.php,v 1.23 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: mdb.php,v 1.24 2005/02/22 17:55:07 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -33,7 +30,7 @@ * Storage driver for storing/fetching data to/from a database * * This storage driver can use all databases which are supported - * by the PEAR MDB abstraction layer to fetch data. + * by the PEAR::MDB abstraction layer to store and fetch data. * * @category Internationalization * @package Translation2 http://cvs.php.net/diff.php/pear/Translation2/Admin/Container/mdb2.php?r1=1.21&r2=1.22&ty=u Index: pear/Translation2/Admin/Container/mdb2.php diff -u pear/Translation2/Admin/Container/mdb2.php:1.21 pear/Translation2/Admin/Container/mdb2.php:1.22 --- pear/Translation2/Admin/Container/mdb2.php:1.21 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Admin/Container/mdb2.php Tue Feb 22 12:55:07 2005 @@ -2,10 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 PEAR::MDB2 admin container - * - * This storage driver can use all databases which are supported - * by the PEAR::MDB2 abstraction layer to fetch data. + * Contains the Translation2_Admin_Container_mdb2 class * * PHP versions 4 and 5 * @@ -20,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: mdb2.php,v 1.21 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: mdb2.php,v 1.22 2005/02/22 17:55:07 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -33,7 +30,7 @@ * Storage driver for storing/fetching data to/from a database * * This storage driver can use all databases which are supported - * by the PEAR MDB2 abstraction layer to fetch data. + * by the PEAR::MDB2 abstraction layer to store and fetch data. * * @category Internationalization * @package Translation2 @@ -471,6 +468,24 @@ } $pages = array_merge($pages, $res); } + /* + $has_null = in_array(null, $pages); + $has_empty = in_array('', $pages); + $pages = array_unique($pages); + echo $has_null = in_array(null, $pages); + echo $has_empty = in_array('', $pages); +var_dump($pages); + //if ($has_null && !in_array(null, $pages)) { + if ($has_null && $has_empty) { + $pages[] = ''; //empty strings are stripped + } + if ($has_empty && !in_array('', $pages)) { +echo 'ADDING VOID'; + $pages[] = ''; + } +echo 'DONE'; + return $pages; + */ return array_unique($pages); } http://cvs.php.net/diff.php/pear/Translation2/Admin/Container/xml.php?r1=1.11&r2=1.12&ty=u Index: pear/Translation2/Admin/Container/xml.php diff -u pear/Translation2/Admin/Container/xml.php:1.11 pear/Translation2/Admin/Container/xml.php:1.12 --- pear/Translation2/Admin/Container/xml.php:1.11 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Admin/Container/xml.php Tue Feb 22 12:55:07 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Storage driver for storing/fetching data to/from a XML file + * Contains the Translation2_Admin_Container_xml class * * PHP versions 4 and 5 * @@ -18,7 +18,7 @@ * @author Olivier Guilyardi <olivier at samalyse dot com> * @copyright 2004-2005 Lorenzo Alberton, Olivier Guilyardi * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: xml.php,v 1.11 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: xml.php,v 1.12 2005/02/22 17:55:07 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ http://cvs.php.net/diff.php/pear/Translation2/Admin/Decorator.php?r1=1.7&r2=1.8&ty=u Index: pear/Translation2/Admin/Decorator.php diff -u pear/Translation2/Admin/Decorator.php:1.7 pear/Translation2/Admin/Decorator.php:1.8 --- pear/Translation2/Admin/Decorator.php:1.7 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Admin/Decorator.php Tue Feb 22 12:55:07 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2_Admin base decorator class + * Contains the Translation2_Admin_Decorator class * * PHP versions 4 and 5 * @@ -17,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Decorator.php,v 1.7 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: Decorator.php,v 1.8 2005/02/22 17:55:07 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ http://cvs.php.net/diff.php/pear/Translation2/Admin/Decorator/Autoadd.php?r1=1.4&r2=1.5&ty=u Index: pear/Translation2/Admin/Decorator/Autoadd.php diff -u pear/Translation2/Admin/Decorator/Autoadd.php:1.4 pear/Translation2/Admin/Decorator/Autoadd.php:1.5 --- pear/Translation2/Admin/Decorator/Autoadd.php:1.4 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Admin/Decorator/Autoadd.php Tue Feb 22 12:55:08 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2_Admin decorator to automatically add requested strings + * Contains the Translation2_Admin_Decorator_Autoadd class * * PHP versions 4 and 5 * @@ -18,7 +18,7 @@ * @author Ian Eure <ieure at php dot net> * @copyright 2004-2005 Lorenzo Alberton, Ian Eure * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Autoadd.php,v 1.4 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: Autoadd.php,v 1.5 2005/02/22 17:55:08 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -35,13 +35,14 @@ * strings will be added as. * * Example: - * + * <pre> * $tr =& Translation2_Admin::factory(...); * $tr->setLang('en'); * $tr =& $tr->getAdminDecorator('Autoadd'); * $tr->setOption('autoaddlang', 'en'); * ... * $tr->get('Entirely new string', 'samplePage', 'de'); + * </pre> * * 'Entirely new string' will be added to the English language table. * http://cvs.php.net/diff.php/pear/Translation2/Container/dataobjectsimple.php?r1=1.10&r2=1.11&ty=u Index: pear/Translation2/Container/dataobjectsimple.php diff -u pear/Translation2/Container/dataobjectsimple.php:1.10 pear/Translation2/Container/dataobjectsimple.php:1.11 --- pear/Translation2/Container/dataobjectsimple.php:1.10 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Container/dataobjectsimple.php Tue Feb 22 12:55:08 2005 @@ -2,10 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 PEAR::DB_DataObject container - * - * This storage driver can use all databases which are supported - * by the PEAR::DB abstraction layer to fetch data. + * Contains the Translation2_Container_dataobjectsimple class * * PHP versions 4 and 5 * @@ -20,7 +17,7 @@ * @author Alan Knowles <alan@akbkhome.com> * @copyright 2004-2005 Alan Knowles * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: dataobjectsimple.php,v 1.10 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: dataobjectsimple.php,v 1.11 2005/02/22 17:55:08 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -33,8 +30,11 @@ /** * Simple storage driver for fetching data from a db with DB_DataObject * - * Database Structure: + * This storage driver can use all databases which are supported + * by the PEAR::DB abstraction layer to fetch data. * + * Database Structure: + * <pre> * // meta data etc. not supported yet... * * create table translations ( @@ -47,19 +47,16 @@ * alter table translations add index page (page); * alter table translations add index lang (lang); * alter table translations add index string_id (string_id); + * </pre> * * - then just run the dataobjects createtables script. * - * - * This storage driver can use all databases which are supported - * by the PEAR DB abstraction layer to fetch data. - * * @category Internationalization * @package Translation2 * @author Alan Knowles <alan@akbkhome.com> * @copyright 2004-2005 Alan Knowles * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: dataobjectsimple.php,v 1.10 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: dataobjectsimple.php,v 1.11 2005/02/22 17:55:08 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ class Translation2_Container_dataobjectsimple extends Translation2_Container http://cvs.php.net/diff.php/pear/Translation2/Container/db.php?r1=1.24&r2=1.25&ty=u Index: pear/Translation2/Container/db.php diff -u pear/Translation2/Container/db.php:1.24 pear/Translation2/Container/db.php:1.25 --- pear/Translation2/Container/db.php:1.24 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Container/db.php Tue Feb 22 12:55:08 2005 @@ -2,10 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 PEAR::DB container - * - * This storage driver can use all databases which are supported - * by the PEAR::DB abstraction layer to fetch data. + * Contains the Translation2_Container_db class * * PHP versions 4 and 5 * @@ -21,7 +18,7 @@ * @author Ian Eure <ieure at php dot net> * @copyright 2004-2005 Lorenzo Alberton, Ian Eure * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: db.php,v 1.24 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: db.php,v 1.25 2005/02/22 17:55:08 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -34,7 +31,7 @@ * Storage driver for fetching data from a database * * This storage driver can use all databases which are supported - * by the PEAR DB abstraction layer to fetch data. + * by the PEAR::DB abstraction layer to fetch data. * * @category Internationalization * @package Translation2 @@ -42,7 +39,7 @@ * @author Ian Eure <ieure at php dot net> * @copyright 2004-2005 Lorenzo Alberton, Ian Eure * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: db.php,v 1.24 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: db.php,v 1.25 2005/02/22 17:55:08 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ class Translation2_Container_db extends Translation2_Container http://cvs.php.net/diff.php/pear/Translation2/Container/gettext.php?r1=1.22&r2=1.23&ty=u Index: pear/Translation2/Container/gettext.php diff -u pear/Translation2/Container/gettext.php:1.22 pear/Translation2/Container/gettext.php:1.23 --- pear/Translation2/Container/gettext.php:1.22 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Container/gettext.php Tue Feb 22 12:55:08 2005 @@ -2,9 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 gettext admin container - * - * This storage driver requires the gettext extension + * Contains the Translation2_Container_gettext class * * PHP versions 4 and 5 * @@ -20,7 +18,7 @@ * @author Michael Wallner <mike at php dot net> * @copyright 2004-2005 Lorenzo Alberton, Michael Wallner * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: gettext.php,v 1.22 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: gettext.php,v 1.23 2005/02/22 17:55:08 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -37,13 +35,16 @@ /** * Storage driver for fetching data with gettext * + * This storage driver requires the gettext extension + * and the PEAR::I18Nv2 class for locale handling + * * @category Internationalization * @package Translation2 * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @author Michael Wallner <mike at php dot net> * @copyright 2004-2005 Lorenzo Alberton, Michael Wallner * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: gettext.php,v 1.22 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: gettext.php,v 1.23 2005/02/22 17:55:08 quipo Exp $ * @link http://pear.php.net/package/Translation2 * @see /docs/gettext_readme.txt for an usage example */ @@ -306,4 +307,4 @@ // }}} } -?> \ No newline at end of file +?> http://cvs.php.net/diff.php/pear/Translation2/Container/mdb.php?r1=1.18&r2=1.19&ty=u Index: pear/Translation2/Container/mdb.php diff -u pear/Translation2/Container/mdb.php:1.18 pear/Translation2/Container/mdb.php:1.19 --- pear/Translation2/Container/mdb.php:1.18 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Container/mdb.php Tue Feb 22 12:55:08 2005 @@ -2,10 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 PEAR::MDB container - * - * This storage driver can use all databases which are supported - * by the PEAR::MDB abstraction layer to fetch data. + * Contains the Translation2_Container_mdb class * * PHP versions 4 and 5 * @@ -20,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: mdb.php,v 1.18 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: mdb.php,v 1.19 2005/02/22 17:55:08 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -33,14 +30,14 @@ * Storage driver for fetching data from a database * * This storage driver can use all databases which are supported - * by the PEAR MDB abstraction layer to fetch data. + * by the PEAR::MDB abstraction layer to fetch data. * * @category Internationalization * @package Translation2 * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: mdb.php,v 1.18 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: mdb.php,v 1.19 2005/02/22 17:55:08 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ class Translation2_Container_mdb extends Translation2_Container http://cvs.php.net/diff.php/pear/Translation2/Container/mdb2.php?r1=1.16&r2=1.17&ty=u Index: pear/Translation2/Container/mdb2.php diff -u pear/Translation2/Container/mdb2.php:1.16 pear/Translation2/Container/mdb2.php:1.17 --- pear/Translation2/Container/mdb2.php:1.16 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Container/mdb2.php Tue Feb 22 12:55:08 2005 @@ -2,10 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 PEAR::MDB2 container - * - * This storage driver can use all databases which are supported - * by the PEAR::MDB2 abstraction layer to fetch data. + * Contains the Translation2_Container_mdb2 class * * PHP versions 4 and 5 * @@ -20,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: mdb2.php,v 1.16 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: mdb2.php,v 1.17 2005/02/22 17:55:08 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -33,14 +30,14 @@ * Storage driver for fetching data from a database * * This storage driver can use all databases which are supported - * by the PEAR MDB2 abstraction layer to fetch data. + * by the PEAR::MDB2 abstraction layer to fetch data. * * @category Internationalization * @package Translation2 * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: mdb2.php,v 1.16 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: mdb2.php,v 1.17 2005/02/22 17:55:08 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ class Translation2_Container_mdb2 extends Translation2_Container http://cvs.php.net/diff.php/pear/Translation2/Container/xml.php?r1=1.8&r2=1.9&ty=u Index: pear/Translation2/Container/xml.php diff -u pear/Translation2/Container/xml.php:1.8 pear/Translation2/Container/xml.php:1.9 --- pear/Translation2/Container/xml.php:1.8 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Container/xml.php Tue Feb 22 12:55:08 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Storage driver for fetching data from a XML file + * Contains the Translation2_Container_xml class * * PHP versions 4 and 5 * @@ -18,7 +18,7 @@ * @author Olivier Guilyardi <olivier at samalyse dot com> * @copyright 2004-2005 Lorenzo Alberton, Olivier Guilyardi * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: xml.php,v 1.8 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: xml.php,v 1.9 2005/02/22 17:55:08 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -55,7 +55,7 @@ * Storage driver for fetching data from a XML file * * Example file : - * + * <pre> * <?xml version="1.0" encoding="iso-8859-1"?> * <translation2> * <languages> @@ -78,6 +78,7 @@ * <!-- some more <page>...</page> --> * </pages> * </translation2> + * </pre> * * @category Internationalization * @package Translation2 http://cvs.php.net/diff.php/pear/Translation2/Decorator/CacheLiteFunction.php?r1=1.10&r2=1.11&ty=u Index: pear/Translation2/Decorator/CacheLiteFunction.php diff -u pear/Translation2/Decorator/CacheLiteFunction.php:1.10 pear/Translation2/Decorator/CacheLiteFunction.php:1.11 --- pear/Translation2/Decorator/CacheLiteFunction.php:1.10 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Decorator/CacheLiteFunction.php Tue Feb 22 12:55:09 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 decorator to cache fetched data using the Cache_Lite_Function class. + * Contains the Translation2_Decorator_CacheLiteFunction class * * PHP versions 4 and 5 * @@ -17,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: CacheLiteFunction.php,v 1.10 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: CacheLiteFunction.php,v 1.11 2005/02/22 17:55:09 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -36,7 +36,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: CacheLiteFunction.php,v 1.10 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: CacheLiteFunction.php,v 1.11 2005/02/22 17:55:09 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ class Translation2_Decorator_CacheLiteFunction extends Translation2_Decorator http://cvs.php.net/diff.php/pear/Translation2/Decorator/CacheMemory.php?r1=1.7&r2=1.8&ty=u Index: pear/Translation2/Decorator/CacheMemory.php diff -u pear/Translation2/Decorator/CacheMemory.php:1.7 pear/Translation2/Decorator/CacheMemory.php:1.8 --- pear/Translation2/Decorator/CacheMemory.php:1.7 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Decorator/CacheMemory.php Tue Feb 22 12:55:09 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 decorator to cache fetched data in memory. + * Contains the Translation2_Decorator_CacheMemory class * * PHP versions 4 and 5 * @@ -17,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: CacheMemory.php,v 1.7 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: CacheMemory.php,v 1.8 2005/02/22 17:55:09 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -47,7 +47,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: CacheMemory.php,v 1.7 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: CacheMemory.php,v 1.8 2005/02/22 17:55:09 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ class Translation2_Decorator_CacheMemory extends Translation2_Decorator http://cvs.php.net/diff.php/pear/Translation2/Decorator/DefaultText.php?r1=1.6&r2=1.7&ty=u Index: pear/Translation2/Decorator/DefaultText.php diff -u pear/Translation2/Decorator/DefaultText.php:1.6 pear/Translation2/Decorator/DefaultText.php:1.7 --- pear/Translation2/Decorator/DefaultText.php:1.6 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Decorator/DefaultText.php Tue Feb 22 12:55:09 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 decorator to provide a fallback text for empty strings. + * Contains the Translation2_Decorator_DefaultText class * * PHP versions 4 and 5 * @@ -17,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: DefaultText.php,v 1.6 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: DefaultText.php,v 1.7 2005/02/22 17:55:09 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -34,7 +34,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: DefaultText.php,v 1.6 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: DefaultText.php,v 1.7 2005/02/22 17:55:09 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ class Translation2_Decorator_DefaultText extends Translation2_Decorator http://cvs.php.net/diff.php/pear/Translation2/Decorator/ErrorText.php?r1=1.2&r2=1.3&ty=u Index: pear/Translation2/Decorator/ErrorText.php diff -u pear/Translation2/Decorator/ErrorText.php:1.2 pear/Translation2/Decorator/ErrorText.php:1.3 --- pear/Translation2/Decorator/ErrorText.php:1.2 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Decorator/ErrorText.php Tue Feb 22 12:55:09 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 decorator to provide a fallback text for empty strings. + * Contains the Translation2_Decorator_ErrorText class * * PHP versions 4 and 5 * @@ -17,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: ErrorText.php,v 1.2 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: ErrorText.php,v 1.3 2005/02/22 17:55:09 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -34,7 +34,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: ErrorText.php,v 1.2 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: ErrorText.php,v 1.3 2005/02/22 17:55:09 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ class Translation2_Decorator_ErrorText extends Translation2_Decorator http://cvs.php.net/diff.php/pear/Translation2/Decorator/Iconv.php?r1=1.7&r2=1.8&ty=u Index: pear/Translation2/Decorator/Iconv.php diff -u pear/Translation2/Decorator/Iconv.php:1.7 pear/Translation2/Decorator/Iconv.php:1.8 --- pear/Translation2/Decorator/Iconv.php:1.7 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Decorator/Iconv.php Tue Feb 22 12:55:09 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 decorator to change the encoding of the stored translation. + * Contains the Translation2_Decorator_Iconv class * * PHP versions 4 and 5 * @@ -18,7 +18,7 @@ * @author Sergey Korotkov <sergey@pushok.com> * @copyright 2004-2005 Lorenzo Alberton, Sergey Korotkov * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Iconv.php,v 1.7 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: Iconv.php,v 1.8 2005/02/22 17:55:09 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -43,7 +43,7 @@ * @author Sergey Korotkov <sergey@pushok.com> * @copyright 2004-2005 Lorenzo Alberton, Sergey Korotkov * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Iconv.php,v 1.7 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: Iconv.php,v 1.8 2005/02/22 17:55:09 quipo Exp $ * @link http://pear.php.net/package/Translation2 * @see http://www.php.net/htmlentities for a list of available encodings. */ http://cvs.php.net/diff.php/pear/Translation2/Decorator/Lang.php?r1=1.7&r2=1.8&ty=u Index: pear/Translation2/Decorator/Lang.php diff -u pear/Translation2/Decorator/Lang.php:1.7 pear/Translation2/Decorator/Lang.php:1.8 --- pear/Translation2/Decorator/Lang.php:1.7 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Decorator/Lang.php Tue Feb 22 12:55:09 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 decorator to provide a fallback language for empty strings. + * Contains the Translation2_Decorator_Lang class * * PHP versions 4 and 5 * @@ -17,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Lang.php,v 1.7 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: Lang.php,v 1.8 2005/02/22 17:55:09 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -34,7 +34,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Lang.php,v 1.7 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: Lang.php,v 1.8 2005/02/22 17:55:09 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ class Translation2_Decorator_Lang extends Translation2_Decorator http://cvs.php.net/diff.php/pear/Translation2/Decorator/SpecialChars.php?r1=1.4&r2=1.5&ty=u Index: pear/Translation2/Decorator/SpecialChars.php diff -u pear/Translation2/Decorator/SpecialChars.php:1.4 pear/Translation2/Decorator/SpecialChars.php:1.5 --- pear/Translation2/Decorator/SpecialChars.php:1.4 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Decorator/SpecialChars.php Tue Feb 22 12:55:10 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 decorator to replace special chars with the matching html entities + * Contains the Translation2_Decorator_SpecialChars class * * PHP versions 4 and 5 * @@ -17,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: SpecialChars.php,v 1.4 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: SpecialChars.php,v 1.5 2005/02/22 17:55:10 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -39,7 +39,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: SpecialChars.php,v 1.4 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: SpecialChars.php,v 1.5 2005/02/22 17:55:10 quipo Exp $ * @link http://pear.php.net/package/Translation2 * @see http://www.php.net/htmlentities for a list of available charsets. */ http://cvs.php.net/diff.php/pear/Translation2/Decorator/UTF8.php?r1=1.4&r2=1.5&ty=u Index: pear/Translation2/Decorator/UTF8.php diff -u pear/Translation2/Decorator/UTF8.php:1.4 pear/Translation2/Decorator/UTF8.php:1.5 --- pear/Translation2/Decorator/UTF8.php:1.4 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Decorator/UTF8.php Tue Feb 22 12:55:10 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 decorator to convert UTF-8 strings to ISO-8859-1 + * Contains the Translation2_Decorator_UTF8 class * * PHP versions 4 and 5 * @@ -17,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: UTF8.php,v 1.4 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: UTF8.php,v 1.5 2005/02/22 17:55:10 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -34,7 +34,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: UTF8.php,v 1.4 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: UTF8.php,v 1.5 2005/02/22 17:55:10 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ class Translation2_Decorator_UTF8 extends Translation2_Decorator
http://cvs.php.net/diff.php/pear/Translation2/Admin.php?r1=1.14&r2=1.15&ty=u Index: pear/Translation2/Admin.php diff -u pear/Translation2/Admin.php:1.14 pear/Translation2/Admin.php:1.15 --- pear/Translation2/Admin.php:1.14 Mon Feb 21 17:44:51 2005 +++ pear/Translation2/Admin.php Tue Feb 22 12:55:04 2005 @@ -2,10 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Administration utilities for translation string management - * - * Set of methods to easily add/remove languages and strings, - * with a common API for all the containers. + * Contains the Translation2_Admin base class * * PHP versions 4 and 5 * @@ -20,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Admin.php,v 1.14 2005/02/21 22:44:51 quipo Exp $ + * @version CVS: $Id: Admin.php,v 1.15 2005/02/22 17:55:04 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -30,7 +27,10 @@ require_once 'Translation2.php'; /** - * Translation2 Admin class + * Administration utilities for translation string management + * + * Set of methods to easily add/remove languages and strings, + * with a common API for all the containers. * * @category Internationalization * @package Translation2 @@ -41,6 +41,9 @@ */ class Translation2_Admin extends Translation2 { + // {{{ class vars + + // }}} // {{{ factory() /** http://cvs.php.net/diff.php/pear/Translation2/Container.php?r1=1.12&r2=1.13&ty=u Index: pear/Translation2/Container.php diff -u pear/Translation2/Container.php:1.12 pear/Translation2/Container.php:1.13 --- pear/Translation2/Container.php:1.12 Mon Feb 21 17:41:31 2005 +++ pear/Translation2/Container.php Tue Feb 22 12:55:04 2005 @@ -2,10 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2_Container. Base class for Translation2 drivers/containers - * - * Extend this class to provide custom containers. - * Some containers are already bundled with the package. + * Contains the Translation2_Container base class * * PHP versions 4 and 5 * @@ -20,12 +17,15 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Container.php,v 1.12 2005/02/21 22:41:31 quipo Exp $ + * @version CVS: $Id: Container.php,v 1.13 2005/02/22 17:55:04 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ /** - * Translation2 base storage class + * Base class for Translation2 drivers/containers + * + * Extend this class to provide custom containers. + * Some containers are already bundled with the package. * * @category Internationalization * @package Translation2 http://cvs.php.net/diff.php/pear/Translation2/Decorator.php?r1=1.11&r2=1.12&ty=u Index: pear/Translation2/Decorator.php diff -u pear/Translation2/Decorator.php:1.11 pear/Translation2/Decorator.php:1.12 --- pear/Translation2/Decorator.php:1.11 Mon Feb 21 17:41:31 2005 +++ pear/Translation2/Decorator.php Tue Feb 22 12:55:04 2005 @@ -2,10 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2_Decorator. Base Decorator class for Translation2 - * - * Extend this class to provide custom decorators. - * Some decorators are already bundled with the package. + * Contains the Translation2_Decorator base class * * PHP versions 4 and 5 * @@ -20,12 +17,16 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Decorator.php,v 1.11 2005/02/21 22:41:31 quipo Exp $ + * @version CVS: $Id: Decorator.php,v 1.12 2005/02/22 17:55:04 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ /** - * Translation2_Decorator base class + * Translation2_Decorator. Base Decorator class for Translation2 + * + * Extend this class to provide custom decorators. + * Some decorators are already bundled with the package. + * * * @category Internationalization * @package Translation2 http://cvs.php.net/diff.php/pear/Translation2/Translation2.php?r1=1.29&r2=1.30&ty=u Index: pear/Translation2/Translation2.php diff -u pear/Translation2/Translation2.php:1.29 pear/Translation2/Translation2.php:1.30 --- pear/Translation2/Translation2.php:1.29 Mon Feb 21 17:41:31 2005 +++ pear/Translation2/Translation2.php Tue Feb 22 12:55:04 2005 @@ -2,11 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * PEAR::Translation2. Powerful translation manager. - * - * This class provides an easy way to retrieve all the strings - * for a multilingual site or application from a data source - * (i.e. a db, an xml file or a gettext file). + * Contains the Translation2 base class * * PHP versions 4 and 5 * @@ -21,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Translation2.php,v 1.29 2005/02/21 22:41:31 quipo Exp $ + * @version CVS: $Id: Translation2.php,v 1.30 2005/02/22 17:55:04 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -55,6 +51,10 @@ /** * Translation2 base class * + * This class provides an easy way to retrieve all the strings + * for a multilingual site or application from a data source + * (i.e. a db, an xml file or a gettext file). + * * @category Internationalization * @package Translation2 * @author Lorenzo Alberton <l dot alberton at quipo dot it> http://cvs.php.net/diff.php/pear/Translation2/Admin/Container/dataobjectsimple.php?r1=1.5&r2=1.6&ty=u Index: pear/Translation2/Admin/Container/dataobjectsimple.php diff -u pear/Translation2/Admin/Container/dataobjectsimple.php:1.5 pear/Translation2/Admin/Container/dataobjectsimple.php:1.6 --- pear/Translation2/Admin/Container/dataobjectsimple.php:1.5 Mon Feb 21 17:41:31 2005 +++ pear/Translation2/Admin/Container/dataobjectsimple.php Tue Feb 22 12:55:05 2005 @@ -2,10 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 PEAR::DB_DataObject admin container - * - * This storage driver can use all databases which are supported - * by the PEAR::DB abstraction layer to fetch data. + * Contains the Translation2_Admin_Container_dataobjectsimple class * * PHP versions 4 and 5 * @@ -20,7 +17,7 @@ * @author Alan Knowles <alan@akbkhome.com> * @copyright 2004-2005 Alan Knowles * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: dataobjectsimple.php,v 1.5 2005/02/21 22:41:31 quipo Exp $ + * @version CVS: $Id: dataobjectsimple.php,v 1.6 2005/02/22 17:55:05 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -32,8 +29,12 @@ /** * Storage driver for storing/fetching data to/from a database * + * This storage driver can use all databases which are supported + * by PEAR::DB_DataObject to fetch data. + * * Database Structure: * + * <pre> * // meta data etc. not supported * * table: translations @@ -42,10 +43,7 @@ * page // indexed varchar eg. (mytemplate.html) * lang // index varchar (eg. en|fr|.....) * translation // the translated value in language lang. - * - * - * This storage driver can use all databases which are supported - * by the PEAR DB abstraction layer to fetch data. + * </pre> * * @category Internationalization * @package Translation2 http://cvs.php.net/diff.php/pear/Translation2/Admin/Container/db.php?r1=1.25&r2=1.26&ty=u Index: pear/Translation2/Admin/Container/db.php diff -u pear/Translation2/Admin/Container/db.php:1.25 pear/Translation2/Admin/Container/db.php:1.26 --- pear/Translation2/Admin/Container/db.php:1.25 Mon Feb 21 17:41:31 2005 +++ pear/Translation2/Admin/Container/db.php Tue Feb 22 12:55:05 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 PEAR::DB admin container + * Contains the Translation2_Admin_Container_db class * * This storage driver can use all databases which are supported * by the PEAR::DB abstraction layer to fetch data. @@ -21,7 +21,7 @@ * @author Ian Eure <ieure at php dot net> * @copyright 2004-2005 Lorenzo Alberton, Ian Eure * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: db.php,v 1.25 2005/02/21 22:41:31 quipo Exp $ + * @version CVS: $Id: db.php,v 1.26 2005/02/22 17:55:05 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -34,7 +34,7 @@ * Storage driver for storing/fetching data to/from a database * * This storage driver can use all databases which are supported - * by the PEAR DB abstraction layer to fetch data. + * by the PEAR::DB abstraction layer to store and fetch data. * * @category Internationalization * @package Translation2 http://cvs.php.net/diff.php/pear/Translation2/Admin/Container/gettext.php?r1=1.22&r2=1.23&ty=u Index: pear/Translation2/Admin/Container/gettext.php diff -u pear/Translation2/Admin/Container/gettext.php:1.22 pear/Translation2/Admin/Container/gettext.php:1.23 --- pear/Translation2/Admin/Container/gettext.php:1.22 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Admin/Container/gettext.php Tue Feb 22 12:55:07 2005 @@ -2,9 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 gettext admin container - * - * This storage driver requires the gettext extension + * Contains the Translation2_Admin_Container_gettext class * * PHP versions 4 and 5 * @@ -20,7 +18,7 @@ * @author Michael Wallner <mike at php dot net> * @copyright 2004-2005 Lorenzo Alberton, Michael Wallner * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: gettext.php,v 1.22 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: gettext.php,v 1.23 2005/02/22 17:55:07 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -40,7 +38,7 @@ * @author Michael Wallner <mike at php dot net> * @copyright 2004-2005 Lorenzo Alberton, Michael Wallner * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: gettext.php,v 1.22 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: gettext.php,v 1.23 2005/02/22 17:55:07 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ class Translation2_Admin_Container_gettext extends Translation2_Container_gettext @@ -518,4 +516,4 @@ // }}} } -?> \ No newline at end of file +?> http://cvs.php.net/diff.php/pear/Translation2/Admin/Container/mdb.php?r1=1.23&r2=1.24&ty=u Index: pear/Translation2/Admin/Container/mdb.php diff -u pear/Translation2/Admin/Container/mdb.php:1.23 pear/Translation2/Admin/Container/mdb.php:1.24 --- pear/Translation2/Admin/Container/mdb.php:1.23 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Admin/Container/mdb.php Tue Feb 22 12:55:07 2005 @@ -2,10 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 PEAR::MDB admin container - * - * This storage driver can use all databases which are supported - * by the PEAR::MDB abstraction layer to fetch data. + * Contains the Translation2_Admin_Container_mdb class * * PHP versions 4 and 5 * @@ -20,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: mdb.php,v 1.23 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: mdb.php,v 1.24 2005/02/22 17:55:07 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -33,7 +30,7 @@ * Storage driver for storing/fetching data to/from a database * * This storage driver can use all databases which are supported - * by the PEAR MDB abstraction layer to fetch data. + * by the PEAR::MDB abstraction layer to store and fetch data. * * @category Internationalization * @package Translation2 http://cvs.php.net/diff.php/pear/Translation2/Admin/Container/mdb2.php?r1=1.21&r2=1.22&ty=u Index: pear/Translation2/Admin/Container/mdb2.php diff -u pear/Translation2/Admin/Container/mdb2.php:1.21 pear/Translation2/Admin/Container/mdb2.php:1.22 --- pear/Translation2/Admin/Container/mdb2.php:1.21 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Admin/Container/mdb2.php Tue Feb 22 12:55:07 2005 @@ -2,10 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 PEAR::MDB2 admin container - * - * This storage driver can use all databases which are supported - * by the PEAR::MDB2 abstraction layer to fetch data. + * Contains the Translation2_Admin_Container_mdb2 class * * PHP versions 4 and 5 * @@ -20,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: mdb2.php,v 1.21 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: mdb2.php,v 1.22 2005/02/22 17:55:07 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -33,7 +30,7 @@ * Storage driver for storing/fetching data to/from a database * * This storage driver can use all databases which are supported - * by the PEAR MDB2 abstraction layer to fetch data. + * by the PEAR::MDB2 abstraction layer to store and fetch data. * * @category Internationalization * @package Translation2 @@ -471,6 +468,24 @@ } $pages = array_merge($pages, $res); } + /* + $has_null = in_array(null, $pages); + $has_empty = in_array('', $pages); + $pages = array_unique($pages); + echo $has_null = in_array(null, $pages); + echo $has_empty = in_array('', $pages); +var_dump($pages); + //if ($has_null && !in_array(null, $pages)) { + if ($has_null && $has_empty) { + $pages[] = ''; //empty strings are stripped + } + if ($has_empty && !in_array('', $pages)) { +echo 'ADDING VOID'; + $pages[] = ''; + } +echo 'DONE'; + return $pages; + */ return array_unique($pages); } http://cvs.php.net/diff.php/pear/Translation2/Admin/Container/xml.php?r1=1.11&r2=1.12&ty=u Index: pear/Translation2/Admin/Container/xml.php diff -u pear/Translation2/Admin/Container/xml.php:1.11 pear/Translation2/Admin/Container/xml.php:1.12 --- pear/Translation2/Admin/Container/xml.php:1.11 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Admin/Container/xml.php Tue Feb 22 12:55:07 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Storage driver for storing/fetching data to/from a XML file + * Contains the Translation2_Admin_Container_xml class * * PHP versions 4 and 5 * @@ -18,7 +18,7 @@ * @author Olivier Guilyardi <olivier at samalyse dot com> * @copyright 2004-2005 Lorenzo Alberton, Olivier Guilyardi * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: xml.php,v 1.11 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: xml.php,v 1.12 2005/02/22 17:55:07 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ http://cvs.php.net/diff.php/pear/Translation2/Admin/Decorator.php?r1=1.7&r2=1.8&ty=u Index: pear/Translation2/Admin/Decorator.php diff -u pear/Translation2/Admin/Decorator.php:1.7 pear/Translation2/Admin/Decorator.php:1.8 --- pear/Translation2/Admin/Decorator.php:1.7 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Admin/Decorator.php Tue Feb 22 12:55:07 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2_Admin base decorator class + * Contains the Translation2_Admin_Decorator class * * PHP versions 4 and 5 * @@ -17,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Decorator.php,v 1.7 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: Decorator.php,v 1.8 2005/02/22 17:55:07 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ http://cvs.php.net/diff.php/pear/Translation2/Admin/Decorator/Autoadd.php?r1=1.4&r2=1.5&ty=u Index: pear/Translation2/Admin/Decorator/Autoadd.php diff -u pear/Translation2/Admin/Decorator/Autoadd.php:1.4 pear/Translation2/Admin/Decorator/Autoadd.php:1.5 --- pear/Translation2/Admin/Decorator/Autoadd.php:1.4 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Admin/Decorator/Autoadd.php Tue Feb 22 12:55:08 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2_Admin decorator to automatically add requested strings + * Contains the Translation2_Admin_Decorator_Autoadd class * * PHP versions 4 and 5 * @@ -18,7 +18,7 @@ * @author Ian Eure <ieure at php dot net> * @copyright 2004-2005 Lorenzo Alberton, Ian Eure * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Autoadd.php,v 1.4 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: Autoadd.php,v 1.5 2005/02/22 17:55:08 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -35,13 +35,14 @@ * strings will be added as. * * Example: - * + * <pre> * $tr =& Translation2_Admin::factory(...); * $tr->setLang('en'); * $tr =& $tr->getAdminDecorator('Autoadd'); * $tr->setOption('autoaddlang', 'en'); * ... * $tr->get('Entirely new string', 'samplePage', 'de'); + * </pre> * * 'Entirely new string' will be added to the English language table. * http://cvs.php.net/diff.php/pear/Translation2/Container/dataobjectsimple.php?r1=1.10&r2=1.11&ty=u Index: pear/Translation2/Container/dataobjectsimple.php diff -u pear/Translation2/Container/dataobjectsimple.php:1.10 pear/Translation2/Container/dataobjectsimple.php:1.11 --- pear/Translation2/Container/dataobjectsimple.php:1.10 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Container/dataobjectsimple.php Tue Feb 22 12:55:08 2005 @@ -2,10 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 PEAR::DB_DataObject container - * - * This storage driver can use all databases which are supported - * by the PEAR::DB abstraction layer to fetch data. + * Contains the Translation2_Container_dataobjectsimple class * * PHP versions 4 and 5 * @@ -20,7 +17,7 @@ * @author Alan Knowles <alan@akbkhome.com> * @copyright 2004-2005 Alan Knowles * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: dataobjectsimple.php,v 1.10 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: dataobjectsimple.php,v 1.11 2005/02/22 17:55:08 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -33,8 +30,11 @@ /** * Simple storage driver for fetching data from a db with DB_DataObject * - * Database Structure: + * This storage driver can use all databases which are supported + * by the PEAR::DB abstraction layer to fetch data. * + * Database Structure: + * <pre> * // meta data etc. not supported yet... * * create table translations ( @@ -47,19 +47,16 @@ * alter table translations add index page (page); * alter table translations add index lang (lang); * alter table translations add index string_id (string_id); + * </pre> * * - then just run the dataobjects createtables script. * - * - * This storage driver can use all databases which are supported - * by the PEAR DB abstraction layer to fetch data. - * * @category Internationalization * @package Translation2 * @author Alan Knowles <alan@akbkhome.com> * @copyright 2004-2005 Alan Knowles * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: dataobjectsimple.php,v 1.10 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: dataobjectsimple.php,v 1.11 2005/02/22 17:55:08 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ class Translation2_Container_dataobjectsimple extends Translation2_Container http://cvs.php.net/diff.php/pear/Translation2/Container/db.php?r1=1.24&r2=1.25&ty=u Index: pear/Translation2/Container/db.php diff -u pear/Translation2/Container/db.php:1.24 pear/Translation2/Container/db.php:1.25 --- pear/Translation2/Container/db.php:1.24 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Container/db.php Tue Feb 22 12:55:08 2005 @@ -2,10 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 PEAR::DB container - * - * This storage driver can use all databases which are supported - * by the PEAR::DB abstraction layer to fetch data. + * Contains the Translation2_Container_db class * * PHP versions 4 and 5 * @@ -21,7 +18,7 @@ * @author Ian Eure <ieure at php dot net> * @copyright 2004-2005 Lorenzo Alberton, Ian Eure * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: db.php,v 1.24 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: db.php,v 1.25 2005/02/22 17:55:08 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -34,7 +31,7 @@ * Storage driver for fetching data from a database * * This storage driver can use all databases which are supported - * by the PEAR DB abstraction layer to fetch data. + * by the PEAR::DB abstraction layer to fetch data. * * @category Internationalization * @package Translation2 @@ -42,7 +39,7 @@ * @author Ian Eure <ieure at php dot net> * @copyright 2004-2005 Lorenzo Alberton, Ian Eure * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: db.php,v 1.24 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: db.php,v 1.25 2005/02/22 17:55:08 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ class Translation2_Container_db extends Translation2_Container http://cvs.php.net/diff.php/pear/Translation2/Container/gettext.php?r1=1.22&r2=1.23&ty=u Index: pear/Translation2/Container/gettext.php diff -u pear/Translation2/Container/gettext.php:1.22 pear/Translation2/Container/gettext.php:1.23 --- pear/Translation2/Container/gettext.php:1.22 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Container/gettext.php Tue Feb 22 12:55:08 2005 @@ -2,9 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 gettext admin container - * - * This storage driver requires the gettext extension + * Contains the Translation2_Container_gettext class * * PHP versions 4 and 5 * @@ -20,7 +18,7 @@ * @author Michael Wallner <mike at php dot net> * @copyright 2004-2005 Lorenzo Alberton, Michael Wallner * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: gettext.php,v 1.22 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: gettext.php,v 1.23 2005/02/22 17:55:08 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -37,13 +35,16 @@ /** * Storage driver for fetching data with gettext * + * This storage driver requires the gettext extension + * and the PEAR::I18Nv2 class for locale handling + * * @category Internationalization * @package Translation2 * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @author Michael Wallner <mike at php dot net> * @copyright 2004-2005 Lorenzo Alberton, Michael Wallner * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: gettext.php,v 1.22 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: gettext.php,v 1.23 2005/02/22 17:55:08 quipo Exp $ * @link http://pear.php.net/package/Translation2 * @see /docs/gettext_readme.txt for an usage example */ @@ -306,4 +307,4 @@ // }}} } -?> \ No newline at end of file +?> http://cvs.php.net/diff.php/pear/Translation2/Container/mdb.php?r1=1.18&r2=1.19&ty=u Index: pear/Translation2/Container/mdb.php diff -u pear/Translation2/Container/mdb.php:1.18 pear/Translation2/Container/mdb.php:1.19 --- pear/Translation2/Container/mdb.php:1.18 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Container/mdb.php Tue Feb 22 12:55:08 2005 @@ -2,10 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 PEAR::MDB container - * - * This storage driver can use all databases which are supported - * by the PEAR::MDB abstraction layer to fetch data. + * Contains the Translation2_Container_mdb class * * PHP versions 4 and 5 * @@ -20,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: mdb.php,v 1.18 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: mdb.php,v 1.19 2005/02/22 17:55:08 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -33,14 +30,14 @@ * Storage driver for fetching data from a database * * This storage driver can use all databases which are supported - * by the PEAR MDB abstraction layer to fetch data. + * by the PEAR::MDB abstraction layer to fetch data. * * @category Internationalization * @package Translation2 * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: mdb.php,v 1.18 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: mdb.php,v 1.19 2005/02/22 17:55:08 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ class Translation2_Container_mdb extends Translation2_Container http://cvs.php.net/diff.php/pear/Translation2/Container/mdb2.php?r1=1.16&r2=1.17&ty=u Index: pear/Translation2/Container/mdb2.php diff -u pear/Translation2/Container/mdb2.php:1.16 pear/Translation2/Container/mdb2.php:1.17 --- pear/Translation2/Container/mdb2.php:1.16 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Container/mdb2.php Tue Feb 22 12:55:08 2005 @@ -2,10 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 PEAR::MDB2 container - * - * This storage driver can use all databases which are supported - * by the PEAR::MDB2 abstraction layer to fetch data. + * Contains the Translation2_Container_mdb2 class * * PHP versions 4 and 5 * @@ -20,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: mdb2.php,v 1.16 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: mdb2.php,v 1.17 2005/02/22 17:55:08 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -33,14 +30,14 @@ * Storage driver for fetching data from a database * * This storage driver can use all databases which are supported - * by the PEAR MDB2 abstraction layer to fetch data. + * by the PEAR::MDB2 abstraction layer to fetch data. * * @category Internationalization * @package Translation2 * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: mdb2.php,v 1.16 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: mdb2.php,v 1.17 2005/02/22 17:55:08 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ class Translation2_Container_mdb2 extends Translation2_Container http://cvs.php.net/diff.php/pear/Translation2/Container/xml.php?r1=1.8&r2=1.9&ty=u Index: pear/Translation2/Container/xml.php diff -u pear/Translation2/Container/xml.php:1.8 pear/Translation2/Container/xml.php:1.9 --- pear/Translation2/Container/xml.php:1.8 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Container/xml.php Tue Feb 22 12:55:08 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Storage driver for fetching data from a XML file + * Contains the Translation2_Container_xml class * * PHP versions 4 and 5 * @@ -18,7 +18,7 @@ * @author Olivier Guilyardi <olivier at samalyse dot com> * @copyright 2004-2005 Lorenzo Alberton, Olivier Guilyardi * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: xml.php,v 1.8 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: xml.php,v 1.9 2005/02/22 17:55:08 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -55,7 +55,7 @@ * Storage driver for fetching data from a XML file * * Example file : - * + * <pre> * <?xml version="1.0" encoding="iso-8859-1"?> * <translation2> * <languages> @@ -78,6 +78,7 @@ * <!-- some more <page>...</page> --> * </pages> * </translation2> + * </pre> * * @category Internationalization * @package Translation2 http://cvs.php.net/diff.php/pear/Translation2/Decorator/CacheLiteFunction.php?r1=1.10&r2=1.11&ty=u Index: pear/Translation2/Decorator/CacheLiteFunction.php diff -u pear/Translation2/Decorator/CacheLiteFunction.php:1.10 pear/Translation2/Decorator/CacheLiteFunction.php:1.11 --- pear/Translation2/Decorator/CacheLiteFunction.php:1.10 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Decorator/CacheLiteFunction.php Tue Feb 22 12:55:09 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 decorator to cache fetched data using the Cache_Lite_Function class. + * Contains the Translation2_Decorator_CacheLiteFunction class * * PHP versions 4 and 5 * @@ -17,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: CacheLiteFunction.php,v 1.10 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: CacheLiteFunction.php,v 1.11 2005/02/22 17:55:09 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -36,7 +36,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: CacheLiteFunction.php,v 1.10 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: CacheLiteFunction.php,v 1.11 2005/02/22 17:55:09 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ class Translation2_Decorator_CacheLiteFunction extends Translation2_Decorator http://cvs.php.net/diff.php/pear/Translation2/Decorator/CacheMemory.php?r1=1.7&r2=1.8&ty=u Index: pear/Translation2/Decorator/CacheMemory.php diff -u pear/Translation2/Decorator/CacheMemory.php:1.7 pear/Translation2/Decorator/CacheMemory.php:1.8 --- pear/Translation2/Decorator/CacheMemory.php:1.7 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Decorator/CacheMemory.php Tue Feb 22 12:55:09 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 decorator to cache fetched data in memory. + * Contains the Translation2_Decorator_CacheMemory class * * PHP versions 4 and 5 * @@ -17,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: CacheMemory.php,v 1.7 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: CacheMemory.php,v 1.8 2005/02/22 17:55:09 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -47,7 +47,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: CacheMemory.php,v 1.7 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: CacheMemory.php,v 1.8 2005/02/22 17:55:09 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ class Translation2_Decorator_CacheMemory extends Translation2_Decorator http://cvs.php.net/diff.php/pear/Translation2/Decorator/DefaultText.php?r1=1.6&r2=1.7&ty=u Index: pear/Translation2/Decorator/DefaultText.php diff -u pear/Translation2/Decorator/DefaultText.php:1.6 pear/Translation2/Decorator/DefaultText.php:1.7 --- pear/Translation2/Decorator/DefaultText.php:1.6 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Decorator/DefaultText.php Tue Feb 22 12:55:09 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 decorator to provide a fallback text for empty strings. + * Contains the Translation2_Decorator_DefaultText class * * PHP versions 4 and 5 * @@ -17,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: DefaultText.php,v 1.6 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: DefaultText.php,v 1.7 2005/02/22 17:55:09 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -34,7 +34,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: DefaultText.php,v 1.6 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: DefaultText.php,v 1.7 2005/02/22 17:55:09 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ class Translation2_Decorator_DefaultText extends Translation2_Decorator http://cvs.php.net/diff.php/pear/Translation2/Decorator/ErrorText.php?r1=1.2&r2=1.3&ty=u Index: pear/Translation2/Decorator/ErrorText.php diff -u pear/Translation2/Decorator/ErrorText.php:1.2 pear/Translation2/Decorator/ErrorText.php:1.3 --- pear/Translation2/Decorator/ErrorText.php:1.2 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Decorator/ErrorText.php Tue Feb 22 12:55:09 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 decorator to provide a fallback text for empty strings. + * Contains the Translation2_Decorator_ErrorText class * * PHP versions 4 and 5 * @@ -17,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: ErrorText.php,v 1.2 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: ErrorText.php,v 1.3 2005/02/22 17:55:09 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -34,7 +34,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: ErrorText.php,v 1.2 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: ErrorText.php,v 1.3 2005/02/22 17:55:09 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ class Translation2_Decorator_ErrorText extends Translation2_Decorator http://cvs.php.net/diff.php/pear/Translation2/Decorator/Iconv.php?r1=1.7&r2=1.8&ty=u Index: pear/Translation2/Decorator/Iconv.php diff -u pear/Translation2/Decorator/Iconv.php:1.7 pear/Translation2/Decorator/Iconv.php:1.8 --- pear/Translation2/Decorator/Iconv.php:1.7 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Decorator/Iconv.php Tue Feb 22 12:55:09 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 decorator to change the encoding of the stored translation. + * Contains the Translation2_Decorator_Iconv class * * PHP versions 4 and 5 * @@ -18,7 +18,7 @@ * @author Sergey Korotkov <sergey@pushok.com> * @copyright 2004-2005 Lorenzo Alberton, Sergey Korotkov * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Iconv.php,v 1.7 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: Iconv.php,v 1.8 2005/02/22 17:55:09 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -43,7 +43,7 @@ * @author Sergey Korotkov <sergey@pushok.com> * @copyright 2004-2005 Lorenzo Alberton, Sergey Korotkov * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Iconv.php,v 1.7 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: Iconv.php,v 1.8 2005/02/22 17:55:09 quipo Exp $ * @link http://pear.php.net/package/Translation2 * @see http://www.php.net/htmlentities for a list of available encodings. */ http://cvs.php.net/diff.php/pear/Translation2/Decorator/Lang.php?r1=1.7&r2=1.8&ty=u Index: pear/Translation2/Decorator/Lang.php diff -u pear/Translation2/Decorator/Lang.php:1.7 pear/Translation2/Decorator/Lang.php:1.8 --- pear/Translation2/Decorator/Lang.php:1.7 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Decorator/Lang.php Tue Feb 22 12:55:09 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 decorator to provide a fallback language for empty strings. + * Contains the Translation2_Decorator_Lang class * * PHP versions 4 and 5 * @@ -17,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Lang.php,v 1.7 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: Lang.php,v 1.8 2005/02/22 17:55:09 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -34,7 +34,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Lang.php,v 1.7 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: Lang.php,v 1.8 2005/02/22 17:55:09 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ class Translation2_Decorator_Lang extends Translation2_Decorator http://cvs.php.net/diff.php/pear/Translation2/Decorator/SpecialChars.php?r1=1.4&r2=1.5&ty=u Index: pear/Translation2/Decorator/SpecialChars.php diff -u pear/Translation2/Decorator/SpecialChars.php:1.4 pear/Translation2/Decorator/SpecialChars.php:1.5 --- pear/Translation2/Decorator/SpecialChars.php:1.4 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Decorator/SpecialChars.php Tue Feb 22 12:55:10 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 decorator to replace special chars with the matching html entities + * Contains the Translation2_Decorator_SpecialChars class * * PHP versions 4 and 5 * @@ -17,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: SpecialChars.php,v 1.4 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: SpecialChars.php,v 1.5 2005/02/22 17:55:10 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -39,7 +39,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: SpecialChars.php,v 1.4 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: SpecialChars.php,v 1.5 2005/02/22 17:55:10 quipo Exp $ * @link http://pear.php.net/package/Translation2 * @see http://www.php.net/htmlentities for a list of available charsets. */ http://cvs.php.net/diff.php/pear/Translation2/Decorator/UTF8.php?r1=1.4&r2=1.5&ty=u Index: pear/Translation2/Decorator/UTF8.php diff -u pear/Translation2/Decorator/UTF8.php:1.4 pear/Translation2/Decorator/UTF8.php:1.5 --- pear/Translation2/Decorator/UTF8.php:1.4 Mon Feb 21 17:41:32 2005 +++ pear/Translation2/Decorator/UTF8.php Tue Feb 22 12:55:10 2005 @@ -2,7 +2,7 @@ /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** - * Translation2 decorator to convert UTF-8 strings to ISO-8859-1 + * Contains the Translation2_Decorator_UTF8 class * * PHP versions 4 and 5 * @@ -17,7 +17,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: UTF8.php,v 1.4 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: UTF8.php,v 1.5 2005/02/22 17:55:10 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -34,7 +34,7 @@ * @author Lorenzo Alberton <l dot alberton at quipo dot it> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: UTF8.php,v 1.4 2005/02/21 22:41:32 quipo Exp $ + * @version CVS: $Id: UTF8.php,v 1.5 2005/02/22 17:55:10 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ class Translation2_Decorator_UTF8 extends Translation2_Decorator