Use LF instead of CRLF
This commit is contained in:
parent
6596a105e7
commit
83f99b5ba6
@ -154,14 +154,14 @@ class autoTranslator
|
|||||||
if (isset($this->_translatedFiles[$file]) && count($this->_translatedFiles[$file])>0)
|
if (isset($this->_translatedFiles[$file]) && count($this->_translatedFiles[$file])>0)
|
||||||
{
|
{
|
||||||
$fp = fopen($destPath, 'a');
|
$fp = fopen($destPath, 'a');
|
||||||
fwrite($fp, "\r\n");
|
fwrite($fp, "\n");
|
||||||
fwrite($fp, "\r\n");
|
fwrite($fp, "\n");
|
||||||
fwrite($fp, "// START - Lines generated via autotranslator.php tool (".$this->_time.").\r\n");
|
fwrite($fp, "// START - Lines generated via autotranslator.php tool (".$this->_time.").\n");
|
||||||
fwrite($fp, "// Reference language: ".$this->_refLang." -> ".$my_destlang."\r\n");
|
fwrite($fp, "// Reference language: ".$this->_refLang." -> ".$my_destlang."\n");
|
||||||
foreach( $this->_translatedFiles[$file] as $line) {
|
foreach( $this->_translatedFiles[$file] as $line) {
|
||||||
fwrite($fp, $line . "\r\n");
|
fwrite($fp, $line . "\n");
|
||||||
}
|
}
|
||||||
fwrite($fp, "// STOP - Lines generated via autotranslator.php tool (".$this->_time_end.").\r\n");
|
fwrite($fp, "// STOP - Lines generated via autotranslator.php tool (".$this->_time_end.").\n");
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
@ -177,11 +177,11 @@ class autoTranslator
|
|||||||
private function createTranslationFile($path,$my_destlang)
|
private function createTranslationFile($path,$my_destlang)
|
||||||
{
|
{
|
||||||
$fp = fopen($path, 'w+');
|
$fp = fopen($path, 'w+');
|
||||||
fwrite($fp, "/*\r\n");
|
fwrite($fp, "/*\n");
|
||||||
fwrite($fp, " * Language code: {$my_destlang}\r\n");
|
fwrite($fp, " * Language code: {$my_destlang}\n");
|
||||||
fwrite($fp, " * Automatic generated via autotranslator.php tool\r\n");
|
fwrite($fp, " * Automatic generated via autotranslator.php tool\n");
|
||||||
fwrite($fp, " * Generation date " . $this->_time. "\r\n");
|
fwrite($fp, " * Generation date " . $this->_time. "\n");
|
||||||
fwrite($fp, " */\r\n");
|
fwrite($fp, " */\n");
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user