private static function cache(File $cache, File $file) {

		if(false === isset(static :: $translations[$cache -> entity() -> getName()])) {

			$parse = true;

			if(true === $cache -> exists()) {
				
				if($cache -> entity() -> getModificationTime() >= $file -> entity() -> getModificationTime()) {
					$parse = false;
				}
			}

			//Check if file needs to be parsed
			if(true === $parse) {

				$content = serialize(static :: parse($file));
				$cache -> create() -> flush() -> append($content);
			}

			static :: $translations[$cache -> entity() -> getName()] = unserialize($cache -> getContent());
		}
	}
private static function cache(File $cache, File $file) {

		if(false === isset(static :: $translations[$cache -> entity() -> getName()])) {

			$parse = true;

			if(true === $cache -> exists()) {
				
				if($cache -> entity() -> getModificationTime() >= $file -> entity() -> getModificationTime()) {
					$parse = false;
				}
			}

			//Check if file needs to be parsed
			if(true === $parse) {

				$content = serialize(static :: parse($file));
				$cache -> create() -> flush() -> append($content);
			}

			static :: $translations[$cache -> entity() -> getName()] = unserialize($cache -> getContent());
		}
	}
private static function cache ( File $ cache , File $ file ) { if ( false === isset ( static :: $ translations [ $ cache -> entity ( ) -> getName ( ) ] ) ) { $ parse = true ; if ( true === $ cache -> exists ( ) ) { if ( $ cache -> entity ( ) -> getModificationTime ( ) >= $ file -> entity ( ) -> getModificationTime ( ) ) { $ parse = false ; } } //Check if file needs to be parsed
 if ( true === $ parse ) { $ content = serialize ( static :: parse ( $ file ) ) ; $ cache -> create ( ) -> flush ( ) -> append ( $ content ) ; } static :: $ translations [ $ cache -> entity ( ) -> getName ( ) ] = unserialize ( $ cache -> getContent ( ) ) ; } }
Returns cache if exists, otherwise the translation cache file is created, filled with content and returned
@param sFire\System\File $cache
@param sFire\System\File $file
Returns cache if exists otherwise the translation cache file is created filled with content and returned