src/FileTranslator.php
public function deleteTranslation($key, $language = null) {
		if($language === null) {
			$languages = $this->getLanguageList();
		}
		else {
			$languages = array($language);
		}
		foreach ($languages as $language) {
			$messageFile = $this->getMessageFile($language);
			$messageFile->deleteMessage($key);
			$messageFile->save();
			
			unset($this->messages[$language][$key]);
		}
	}
public function deleteTranslation($key, $language = null) {
		if($language === null) {
			$languages = $this->getLanguageList();
		}
		else {
			$languages = array($language);
		}
		foreach ($languages as $language) {
			$messageFile = $this->getMessageFile($language);
			$messageFile->deleteMessage($key);
			$messageFile->save();
			
			unset($this->messages[$language][$key]);
		}
	}
public function deleteTranslation ( $ key , $ language = null ) { if ( $ language === null ) { $ languages = $ this -> getLanguageList ( ) ; } else { $ languages = array ( $ language ) ; } foreach ( $ languages as $ language ) { $ messageFile = $ this -> getMessageFile ( $ language ) ; $ messageFile -> deleteMessage ( $ key ) ; $ messageFile -> save ( ) ; unset ( $ this -> messages [ $ language ] [ $ key ] ) ; } }
Delete a translation for a language. If the language is not set or null, this function deletes the translation for all language.

@param string $key Key to remove
@param string|null $language Language to remove key or null for all
Delete a translation for a language . If the language is not set or null this function deletes the translation for all language .