From 1096f90f45df8bcca8f13a6bdde9907c36a5781e Mon Sep 17 00:00:00 2001 From: zYne Date: Thu, 13 Sep 2007 18:42:52 +0000 Subject: [PATCH] --- lib/Doctrine/Template/I18n.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/Doctrine/Template/I18n.php b/lib/Doctrine/Template/I18n.php index 932c2cc9e..badc937bf 100644 --- a/lib/Doctrine/Template/I18n.php +++ b/lib/Doctrine/Template/I18n.php @@ -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);