- Timestamp:
- 2013/01/31 18:39:05 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-multilang/data/class/batch/SC_Batch_Update.php
r22433 r22489 64 64 65 65 if (!is_writable($bkupPath) || !is_writable($bkupPathFile)) { 66 $msg = t(' SC_Batch_Update_001');66 $msg = t('c_Creation of backup directory failed_01'); 67 67 $arrLog['err'][] = $msg; 68 68 $this->printLog($msg); … … 94 94 if (in_array($fileName, $excludeArray)) { 95 95 //$arrLog['ok'][] = '次のファイルは除外されました: ' . $path; 96 $msg = t(' SC_Batch_Update_002') . $path;96 $msg = t('c_The following file was excluded: _01') . $path; 97 97 $this->printLog($msg); 98 98 continue; … … 115 115 $out = $distinfo[$sha1]; 116 116 } else { 117 $msg = t(' SC_Batch_Update_003') . $path;117 $msg = t('c_The hash value does not match and the copy destination cannot be retrieved: _01') . $path; 118 118 $arrLog['err'][] = $msg; 119 119 $this->printLog($msg); … … 122 122 123 123 if (file_exists($out) && $sha1 == sha1_file($out)) { 124 $msg = t(' SC_Batch_Update_004') . $out;124 $msg = t('c_Files with the same contents were skipped: _01') . $out; 125 125 $this->printLog($msg); 126 126 continue; … … 133 133 134 134 if (!@copy($out, $bkupTo)) { 135 $msg = t(' SC_Batch_Update_005') . $out . ' -> ' . $bkupTo;135 $msg = t('c_Creation of backup file failed: _01') . $out . ' -> ' . $bkupTo; 136 136 $arrLog['err'][] = $msg; 137 137 $this->printLog($msg); 138 138 break 2; 139 139 } 140 $msg = t(' SC_Batch_Update_005') . $out . ' -> ' . $bkupTo;140 $msg = t('c_Creation of backup file failed: _01') . $out . ' -> ' . $bkupTo; 141 141 $this->printLog($msg); 142 142 } … … 149 149 $handle = @fopen($out, 'w'); 150 150 if (!$handle) { 151 $msg = t(' SC_Batch_Update_006') . $out;151 $msg = t('c_The copying destination does not have write access: _01') . $out; 152 152 $arrLog['err'][] = $msg; 153 153 $this->printLog($msg); … … 158 158 // 取得した内容を書き込む 159 159 if (fwrite($handle, $contents) === false) { 160 $msg = t(' SC_Batch_Update_006') . $out;160 $msg = t('c_The copying destination does not have write access: _01') . $out; 161 161 $arrLog['err'][] = $msg; 162 162 $this->printLog($msg); … … 164 164 } 165 165 166 $msg = t(' SC_Batch_Update_007') . $out;166 $msg = t('c_File copying was successful: _01') . $out; 167 167 $arrLog['ok'][] = $msg; 168 168 $this->printLog($msg); … … 178 178 @fwrite($handle, $src); 179 179 @fclose($handle); 180 $msg = t(' SC_Batch_Update_008') . $bkupPath . 'distinfo.php';180 $msg = t('c_distinfo file creation was successful: _01') . $bkupPath . 'distinfo.php'; 181 181 $this->printLog($msg); 182 182 } else { 183 $msg = t(' SC_Batch_Update_009') . $bkupPath . 'distinfo.php';183 $msg = t('c_distinfo file creation failed: _01') . $bkupPath . 'distinfo.php'; 184 184 $arrLog['err'][] = $msg; 185 185 $this->printLog($msg);
Note: See TracChangeset
for help on using the changeset viewer.