cvs: pear /Translation2 Admin.php package.xml /Translation2/Admin/Container db.php mdb.php mdb2.php /Translation2/Container db.php mdb.php mdb2.php
[email protected] ("Lorenzo Alberton")
| Newsgroups | php.pear.cvs |
|---|---|
| Message-ID | <cvsquipo1209806279@cvsserver> |
quipo Sat May 3 09:17:59 2008 UTC
Modified files:
/pear/Translation2 Admin.php package.xml
/pear/Translation2/Admin/Container db.php mdb.php mdb2.php
/pear/Translation2/Container db.php mdb.php mdb2.php
Log:
- fixed a few PHP5 NOTICEs
- request #13734: added 'string_page_id_col_length' option to set the size of the pageID field in the translations table
- going stable
quipo-20080503091759.txt
(text/plain, 12.3 KB)
http://cvs.php.net/viewvc.cgi/pear/Translation2/Admin.php?r1=1.24&r2=1.25&diff_format=u Index: pear/Translation2/Admin.php diff -u pear/Translation2/Admin.php:1.24 pear/Translation2/Admin.php:1.25 --- pear/Translation2/Admin.php:1.24 Sat Nov 10 00:02:50 2007 +++ pear/Translation2/Admin.php Sat May 3 09:17:59 2008 @@ -32,7 +32,7 @@ * @author Lorenzo Alberton <[email protected]> * @copyright 2004-2005 Lorenzo Alberton * @license http://www.debian.org/misc/bsd.license BSD License (3 Clause) - * @version CVS: $Id: Admin.php,v 1.24 2007/11/10 00:02:50 quipo Exp $ + * @version CVS: $Id: Admin.php,v 1.25 2008/05/03 09:17:59 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -78,7 +78,7 @@ */ function & factory($driver, $options = '', $params = array()) { - $tr =& new Translation2_Admin; + $tr = new Translation2_Admin; $tr->storage = Translation2_Admin::_storageFactory($driver, $options); if (PEAR::isError($tr->storage)) { return $tr->storage; @@ -112,7 +112,7 @@ $storage_path = 'Translation2/Admin/Container/'.strtolower($driver).'.php'; $storage_class = 'Translation2_Admin_Container_'.strtolower($driver); include_once $storage_path; - $storage =& new $storage_class; + $storage = new $storage_class; $err = $storage->init($options); if (PEAR::isError($err)) { return $err; http://cvs.php.net/viewvc.cgi/pear/Translation2/package.xml?r1=1.128&r2=1.129&diff_format=u Index: pear/Translation2/package.xml diff -u pear/Translation2/package.xml:1.128 pear/Translation2/package.xml:1.129 --- pear/Translation2/package.xml:1.128 Sat Feb 23 13:39:36 2008 +++ pear/Translation2/package.xml Sat May 3 09:17:59 2008 @@ -45,20 +45,20 @@ <email>[email protected]</email> <active>yes</active> </developer> - <date>2008-02-23</date> - <time>14:38:30</time> + <date>2008-05-03</date> + <time>11:20:00</time> <version> - <release>2.0.0RC4</release> - <api>2.0.0RC4</api> + <release>2.0.0</release> + <api>2.0.0</api> </version> <stability> - <release>beta</release> - <api>beta</api> + <release>stable</release> + <api>stable</api> </stability> <license uri="http://www.debian.org/misc/bsd.license">BSD</license> - <notes>- fixed bug #12703: CacheLiteFunction decorator and getLang() issue -- fixed some E_STRICT warnings -- fixed getStringID() + <notes>- fixed a few PHP5 NOTICEs +- request #13734: added 'string_page_id_col_length' option to set the size of the + pageID field in the translations table </notes> <contents> <dir name="/"> @@ -195,6 +195,22 @@ <changelog> <release> <version> + <release>2.0.0</release> + <api>2.0.0</api> + </version> + <stability> + <release>stable</release> + <api>stable</api> + </stability> + <date>2008-05-03</date> + <license uri="http://www.debian.org/misc/bsd.license">BSD</license> + <notes>- fixed a few PHP5 NOTICEs +- request #13734: added 'string_page_id_col_length' option to set the size of the + pageID field in the translations table + </notes> + </release> + <release> + <version> <release>2.0.0RC4</release> <api>2.0.0RC4</api> </version> http://cvs.php.net/viewvc.cgi/pear/Translation2/Admin/Container/db.php?r1=1.39&r2=1.40&diff_format=u Index: pear/Translation2/Admin/Container/db.php diff -u pear/Translation2/Admin/Container/db.php:1.39 pear/Translation2/Admin/Container/db.php:1.40 --- pear/Translation2/Admin/Container/db.php:1.39 Sat Nov 24 11:47:30 2007 +++ pear/Translation2/Admin/Container/db.php Sat May 3 09:17:59 2008 @@ -36,7 +36,7 @@ * @author Ian Eure <[email protected]> * @copyright 2004-2007 Lorenzo Alberton, Ian Eure * @license http://www.debian.org/misc/bsd.license BSD License (3 Clause) - * @version CVS: $Id: db.php,v 1.39 2007/11/24 11:47:30 quipo Exp $ + * @version CVS: $Id: db.php,v 1.40 2008/05/03 09:17:59 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -100,11 +100,12 @@ //table does not exist $queries = array(); $queries[] = sprintf('CREATE TABLE %s ( ' - .'%s VARCHAR(50) default NULL, ' + .'%s VARCHAR(%d) default NULL, ' .'%s TEXT NOT NULL, ' .'%s TEXT )', $this->db->quoteIdentifier($langData['table_name']), $this->db->quoteIdentifier($this->options['string_page_id_col']), + (int)$this->options['string_page_id_col_length'], $this->db->quoteIdentifier($this->options['string_id_col']), $this->db->quoteIdentifier($lang_col) ); http://cvs.php.net/viewvc.cgi/pear/Translation2/Admin/Container/mdb.php?r1=1.37&r2=1.38&diff_format=u Index: pear/Translation2/Admin/Container/mdb.php diff -u pear/Translation2/Admin/Container/mdb.php:1.37 pear/Translation2/Admin/Container/mdb.php:1.38 --- pear/Translation2/Admin/Container/mdb.php:1.37 Sat Nov 24 11:47:30 2007 +++ pear/Translation2/Admin/Container/mdb.php Sat May 3 09:17:59 2008 @@ -33,7 +33,7 @@ * @author Ian Eure <[email protected]> * @copyright 2004-2007 Lorenzo Alberton, Ian Eure * @license http://www.debian.org/misc/bsd.license BSD License (3 Clause) - * @version CVS: $Id: mdb.php,v 1.37 2007/11/24 11:47:30 quipo Exp $ + * @version CVS: $Id: mdb.php,v 1.38 2008/05/03 09:17:59 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -93,11 +93,12 @@ //table does not exist $queries = array(); $queries[] = sprintf('CREATE TABLE %s ( ' - .'%s VARCHAR(50) default NULL, ' + .'%s VARCHAR(%d) default NULL, ' .'%s TEXT NOT NULL, ' .'%s TEXT )', $this->db->quoteIdentifier($langData['table_name']), $this->db->quoteIdentifier($this->options['string_page_id_col']), + (int)$this->options['string_page_id_col_length'], $this->db->quoteIdentifier($this->options['string_id_col']), $this->db->quoteIdentifier($lang_col) ); http://cvs.php.net/viewvc.cgi/pear/Translation2/Admin/Container/mdb2.php?r1=1.40&r2=1.41&diff_format=u Index: pear/Translation2/Admin/Container/mdb2.php diff -u pear/Translation2/Admin/Container/mdb2.php:1.40 pear/Translation2/Admin/Container/mdb2.php:1.41 --- pear/Translation2/Admin/Container/mdb2.php:1.40 Sun Nov 25 13:00:19 2007 +++ pear/Translation2/Admin/Container/mdb2.php Sat May 3 09:17:59 2008 @@ -32,7 +32,7 @@ * @author Lorenzo Alberton <[email protected]> * @copyright 2004-2007 Lorenzo Alberton * @license http://www.debian.org/misc/bsd.license BSD License (3 Clause) - * @version CVS: $Id: mdb2.php,v 1.40 2007/11/25 13:00:19 quipo Exp $ + * @version CVS: $Id: mdb2.php,v 1.41 2008/05/03 09:17:59 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -119,7 +119,7 @@ $table_definition = array( $this->options['string_page_id_col'] => array( 'type' => 'text', - 'length' => 50, + 'length' => $this->options['string_page_id_col_length'], 'default' => null, 'charset' => $charset, 'collation' => $collation, http://cvs.php.net/viewvc.cgi/pear/Translation2/Container/db.php?r1=1.38&r2=1.39&diff_format=u Index: pear/Translation2/Container/db.php diff -u pear/Translation2/Container/db.php:1.38 pear/Translation2/Container/db.php:1.39 --- pear/Translation2/Container/db.php:1.38 Sat Feb 2 18:05:06 2008 +++ pear/Translation2/Container/db.php Sat May 3 09:17:59 2008 @@ -33,7 +33,7 @@ * @author Ian Eure <[email protected]> * @copyright 2004-2008 Lorenzo Alberton, Ian Eure * @license http://www.debian.org/misc/bsd.license BSD License (3 Clause) - * @version CVS: $Id: db.php,v 1.38 2008/02/02 18:05:06 quipo Exp $ + * @version CVS: $Id: db.php,v 1.39 2008/05/03 09:17:59 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -54,7 +54,7 @@ * @author Ian Eure <[email protected]> * @copyright 2004-2008 Lorenzo Alberton, Ian Eure * @license http://www.debian.org/misc/bsd.license BSD License (3 Clause) - * @version CVS: $Id: db.php,v 1.38 2008/02/02 18:05:06 quipo Exp $ + * @version CVS: $Id: db.php,v 1.39 2008/05/03 09:17:59 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ class Translation2_Container_db extends Translation2_Container @@ -149,6 +149,7 @@ $this->options['strings_tables'] = array(); // 'lang_id' => 'table_name' $this->options['string_id_col'] = 'id'; $this->options['string_page_id_col'] = 'page_id'; + $this->options['string_page_id_col_length'] = 50; $this->options['string_text_col'] = '%s'; // col_name if one table per lang is used, // or a pattern (i.e. "tr_%s" => "tr_EN_US") } http://cvs.php.net/viewvc.cgi/pear/Translation2/Container/mdb.php?r1=1.29&r2=1.30&diff_format=u Index: pear/Translation2/Container/mdb.php diff -u pear/Translation2/Container/mdb.php:1.29 pear/Translation2/Container/mdb.php:1.30 --- pear/Translation2/Container/mdb.php:1.29 Sat Feb 2 18:05:06 2008 +++ pear/Translation2/Container/mdb.php Sat May 3 09:17:59 2008 @@ -32,7 +32,7 @@ * @author Lorenzo Alberton <[email protected]> * @copyright 2004-2008 Lorenzo Alberton * @license http://www.debian.org/misc/bsd.license BSD License (3 Clause) - * @version CVS: $Id: mdb.php,v 1.29 2008/02/02 18:05:06 quipo Exp $ + * @version CVS: $Id: mdb.php,v 1.30 2008/05/03 09:17:59 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -52,7 +52,7 @@ * @author Lorenzo Alberton <[email protected]> * @copyright 2004-2008 Lorenzo Alberton * @license http://www.debian.org/misc/bsd.license BSD License (3 Clause) - * @version CVS: $Id: mdb.php,v 1.29 2008/02/02 18:05:06 quipo Exp $ + * @version CVS: $Id: mdb.php,v 1.30 2008/05/03 09:17:59 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ class Translation2_Container_mdb extends Translation2_Container @@ -147,6 +147,7 @@ $this->options['strings_tables'] = array(); // 'lang_id' => 'table_name' $this->options['string_id_col'] = 'id'; $this->options['string_page_id_col'] = 'page_id'; + $this->options['string_page_id_col_length'] = 50; $this->options['string_text_col'] = '%s'; // col_name if one table per lang is used, // or a pattern (i.e. "tr_%s" => "tr_EN_US") } http://cvs.php.net/viewvc.cgi/pear/Translation2/Container/mdb2.php?r1=1.29&r2=1.30&diff_format=u Index: pear/Translation2/Container/mdb2.php diff -u pear/Translation2/Container/mdb2.php:1.29 pear/Translation2/Container/mdb2.php:1.30 --- pear/Translation2/Container/mdb2.php:1.29 Sat Feb 2 18:05:06 2008 +++ pear/Translation2/Container/mdb2.php Sat May 3 09:17:59 2008 @@ -32,7 +32,7 @@ * @author Lorenzo Alberton <[email protected]> * @copyright 2004-2008 Lorenzo Alberton * @license http://www.debian.org/misc/bsd.license BSD License (3 Clause) - * @version CVS: $Id: mdb2.php,v 1.29 2008/02/02 18:05:06 quipo Exp $ + * @version CVS: $Id: mdb2.php,v 1.30 2008/05/03 09:17:59 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ @@ -52,7 +52,7 @@ * @author Lorenzo Alberton <[email protected]> * @copyright 2004-2008 Lorenzo Alberton * @license http://www.debian.org/misc/bsd.license BSD License (3 Clause) - * @version CVS: $Id: mdb2.php,v 1.29 2008/02/02 18:05:06 quipo Exp $ + * @version CVS: $Id: mdb2.php,v 1.30 2008/05/03 09:17:59 quipo Exp $ * @link http://pear.php.net/package/Translation2 */ class Translation2_Container_mdb2 extends Translation2_Container @@ -146,6 +146,7 @@ $this->options['strings_tables'] = array(); // 'lang_id' => 'table_name' $this->options['string_id_col'] = 'id'; $this->options['string_page_id_col'] = 'page_id'; + $this->options['string_page_id_col_length'] = 50; $this->options['string_text_col'] = '%s'; // col_name if one table per lang is used, // or a pattern (i.e. "tr_%s" => "tr_EN_US") }