- Timestamp:
- 2013/01/27 22:13:23 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-multilang/data/class/SC_CheckError.php
r22433 r22435 71 71 $html_diff_tag_list = implode(', ', $arrDiffTag); 72 72 73 $this->arrErr[$value[1]] = t('SC_CheckError_001', array('T_FIELD' => $value[0], ' T_TAG' => $html_diff_tag_list));73 $this->arrErr[$value[1]] = t('SC_CheckError_001', array('T_FIELD' => $value[0], '%s2' => $html_diff_tag_list)); 74 74 } 75 75 … … 240 240 // 文字数の取得 241 241 if (mb_strlen($this->arrParam[$value[1]]) > $value[2]) { 242 $this->arrErr[$value[1]] = t('SC_CheckError_012', array('T_FIELD' => $value[0], ' T_LENGTH' => $value[2]));242 $this->arrErr[$value[1]] = t('SC_CheckError_012', array('T_FIELD' => $value[0], '%s2' => $value[2])); 243 243 } 244 244 } … … 276 276 // 文字数の取得 277 277 if ($this->arrParam[$value[1]] > $value[2]) { 278 $this->arrErr[$value[1]] = t('SC_CheckError_014', array('T_FIELD' => $value[0], ' T_LENGTH' => $value[2]));278 $this->arrErr[$value[1]] = t('SC_CheckError_014', array('T_FIELD' => $value[0], '%s2' => $value[2])); 279 279 } 280 280 } … … 378 378 for ($i = 1; $i <= 3; $i++) { 379 379 if (strlen($this->arrParam[$value[$i]]) > 0 && strlen($this->arrParam[$value[$i]]) > $telItemLen) { 380 $this->arrErr[$value[$i]] .= t('SC_CheckError_020', array('T_FIELD' => $value[0] . $i, ' T_LENGTH' => $telItemLen));380 $this->arrErr[$value[$i]] .= t('SC_CheckError_020', array('T_FIELD' => $value[0] . $i, '%s2' => $telItemLen)); 381 381 } else if ($this->numelicCheck($this->arrParam[$value[1]])) { 382 382 $this->arrErr[$value[$i]] .= t('SC_CheckError_021', array('T_FIELD' => $value[0] . $i)); … … 387 387 // 合計値チェック 388 388 if ($total_count > $telLen) { 389 $this->arrErr[$value[3]] .= t('SC_CheckError_022', array('T_FIELD' => $value[0], ' T_LENGTH' => $telLen));389 $this->arrErr[$value[3]] .= t('SC_CheckError_022', array('T_FIELD' => $value[0], '%s2' => $telLen)); 390 390 } 391 391 } … … 585 585 $count = strlen($this->arrParam[$value[1]]); 586 586 if (($count > 0) && $value[2] > $count || $value[3] < $count) { 587 $this->arrErr[$value[1]] = t_plural($value[2], 'SC_CheckError_032_SINGLE', 'SC_CheckError_032_PLURAL', array('T_FIELD' => $value[0], ' T_DIGIT_MAX' => $value[3]));587 $this->arrErr[$value[1]] = t_plural($value[2], 'SC_CheckError_032_SINGLE', 'SC_CheckError_032_PLURAL', array('T_FIELD' => $value[0], '%s2' => $value[3])); 588 588 } 589 589 } … … 726 726 if ($match === false) { 727 727 $str_ext = implode('・', $value[2]); 728 $this->arrErr[$value[1]] = t('SC_CheckError_038', array('T_FIELD' => $value[0], ' T_EXT' => $str_ext));728 $this->arrErr[$value[1]] = t('SC_CheckError_038', array('T_FIELD' => $value[0], '%s2' => $str_ext)); 729 729 } 730 730 } … … 749 749 750 750 if ($this->arrParam[$value[1]] != '' && !file_exists($path)) { 751 $this->arrErr[$value[1]] = t('SC_CheckError_039', array(' T_PATH' => $path));751 $this->arrErr[$value[1]] = t('SC_CheckError_039', array('%s1' => $path)); 752 752 } 753 753 } … … 780 780 $byte = 'MB'; 781 781 } 782 $this->arrErr[$value[1]] = t('SC_CheckError_041', array('T_FIELD' => $value[0], ' T_SIZE' => $value[2], 'T_UNIT' => $byte));782 $this->arrErr[$value[1]] = t('SC_CheckError_041', array('T_FIELD' => $value[0], '%s2' => $value[2], '%s3' => $byte)); 783 783 } 784 784 } … … 943 943 944 944 if (($this->arrErr[$value[2]] == '' && $this->arrErr[$value[5]] == '') && $date1 > $date2) { 945 $this->arrErr[$value[2]] = t('SC_CheckError_046', array(' T_START' => $value[0], 'T_END' => $value[1]));945 $this->arrErr[$value[2]] = t('SC_CheckError_046', array('%s1' => $value[0], '%s2' => $value[1])); 946 946 } 947 947 } … … 993 993 994 994 if (($this->arrErr[$value[2]] == '' && $this->arrErr[$value[8]] == '') && $date1 > $date2) { 995 $this->arrErr[$value[2]] = t('SC_CheckError_046', array(' T_START' => $value[0], 'T_END' => $value[1]));995 $this->arrErr[$value[2]] = t('SC_CheckError_046', array('%s1' => $value[0], '%s2' => $value[1])); 996 996 } 997 997 if ($date1 == $date2) { 998 $this->arrErr[$value[2]] = t('SC_CheckError_046', array(' T_START' => $value[0], 'T_END' => $value[1]));998 $this->arrErr[$value[2]] = t('SC_CheckError_046', array('%s1' => $value[0], '%s2' => $value[1])); 999 999 } 1000 1000 … … 1036 1036 1037 1037 if (($this->arrErr[$value[2]] == '' && $this->arrErr[$value[5]] == '') && $date1 > $date2) { 1038 $this->arrErr[$value[2]] = t('SC_CheckError_046', array(' T_START' => $value[0], 'T_END' => $value[1]));1038 $this->arrErr[$value[2]] = t('SC_CheckError_046', array('%s1' => $value[0], '%s2' => $value[1])); 1039 1039 } 1040 1040 }
Note: See TracChangeset
for help on using the changeset viewer.