src/FileTranslator.php
public function getTranslationsForLanguage($language) {
		if (!isset($this->messages[$language])) {
			$messageLanguage = $this->getMessageFile($language);
			$this->messages[$language] = $messageLanguage->getAllMessages();
		}		
		return $this->messages[$language];
	}
public function getTranslationsForLanguage($language) {
		if (!isset($this->messages[$language])) {
			$messageLanguage = $this->getMessageFile($language);
			$this->messages[$language] = $messageLanguage->getAllMessages();
		}		
		return $this->messages[$language];
	}
public function getTranslationsForLanguage ( $ language ) { if ( ! isset ( $ this -> messages [ $ language ] ) ) { $ messageLanguage = $ this -> getMessageFile ( $ language ) ; $ this -> messages [ $ language ] = $ messageLanguage -> getAllMessages ( ) ; } return $ this -> messages [ $ language ] ; }
Return a list of all message for a language.

@param string $language Language
@return array<string, string> List with key value of translation
Return a list of all message for a language .