lib/Lime/Helper/I18n.php
public function getstr($key, $params=[], $alternative=null, $lang=null){

        if (!$lang) {
            $lang = $this->locale;
        }

        if (!$alternative){
            $alternative = $key;
        }

        return \vsprintf(isset($this->_languages[$lang][$key]) ? $this->_languages[$lang][$key]:$alternative, $params);
    }
public function getstr($key, $params=[], $alternative=null, $lang=null){

        if (!$lang) {
            $lang = $this->locale;
        }

        if (!$alternative){
            $alternative = $key;
        }

        return \vsprintf(isset($this->_languages[$lang][$key]) ? $this->_languages[$lang][$key]:$alternative, $params);
    }
public function getstr ( $ key , $ params = [ ] , $ alternative = null , $ lang = null ) { if ( ! $ lang ) { $ lang = $ this -> locale ; } if ( ! $ alternative ) { $ alternative = $ key ; } return \ vsprintf ( isset ( $ this -> _languages [ $ lang ] [ $ key ] ) ? $ this -> _languages [ $ lang ] [ $ key ] : $ alternative , $ params ) ; }
Get translated string by key and params

@param   string $key translation key
@param   array $params
@param   array $alternative  returns if $key doesn''t exist
@return  string
Get translated string by key and params