Exemplo n.º 1
0
function htmlLang($string, $replaces = array(), $quote = true)
{
    return HLEx::lang($string, $replaces, $quote);
}
Exemplo n.º 2
0
 static function summary($html = false)
 {
     $items = Str::langNum('general.goods', static::count(), $html);
     $sum = Str::langNum('general.price', static::subtotal(), $html);
     if ($html) {
         return HLEx::lang('cart.summary', compact('items', 'sum'), false);
     } else {
         return __('vanemart::cart.summary', compact('items', 'sum'))->get();
     }
 }
Exemplo n.º 3
0
 function getStatus($name, $replaces = array())
 {
     \Lang::has($name) or $name = $this->langVarName("ctlstatus.{$name}");
     if (\Lang::has($name)) {
         return HLEx::lang(__($name), $replaces);
     } else {
         Log::warn_Block("Block is missing status language string [{$name}];" . " current action: [{$this->currentAction}].");
     }
 }