Permalink
Browse files

translator shortcut now uses translator

  • Loading branch information...
1 parent 3fe30a6 commit 6ded9699abd5c34260f668e2710e3e3a5885532b @kolinger committed Jan 9, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 shortcuts.php
View
@@ -3,9 +3,9 @@
/**
* @param $string
* @return string
- * @todo implements translator
*/
function __($string)
{
- return $string;
+ $translator = \Nette\Environment::getContext()->getByType('Nette\Localization\ITranslator');
+ return callback($translator, 'translate')->invokeArgs(func_get_args());
}

0 comments on commit 6ded969

Please sign in to comment.