code/libraries/joomlatools/component/koowa/translator/catalogue/abstract.php
public function get($string)
    {
        $lowercase = strtolower($string);

        if (!parent::has($lowercase))
        {
            if (isset($this->_aliases[$lowercase])) {
                $key = $this->_aliases[$lowercase];
            }
            else if(!JFactory::getLanguage()->hasKey($string))
            {
                if (substr($string, 0, strlen($this->getPrefix())) === $this->getPrefix()) {
                    $key = $string;
                } else {
                    //Gets a key from the catalogue and prefixes it
                    $key = $this->getPrefix().$this->generateKey($string);
                }
            }
            else $key = $string;

            $this->set($lowercase, JFactory::getLanguage()->_($key));
        }

        return parent::get($lowercase);
    }
public function get($string)
    {
        $lowercase = strtolower($string);

        if (!parent::has($lowercase))
        {
            if (isset($this->_aliases[$lowercase])) {
                $key = $this->_aliases[$lowercase];
            }
            else if(!JFactory::getLanguage()->hasKey($string))
            {
                if (substr($string, 0, strlen($this->getPrefix())) === $this->getPrefix()) {
                    $key = $string;
                } else {
                    //Gets a key from the catalogue and prefixes it
                    $key = $this->getPrefix().$this->generateKey($string);
                }
            }
            else $key = $string;

            $this->set($lowercase, JFactory::getLanguage()->_($key));
        }

        return parent::get($lowercase);
    }
public function get ( $ string ) { $ lowercase = strtolower ( $ string ) ; if ( ! parent :: has ( $ lowercase ) ) { if ( isset ( $ this -> _aliases [ $ lowercase ] ) ) { $ key = $ this -> _aliases [ $ lowercase ] ; } else if ( ! JFactory :: getLanguage ( ) -> hasKey ( $ string ) ) { if ( substr ( $ string , 0 , strlen ( $ this -> getPrefix ( ) ) ) === $ this -> getPrefix ( ) ) { $ key = $ string ; } else { //Gets a key from the catalogue and prefixes it $ key = $ this -> getPrefix ( ) . $ this -> generateKey ( $ string ) ; } } else $ key = $ string ; $ this -> set ( $ lowercase , JFactory :: getLanguage ( ) -> _ ( $ key ) ) ; } return parent :: get ( $ lowercase ) ; }
Get a string from the catalogue

@param string $string
@return string
Get a string from the catalogue