Permalink
Browse files

translate presenter title

  • Loading branch information...
1 parent 6ded969 commit 533d2a407cc754ec0dcb005bc456c15b7cdd2b31 @kolinger committed Jan 9, 2013
Showing with 7 additions and 1 deletion.
  1. +7 −1 Application/UI/Presenter.php
@@ -24,6 +24,12 @@ class Presenter extends \Nette\Application\UI\Presenter
const CACHE_NAMESPACE = 'Square.Presenter.Autowire';
/**
+ * @var \Nette\Localization\ITranslator
+ * @autowire
+ */
+ protected $translator;
+
+ /**
* @var array
*/
private $autowire = array();
@@ -60,7 +66,7 @@ public function getTitle()
*/
public function setTitle($title)
{
- $this->title = $title;
+ $this->title = $this->translator->translate($title);
}

0 comments on commit 533d2a4

Please sign in to comment.