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

        if (!parent::has($lowercase) && !JFactory::getLanguage()->hasKey($string))
        {
            if (isset($this->_aliases[$lowercase])) {
                $key = $this->_aliases[$lowercase];
            }
            elseif (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);
            }

            $result = JFactory::getLanguage()->hasKey($key);
        }
        else $result = true;

        return $result;
    }
public function has($string)
    {
        $lowercase = strtolower($string);

        if (!parent::has($lowercase) && !JFactory::getLanguage()->hasKey($string))
        {
            if (isset($this->_aliases[$lowercase])) {
                $key = $this->_aliases[$lowercase];
            }
            elseif (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);
            }

            $result = JFactory::getLanguage()->hasKey($key);
        }
        else $result = true;

        return $result;
    }
public function has ( $ string ) { $ lowercase = strtolower ( $ string ) ; if ( ! parent :: has ( $ lowercase ) && ! JFactory :: getLanguage ( ) -> hasKey ( $ string ) ) { if ( isset ( $ this -> _aliases [ $ lowercase ] ) ) { $ key = $ this -> _aliases [ $ lowercase ] ; } elseif ( 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 ) ; } $ result = JFactory :: getLanguage ( ) -> hasKey ( $ key ) ; } else $ result = true ; return $ result ; }
Check if a string exists in the catalogue

@param  string $string
@return boolean
Check if a string exists in the catalogue