public function string($key, $language = '')
    {
        if (!$this->hasTranslations()) {
            return $this->container['lang'][$key];
        }

        if ($language == '') {
            $language = I18N::getCurrent();
        }

        if (array_key_exists('lang_' . $language, $this->container)) {
            return $this->container['lang_' . $language][$key];
        }

        return '';
    }
public function string($key, $language = '')
    {
        if (!$this->hasTranslations()) {
            return $this->container['lang'][$key];
        }

        if ($language == '') {
            $language = I18N::getCurrent();
        }

        if (array_key_exists('lang_' . $language, $this->container)) {
            return $this->container['lang_' . $language][$key];
        }

        return '';
    }
public function string ( $ key , $ language = '' ) { if ( ! $ this -> hasTranslations ( ) ) { return $ this -> container [ 'lang' ] [ $ key ] ; } if ( $ language == '' ) { $ language = I18N :: getCurrent ( ) ; } if ( array_key_exists ( 'lang_' . $ language , $ this -> container ) ) { return $ this -> container [ 'lang_' . $ language ] [ $ key ] ; } return '' ; }
Return the textual version of the term

@param string $key
@param string $language
@return string
Return the textual version of the term