src/Mouf/Utils/I18n/Fine/Translate/FinePHPArrayTranslationService.php
public function createLanguageFile($language) {
		if ($language=="default") {
			$file = ROOT_PATH.$this->i18nMessagePath."message.php";
		} else {
			$file = ROOT_PATH.$this->i18nMessagePath."message_".$language.".php";
		}
		
		if (!is_writable($file)) {
			if (!file_exists($file)) {
				// Does the directory exist?
				$dir = dirname($file);
				if (!file_exists($dir)) {
					$old = umask(0);
					$result = mkdir($dir, 0775, true);
					umask($old);
					
					if ($result == false) {
						$exception = new \Exception("Unable to create directory ".$dir);
						throw $exception;
					}
				}
			} else {			
				$exception = new \Exception("Unable to write file ".$file);
				throw $exception;
			}
		}
		
		if (!file_exists($file)) {
			$fp = fopen($file, "w");
			fclose($fp);
			chmod($file, 0664);
		}
	}
public function createLanguageFile($language) {
		if ($language=="default") {
			$file = ROOT_PATH.$this->i18nMessagePath."message.php";
		} else {
			$file = ROOT_PATH.$this->i18nMessagePath."message_".$language.".php";
		}
		
		if (!is_writable($file)) {
			if (!file_exists($file)) {
				// Does the directory exist?
				$dir = dirname($file);
				if (!file_exists($dir)) {
					$old = umask(0);
					$result = mkdir($dir, 0775, true);
					umask($old);
					
					if ($result == false) {
						$exception = new \Exception("Unable to create directory ".$dir);
						throw $exception;
					}
				}
			} else {			
				$exception = new \Exception("Unable to write file ".$file);
				throw $exception;
			}
		}
		
		if (!file_exists($file)) {
			$fp = fopen($file, "w");
			fclose($fp);
			chmod($file, 0664);
		}
	}
public function createLanguageFile ( $ language ) { if ( $ language == "default" ) { $ file = ROOT_PATH . $ this -> i18nMessagePath . "message.php" ; } else { $ file = ROOT_PATH . $ this -> i18nMessagePath . "message_" . $ language . ".php" ; } if ( ! is_writable ( $ file ) ) { if ( ! file_exists ( $ file ) ) { // Does the directory exist?
 $ dir = dirname ( $ file ) ; if ( ! file_exists ( $ dir ) ) { $ old = umask ( 0 ) ; $ result = mkdir ( $ dir , 0775 , true ) ; umask ( $ old ) ; if ( $ result == false ) { $ exception = new \ Exception ( "Unable to create directory " . $ dir ) ; throw $ exception ; } } } else { $ exception = new \ Exception ( "Unable to write file " . $ file ) ; throw $ exception ; } } if ( ! file_exists ( $ file ) ) { $ fp = fopen ( $ file , "w" ) ; fclose ( $ fp ) ; chmod ( $ file , 0664 ) ; } }
Creates the file for specified language.
If the file already exists, the function does nothing.

@param string $language
Creates the file for specified language . If the file already exists the function does nothing .