1
0
mirror of synced 2025-01-19 06:51:40 +03:00
This commit is contained in:
zYne 2007-09-13 18:42:52 +00:00
parent 303e84c347
commit 1096f90f45

View File

@ -31,10 +31,23 @@
*/ */
class Doctrine_Template_I18n extends Doctrine_Template class Doctrine_Template_I18n extends Doctrine_Template
{ {
protected $_translation;
public function __construct(array $options) public function __construct(array $options)
{ {
$this->_plugin = new Doctrine_I18n($options); $this->_plugin = new Doctrine_I18n($options);
} }
/**
* translation
* sets or retrieves the current translation language
*
* @return Doctrine_Record this object
*/
public function translation($language = null)
{
$this->_translation = $language;
}
public function setUp() public function setUp()
{ {
$this->_plugin->setOption('table', $this->_table); $this->_plugin->setOption('table', $this->_table);