This commit is contained in:
parent
303e84c347
commit
1096f90f45
@ -31,10 +31,23 @@
|
||||
*/
|
||||
class Doctrine_Template_I18n extends Doctrine_Template
|
||||
{
|
||||
protected $_translation;
|
||||
|
||||
|
||||
public function __construct(array $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()
|
||||
{
|
||||
$this->_plugin->setOption('table', $this->_table);
|
||||
|
Loading…
Reference in New Issue
Block a user