cvs: pear /Translation2/Container db.php mdb.php mdb2.php
| From: | Lorenzo Alberton | Date: | Thu, 02 Sep 2004 13:23:53 +0000 |
| Subject: | cvs: pear /Translation2/Container db.php mdb.php mdb2.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-23580@lists.php.net to get a copy of this message | ||
quipo Thu Sep 2 09:23:53 2004 EDT
Modified files:
/pear/Translation2/Container db.php mdb.php mdb2.php
Log:
add $this->options['strings_default_table']
http://cvs.php.net/diff.php/pear/Translation2/Container/db.php?r1=1.9&r2=1.10&ty=u
Index: pear/Translation2/Container/db.php
diff -u pear/Translation2/Container/db.php:1.9 pear/Translation2/Container/db.php:1.10
--- pear/Translation2/Container/db.php:1.9 Sun Jul 18 04:25:09 2004
+++ pear/Translation2/Container/db.php Thu Sep 2 09:23:53 2004
@@ -16,11 +16,11 @@
// | Author: Lorenzo Alberton <l dot alberton at quipo dot it> |
// +----------------------------------------------------------------------+
//
-// $Id: db.php,v 1.9 2004/07/18 08:25:09 quipo Exp $
+// $Id: db.php,v 1.10 2004/09/02 13:23:53 quipo Exp $
//
/**
* @package Translation2
- * @version $Id: db.php,v 1.9 2004/07/18 08:25:09 quipo Exp $
+ * @version $Id: db.php,v 1.10 2004/09/02 13:23:53 quipo Exp $
*/
/**
@@ -36,7 +36,7 @@
* by the PEAR DB abstraction layer to fetch data.
*
* @package Translation2
- * @version $Revision: 1.9 $
+ * @version $Revision: 1.10 $
*/
class Translation2_Container_db extends Translation2_Container
{
@@ -172,11 +172,12 @@
$this->options['lang_meta_col'] = 'meta';
$this->options['lang_errmsg_col'] = 'error_text';
- $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_text_col'] = '%s'; // col_name if one
table per lang is used,
- // or a pattern (i.e. "tr_%s" =>
"tr_EN_US")
+ $this->options['strings_default_table'] = 'i18n';
+ $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_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/diff.php/pear/Translation2/Container/mdb.php?r1=1.9&r2=1.10&ty=u
Index: pear/Translation2/Container/mdb.php
diff -u pear/Translation2/Container/mdb.php:1.9 pear/Translation2/Container/mdb.php:1.10
--- pear/Translation2/Container/mdb.php:1.9 Sun Jul 4 17:01:57 2004
+++ pear/Translation2/Container/mdb.php Thu Sep 2 09:23:53 2004
@@ -16,11 +16,11 @@
// | Author: Lorenzo Alberton <l dot alberton at quipo dot it> |
// +----------------------------------------------------------------------+
//
-// $Id: mdb.php,v 1.9 2004/07/04 21:01:57 quipo Exp $
+// $Id: mdb.php,v 1.10 2004/09/02 13:23:53 quipo Exp $
//
/**
* @package Translation2
- * @version $Id: mdb.php,v 1.9 2004/07/04 21:01:57 quipo Exp $
+ * @version $Id: mdb.php,v 1.10 2004/09/02 13:23:53 quipo Exp $
*/
/**
@@ -36,7 +36,7 @@
* by the PEAR MDB abstraction layer to fetch data.
*
* @package Translation2
- * @version $Revision: 1.9 $
+ * @version $Revision: 1.10 $
*/
class Translation2_Container_mdb extends Translation2_Container
{
@@ -169,11 +169,12 @@
$this->options['lang_meta_col'] = 'meta';
$this->options['lang_errmsg_col'] = 'error_text';
- $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_text_col'] = '%s'; // col_name if one
table per lang is used,
- // or a pattern (i.e. "tr_%s" =>
"tr_EN_US")
+ $this->options['strings_default_table'] = 'i18n';
+ $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_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/diff.php/pear/Translation2/Container/mdb2.php?r1=1.7&r2=1.8&ty=u
Index: pear/Translation2/Container/mdb2.php
diff -u pear/Translation2/Container/mdb2.php:1.7 pear/Translation2/Container/mdb2.php:1.8
--- pear/Translation2/Container/mdb2.php:1.7 Sun Jul 4 17:01:57 2004
+++ pear/Translation2/Container/mdb2.php Thu Sep 2 09:23:53 2004
@@ -16,11 +16,11 @@
// | Author: Lorenzo Alberton <l dot alberton at quipo dot it> |
// +----------------------------------------------------------------------+
//
-// $Id: mdb2.php,v 1.7 2004/07/04 21:01:57 quipo Exp $
+// $Id: mdb2.php,v 1.8 2004/09/02 13:23:53 quipo Exp $
//
/**
* @package Translation2
- * @version $Id: mdb2.php,v 1.7 2004/07/04 21:01:57 quipo Exp $
+ * @version $Id: mdb2.php,v 1.8 2004/09/02 13:23:53 quipo Exp $
*/
/**
@@ -36,7 +36,7 @@
* by the PEAR MDB2 abstraction layer to fetch data.
*
* @package Translation2
- * @version $Revision: 1.7 $
+ * @version $Revision: 1.8 $
*/
class Translation2_Container_mdb2 extends Translation2_Container
{
@@ -168,11 +168,12 @@
$this->options['lang_meta_col'] = 'meta';
$this->options['lang_errmsg_col'] = 'error_text';
- $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_text_col'] = '%s'; // col_name if one
table per lang is used,
- // or a pattern (i.e. "tr_%s" =>
"tr_EN_US")
+ $this->options['strings_default_table'] = 'i18n';
+ $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_text_col'] = '%s'; // col_name if one
table per lang is used,
+ // or a pattern (i.e. "tr_%s"
=> "tr_EN_US")
}
// }}}