cvs: pear /Translation2/Container mdb.php mdb2.php
| From: | Lorenzo Alberton | Date: | Wed, 27 Oct 2004 19:11:43 +0000 |
| Subject: | cvs: pear /Translation2/Container mdb.php mdb2.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-25299@lists.php.net to get a copy of this message | ||
quipo Wed Oct 27 15:11:43 2004 EDT
Modified files:
/pear/Translation2/Container mdb.php mdb2.php
Log:
Allow for language id to be represented as %s in strings_default_table
http://cvs.php.net/diff.php/pear/Translation2/Container/mdb.php?r1=1.12&r2=1.13&ty=u
Index: pear/Translation2/Container/mdb.php
diff -u pear/Translation2/Container/mdb.php:1.12 pear/Translation2/Container/mdb.php:1.13
--- pear/Translation2/Container/mdb.php:1.12 Wed Oct 20 10:46:09 2004
+++ pear/Translation2/Container/mdb.php Wed Oct 27 15:11:43 2004
@@ -16,11 +16,11 @@
// | Author: Lorenzo Alberton <l dot alberton at quipo dot it> |
// +----------------------------------------------------------------------+
//
-// $Id: mdb.php,v 1.12 2004/10/20 14:46:09 quipo Exp $
+// $Id: mdb.php,v 1.13 2004/10/27 19:11:43 quipo Exp $
//
/**
* @package Translation2
- * @version $Id: mdb.php,v 1.12 2004/10/20 14:46:09 quipo Exp $
+ * @version $Id: mdb.php,v 1.13 2004/10/27 19:11:43 quipo Exp $
*/
/**
@@ -35,7 +35,7 @@
* by the PEAR MDB abstraction layer to fetch data.
*
* @package Translation2
- * @version $Revision: 1.12 $
+ * @version $Revision: 1.13 $
*/
class Translation2_Container_mdb extends Translation2_Container
{
@@ -281,7 +281,8 @@
if (isset($this->options['strings_tables'][$langID])) {
$tables[$langID] = $this->options['strings_tables'][$langID];
} else {
- $tables[$langID] = $this->options['strings_default_table'];
+ $tables[$langID] = str_replace('%s', $langID,
+ $this->options['strings_default_table']);
}
}
return $tables[$langID];
http://cvs.php.net/diff.php/pear/Translation2/Container/mdb2.php?r1=1.11&r2=1.12&ty=u
Index: pear/Translation2/Container/mdb2.php
diff -u pear/Translation2/Container/mdb2.php:1.11 pear/Translation2/Container/mdb2.php:1.12
--- pear/Translation2/Container/mdb2.php:1.11 Wed Oct 20 10:44:21 2004
+++ pear/Translation2/Container/mdb2.php Wed Oct 27 15:11:43 2004
@@ -16,11 +16,11 @@
// | Author: Lorenzo Alberton <l dot alberton at quipo dot it> |
// +----------------------------------------------------------------------+
//
-// $Id: mdb2.php,v 1.11 2004/10/20 14:44:21 quipo Exp $
+// $Id: mdb2.php,v 1.12 2004/10/27 19:11:43 quipo Exp $
//
/**
* @package Translation2
- * @version $Id: mdb2.php,v 1.11 2004/10/20 14:44:21 quipo Exp $
+ * @version $Id: mdb2.php,v 1.12 2004/10/27 19:11:43 quipo Exp $
*/
/**
@@ -35,7 +35,7 @@
* by the PEAR MDB2 abstraction layer to fetch data.
*
* @package Translation2
- * @version $Revision: 1.11 $
+ * @version $Revision: 1.12 $
*/
class Translation2_Container_mdb2 extends Translation2_Container
{
@@ -281,7 +281,8 @@
if (isset($this->options['strings_tables'][$langID])) {
$tables[$langID] = $this->options['strings_tables'][$langID];
} else {
- $tables[$langID] = $this->options['strings_default_table'];
+ $tables[$langID] = str_replace('%s', $langID,
+ $this->options['strings_default_table']);
}
}
return $tables[$langID];