public function writeTranslation($strings, $module) {
		
		$folder = APPLICATION_PATH . (is_a($module,'Pair\Module') ? '/modules/' . $module->name : '') . '/translations/';
		$file = $folder . $this->getRepresentation() . '.ini';
		
		// checks that folder exists
		if (!file_exists($file)) {
			
			if (is_dir($folder) and is_writable($folder)) {
				
				try {
					
					// creates new language file
					touch($file);
					chmod($file, 0777);
					
					// sets standard file head
					$head = "; \$Id\$\r\n";
					
				} catch (\Exception $e) {
					
					trigger_error($e->getMessage());
					return FALSE;
					
				}
				
			} else {
				
				trigger_error('Translation file ' . $file . ' cannot be read');
				return FALSE;
			}
			
		}
		
		$lines = array();
		
		// translated lines only if not empty
		foreach ($strings as $key=>$value) {
			if ($value) {
				$lines[] = $key . ' = "' . $value . '"';
			}
		}
		
		$content = implode("\n", $lines);
		
		try {
			
			$res = file_put_contents($file, $content);
			
		} catch (\Exception $e) {
			
			$app = Application::getInstance();
			$app->logError('Translation file ' . $file . ' cannot be written due its permission');
			$res = FALSE;
			
		}
		
		return $res;
		
	}