Example #1
0
 static function caption($name)
 {
     return Current::lang('menu.' . strtolower($name));
 }
Example #2
0
 static function langNum($strings, $number, $html = false)
 {
     is_scalar($strings) and $strings = Current::lang($strings);
     return parent::langNum($strings, $number, $html);
 }
Example #3
0
 static function lang($string, $replaces = array(), $quote = true)
 {
     return parent::lang(Current::lang($string), $replaces, $quote);
 }
Example #4
0
 function subject($lang, $vars = array())
 {
     $this->subject = Str::format(Current::lang($lang), $vars);
     $this->view and $this->view->subject = $this->subject;
     return $this;
 }