src/Language.php
public function set($lang) {
		if ($this->isValid($lang)) {
			$this->_language = $lang;
			$this->_l10n = $this->getL10n();

			// switch the locales
			$this->setLocale($this->_l10n['keys']);

			// clear content because language has changed
			$this->_content = null;
			return true;
		}
		return false;
	}
public function set($lang) {
		if ($this->isValid($lang)) {
			$this->_language = $lang;
			$this->_l10n = $this->getL10n();

			// switch the locales
			$this->setLocale($this->_l10n['keys']);

			// clear content because language has changed
			$this->_content = null;
			return true;
		}
		return false;
	}
public function set ( $ lang ) { if ( $ this -> isValid ( $ lang ) ) { $ this -> _language = $ lang ; $ this -> _l10n = $ this -> getL10n ( ) ; // switch the locales $ this -> setLocale ( $ this -> _l10n [ 'keys' ] ) ; // clear content because language has changed $ this -> _content = null ; return true ; } return false ; }
Sets the current language. Has to be one of the `possible` languages.
@param	string	$lang	The language to set.
@return	`bool` Returns `true` if the language could be changed or `false` if not
Sets the current language . Has to be one of the possible languages .