Ejemplo n.º 1
0
 /**
  * @param string $message
  * @param int|null $count
  * @param array $args
  * @return \Nette\Utils\Html|string
  */
 public function translate($message, $count = null, array $args = array())
 {
     $result = $this->translator->translate($message, $count, $args);
     $last = $this->translator->getLastTranslated();
     if (!$last) {
         return $result;
     }
     if ($this->translator->isDebugMode()) {
         $result .= ' <small><i>(' . $last . ')</i></small>';
     }
     return Html::el()->setHtml($result)->style(array('color' => 'red'));
 }