src/Mouf/Utils/I18n/Fine/Translate/FinePHPArrayTranslationService.php
public function forceLanguage($language) {
		$changeLanguage = false;
		// Check if the user set null to retrieve the initial language
		// If the initial language is already recovered fine don't require the file
		if($language === null) {
			// Save old language
			$language = $this->language;
			// Retrieve initial language
			$this->initLanguage();
			// Chekck if the language change
			if($this->language != $language) {
				$changeLanguage = true;
			}
		}
		// If the user ask a new language not set
		elseif($this->language != $language) {
			$this->language = $language;
			$changeLanguage = true;
		}
		
		// Empty all the old language
		if($changeLanguage) {
			$this->loadFile = array();
			$this->msg = null;
		}
	}
public function forceLanguage($language) {
		$changeLanguage = false;
		// Check if the user set null to retrieve the initial language
		// If the initial language is already recovered fine don't require the file
		if($language === null) {
			// Save old language
			$language = $this->language;
			// Retrieve initial language
			$this->initLanguage();
			// Chekck if the language change
			if($this->language != $language) {
				$changeLanguage = true;
			}
		}
		// If the user ask a new language not set
		elseif($this->language != $language) {
			$this->language = $language;
			$changeLanguage = true;
		}
		
		// Empty all the old language
		if($changeLanguage) {
			$this->loadFile = array();
			$this->msg = null;
		}
	}
public function forceLanguage ( $ language ) { $ changeLanguage = false ; // Check if the user set null to retrieve the initial language
 // If the initial language is already recovered fine don't require the file
 if ( $ language === null ) { // Save old language
 $ language = $ this -> language ; // Retrieve initial language
 $ this -> initLanguage ( ) ; // Chekck if the language change
 if ( $ this -> language != $ language ) { $ changeLanguage = true ; } } // If the user ask a new language not set
 elseif ( $ this -> language != $ language ) { $ this -> language = $ language ; $ changeLanguage = true ; } // Empty all the old language
 if ( $ changeLanguage ) { $ this -> loadFile = array ( ) ; $ this -> msg = null ; } }
Use this function to force the language.
Don't forget to call this function with null to restore default parameters.
Return true if the language change, else the language is the same,
this function return false

@param string $language
@return bool
Use this function to force the language . Don t forget to call this function with null to restore default parameters . Return true if the language change else the language is the same this function return false