src/Services/Lang.php
public function get($tag)
    {
        // load if necessary
        if (!$this->loaded) {
            $this->load();
        }

        // get tag
        if (!isset($this->phrases[$tag]) || $this->phrases[$tag] == '') {
            return 'LOCALIZE [' . $this->local . ']: ' . $tag;
        } else {
            return $this->phrases[$tag];
        }
    }
public function get($tag)
    {
        // load if necessary
        if (!$this->loaded) {
            $this->load();
        }

        // get tag
        if (!isset($this->phrases[$tag]) || $this->phrases[$tag] == '') {
            return 'LOCALIZE [' . $this->local . ']: ' . $tag;
        } else {
            return $this->phrases[$tag];
        }
    }
public function get ( $ tag ) { // load if necessary if ( ! $ this -> loaded ) { $ this -> load ( ) ; } // get tag if ( ! isset ( $ this -> phrases [ $ tag ] ) || $ this -> phrases [ $ tag ] == '' ) { return 'LOCALIZE [' . $ this -> local . ']: ' . $ tag ; } else { return $ this -> phrases [ $ tag ] ; } }
method to display phrases
@param $tag
@return mixed|string
@throws \Exception
method to display phrases