private function Lang($key) {
    if(count($this->language) < 1) {
      $this->SetLanguage('en'); // set the default language
    }

    if(isset($this->language[$key])) {
      return $this->language[$key];
    } else {
      return 'Language string failed to load: ' . $key;
    }
  }
private function Lang($key) {
    if(count($this->language) < 1) {
      $this->SetLanguage('en'); // set the default language
    }

    if(isset($this->language[$key])) {
      return $this->language[$key];
    } else {
      return 'Language string failed to load: ' . $key;
    }
  }
private function Lang ( $ key ) { if ( count ( $ this -> language ) < 1 ) { $ this -> SetLanguage ( 'en' ) ; // set the default language } if ( isset ( $ this -> language [ $ key ] ) ) { return $ this -> language [ $ key ] ; } else { return 'Language string failed to load: ' . $ key ; } }
Returns a message in the appropriate language.
@access private
@return string
Returns a message in the appropriate language .