Commit 1096f90f authored by zYne's avatar zYne

--no commit message

--no commit message
parent 303e84c3
...@@ -31,10 +31,23 @@ ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment