- Timestamp:
- 2013/01/25 18:16:49 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-multilang/data/class/SC_CheckError.php
r22389 r22390 87 87 $this->createParam($value); 88 88 if (!is_array($this->arrParam[$value[1]]) && strlen($this->arrParam[$value[1]]) == 0) { 89 $this->arrErr[$value[1]] = t(' t_* T_FIELD is blank. <br />_01', array('T_FIELD' => $value[0]));89 $this->arrErr[$value[1]] = t('c_* T_FIELD is blank. <br />_01', array('T_FIELD' => $value[0])); 90 90 } else if (is_array($this->arrParam[$value[1]]) && count($this->arrParam[$value[1]]) == 0) { 91 $this->arrErr[$value[1]] = t(' t_* T_FIELD is not selected. <br />_01', array('T_FIELD' => $value[0]));91 $this->arrErr[$value[1]] = t('c_* T_FIELD is not selected. <br />_01', array('T_FIELD' => $value[0])); 92 92 } 93 93 } … … 106 106 $this->createParam($value); 107 107 if (strlen($this->arrParam[$value[0]]) == 0) { 108 $this->arrErr[$value[0]] = t(' t_* T_FIELD is blank. <br />_01', array('T_FIELD' => $value[1]));108 $this->arrErr[$value[0]] = t('c_* T_FIELD is blank. <br />_01', array('T_FIELD' => $value[1])); 109 109 } 110 110 } … … 123 123 $this->createParam($value); 124 124 if (strlen($this->arrParam[$value[1]]) != 0 && preg_match("/^[ \t\r\n]+$/", $this->arrParam[$value[1]])) { 125 $this->arrErr[$value[1]] = t(' t_* Spaces, tabs and line breaks are not possible in T_FIELD. <br />_01', array('T_FIELD' => $value[0]));125 $this->arrErr[$value[1]] = t('c_* Spaces, tabs and line breaks are not possible in T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 126 126 } 127 127 } … … 140 140 $this->createParam($value); 141 141 if (strlen($this->arrParam[$value[1]]) != 0 && preg_match("/[ \t\r\n]+/u", $this->arrParam[$value[1]])) { 142 $this->arrErr[$value[1]] = t(' t_* Do not include spaces, tabs or line breaks in T_FIELD. <br />_01', array('T_FIELD' => $value[0]));142 $this->arrErr[$value[1]] = t('c_* Do not include spaces, tabs or line breaks in T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 143 143 } 144 144 } … … 151 151 $this->createParam($value); 152 152 if (strlen($this->arrParam[$value[1]]) != 0 && preg_match("/^[0]+[0-9]+$/", $this->arrParam[$value[1]])) { 153 $this->arrErr[$value[1]] = t(' t_* A numerical value that starts with 0 has been entered for T_FIELD. <br />_01', array('T_FIELD' => $value[0]));153 $this->arrErr[$value[1]] = t('c_* A numerical value that starts with 0 has been entered for T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 154 154 } 155 155 } … … 168 168 $this->createParam($value); 169 169 if (strlen($this->arrParam[$value[1]]) == 0) { 170 $this->arrErr[$value[1]] = t(' t_* T_FIELD is not selected. <br />_01', array('T_FIELD' => $value[0]));170 $this->arrErr[$value[1]] = t('c_* T_FIELD is not selected. <br />_01', array('T_FIELD' => $value[0])); 171 171 } 172 172 } … … 186 186 // 文字数の取得 187 187 if ($this->arrParam[$value[2]] !== $this->arrParam[$value[3]]) { 188 $this->arrErr[$value[2]] = t(' t_* T_FIELD_1ST and T_FIELD_2ND do not match. <br />_01', array('T_FIELD_1ST' => $value[0], 'T_FIELD_2ND' => $value[1]));188 $this->arrErr[$value[2]] = t('c_* T_FIELD_1ST and T_FIELD_2ND do not match. <br />_01', array('T_FIELD_1ST' => $value[0], 'T_FIELD_2ND' => $value[1])); 189 189 } 190 190 } … … 204 204 // 文字数の取得 205 205 if ($this->arrParam[$value[2]] == $this->arrParam[$value[3]]) { 206 $this->arrErr[$value[2]] = t(' t_* The same value cannot be used for T_FIELD_1ST and T_FIELD_2ND. <br />_01', array('T_FIELD_1ST' => $value[0], 'T_FIELD_2ND' => $value[1]));206 $this->arrErr[$value[2]] = t('c_* The same value cannot be used for T_FIELD_1ST and T_FIELD_2ND. <br />_01', array('T_FIELD_1ST' => $value[0], 'T_FIELD_2ND' => $value[1])); 207 207 } 208 208 } … … 222 222 // 文字数の取得 223 223 if ($this->arrParam[$value[2]] != '' && $this->arrParam[$value[3]] != '' && ($this->arrParam[$value[2]] > $this->arrParam[$value[3]])) { 224 $this->arrErr[$value[2]] = t(' t_* It is not possible to enter a larger value for T_FIELD_1ST than for T_FIELD_2ND. <br />_01', array('T_FIELD_1ST' => $value[0], 'T_FIELD_2ND' => $value[1]));224 $this->arrErr[$value[2]] = t('c_* It is not possible to enter a larger value for T_FIELD_1ST than for T_FIELD_2ND. <br />_01', array('T_FIELD_1ST' => $value[0], 'T_FIELD_2ND' => $value[1])); 225 225 } 226 226 } … … 240 240 // 文字数の取得 241 241 if (mb_strlen($this->arrParam[$value[1]]) > $value[2]) { 242 $this->arrErr[$value[1]] = t(' t_* For T_FIELD, enter T_LENGTH characters or less. <br />_01', array('T_FIELD' => $value[0], 'T_LENGTH' => $value[2]));242 $this->arrErr[$value[1]] = t('c_* For T_FIELD, enter T_LENGTH characters or less. <br />_01', array('T_FIELD' => $value[0], 'T_LENGTH' => $value[2])); 243 243 } 244 244 } … … 258 258 // 文字数の取得 259 259 if (mb_strlen($this->arrParam[$value[1]]) < $value[2]) { 260 $this->arrErr[$value[1]] = t_plural($value[2], ' SC_CheckError_013', 't_* For T_FIELD, input T_COUNT characters or more. <br />_01', array('T_FIELD' => $value[0]));260 $this->arrErr[$value[1]] = t_plural($value[2], 'c_* For T_FIELD, enter T_COUNT characters or more. <br />_01', 'c_* For T_FIELD, input T_COUNT characters or more. <br />_01', array('T_FIELD' => $value[0])); 261 261 } 262 262 } … … 276 276 // 文字数の取得 277 277 if ($this->arrParam[$value[1]] > $value[2]) { 278 $this->arrErr[$value[1]] = t(' t_* For T_FIELD, enter T_LENGTH or smaller. <br />_01', array('T_FIELD' => $value[0], 'T_LENGTH' => $value[2]));278 $this->arrErr[$value[1]] = t('c_* For T_FIELD, enter T_LENGTH or smaller. <br />_01', array('T_FIELD' => $value[0], 'T_LENGTH' => $value[2])); 279 279 } 280 280 } … … 293 293 $this->createParam($value); 294 294 if ($this->arrParam[$value[1]] < $value[2]) { 295 $this->arrErr[$value[1]] = t_plural($value[2], ' t_* Enter T_COUNT or higher for T_FIELD. <br />_01', 't_* Input T_COUNT or higher for T_FIELD. <br />_01', array('T_FIELD' => $value[0]));295 $this->arrErr[$value[1]] = t_plural($value[2], 'c_* Enter T_COUNT or higher for T_FIELD. <br />_01', 'c_* Input T_COUNT or higher for T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 296 296 } 297 297 } … … 310 310 $this->createParam($value); 311 311 if ($this->numelicCheck($this->arrParam[$value[1]])) { 312 $this->arrErr[$value[1]] = t(' t_* Enter only numbers for T_FIELD. <br />_01', array('T_FIELD' => $value[0]));312 $this->arrErr[$value[1]] = t('c_* Enter only numbers for T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 313 313 } 314 314 } … … 327 327 $this->createParam($value); 328 328 if (strlen($this->arrParam[$value[1]]) > 0 && !is_numeric($this->arrParam[$value[1]])) { 329 $this->arrErr[$value[1]] = t(' t_* Enter only numbers for T_FIELD. <br />_02', array('T_FIELD' => $value[0]));329 $this->arrErr[$value[1]] = t('c_* Enter only numbers for T_FIELD. <br />_02', array('T_FIELD' => $value[0])); 330 330 } 331 331 } … … 337 337 $this->createParam($value); 338 338 if (strlen($this->arrParam[$value[1]]) > 0 && !ctype_alpha($this->arrParam[$value[1]])) { 339 $this->arrErr[$value[1]] = t(' t_* Enter alphabetical characters for T_FIELD. <br />_01', array('T_FIELD' => $value[0]));339 $this->arrErr[$value[1]] = t('c_* Enter alphabetical characters for T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 340 340 } 341 341 } … … 372 372 // すべての項目が満たされていない場合を判定(一部だけ入力されている状態) 373 373 if ($cnt > 0 && $cnt < 3) { 374 $this->arrErr[$value[1]] .= t(' t_* Enter all items for T_FIELD. <br />_01', array('T_FIELD' => $value[0]));374 $this->arrErr[$value[1]] .= t('c_* Enter all items for T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 375 375 } 376 376 … … 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(' t_* T_FIELD must be T_LENGTH characters or less. <br />_01', array('T_FIELD' => $value[0] . $i, 'T_LENGTH' => $telItemLen));380 $this->arrErr[$value[$i]] .= t('c_* T_FIELD must be T_LENGTH characters or less. <br />_01', array('T_FIELD' => $value[0] . $i, 'T_LENGTH' => $telItemLen)); 381 381 } else if ($this->numelicCheck($this->arrParam[$value[1]])) { 382 $this->arrErr[$value[$i]] .= t(' t_* Enter numbers for T_FIELD. <br />_01', array('T_FIELD' => $value[0] . $i));382 $this->arrErr[$value[$i]] .= t('c_* Enter numbers for T_FIELD. <br />_01', array('T_FIELD' => $value[0] . $i)); 383 383 } 384 384 $total_count += strlen($this->arrParam[$value[$i]]); … … 387 387 // 合計値チェック 388 388 if ($total_count > $telLen) { 389 $this->arrErr[$value[3]] .= t(' t_* For T_FIELD, enter within a text length of T_LENGTH. <br />_01', array('T_FIELD' => $value[0], 'T_LENGTH' => $telLen));389 $this->arrErr[$value[3]] .= t('c_* For T_FIELD, enter within a text length of T_LENGTH. <br />_01', array('T_FIELD' => $value[0], 'T_LENGTH' => $telLen)); 390 390 } 391 391 } … … 415 415 416 416 if ($blank) { 417 $this->arrErr[$value[1]] = t(' t_* T_FIELD is blank. <br />_01', array('T_FIELD' => $value[0]));417 $this->arrErr[$value[1]] = t('c_* T_FIELD is blank. <br />_01', array('T_FIELD' => $value[0])); 418 418 } 419 419 } … … 446 446 447 447 if ($blank && $input) { 448 $this->arrErr[$value[1]] = t(' t_* Enter all items for T_FIELD. <br />_01', array('T_FIELD' => $value[0]));448 $this->arrErr[$value[1]] = t('c_* Enter all items for T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 449 449 } 450 450 } … … 474 474 475 475 if (!$input) { 476 $this->arrErr[$value[1]] = t(' t_* T_FIELD is blank. <br />_01', array('T_FIELD' => $value[0]));476 $this->arrErr[$value[1]] = t('c_* T_FIELD is blank. <br />_01', array('T_FIELD' => $value[0])); 477 477 } 478 478 } … … 508 508 509 509 if ($error) { 510 $this->arrErr[$value[1]] = t(' t_* Enter items in order, starting at the beginning. <br />_01', array('T_FIELD' => $value[0]));510 $this->arrErr[$value[1]] = t('c_* Enter items in order, starting at the beginning. <br />_01', array('T_FIELD' => $value[0])); 511 511 } 512 512 } … … 521 521 $this->createParam($value); 522 522 if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[ァ-ヶヲ-゚ー]+$/u", $this->arrParam[$value[1]])) { 523 $this->arrErr[$value[1]] = t(' t_* For T_FIELD, enter katakana characters. <br />_01', array('T_FIELD' => $value[0]));523 $this->arrErr[$value[1]] = t('c_* For T_FIELD, enter katakana characters. <br />_01', array('T_FIELD' => $value[0])); 524 524 } 525 525 } … … 534 534 $this->createParam($value); 535 535 if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^([ \t\r\n]|[ァ-ヶ]|[ー])+$/u", $this->arrParam[$value[1]])) { 536 $this->arrErr[$value[1]] = t(' t_* For T_FIELD, enter katakana characters. <br />_02', array('T_FIELD' => $value[0]));536 $this->arrErr[$value[1]] = t('c_* For T_FIELD, enter katakana characters. <br />_02', array('T_FIELD' => $value[0])); 537 537 } 538 538 } … … 547 547 $this->createParam($value); 548 548 if (strlen($this->arrParam[$value[1]]) > 0 && !ctype_alnum($this->arrParam[$value[1]])) { 549 $this->arrErr[$value[1]] = t(' t_* Enter alphanumeric characters for T_FIELD. <br />_01', array('T_FIELD' => $value[0]));549 $this->arrErr[$value[1]] = t('c_* Enter alphanumeric characters for T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 550 550 } 551 551 } … … 560 560 $this->createParam($value); 561 561 if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[[:graph:][:space:]]+$/i", $this->arrParam[$value[1]])) { 562 $this->arrErr[$value[1]] = t(' t_* Enter alphanumeric symbols for T_FIELD. <br />_01', array('T_FIELD' => $value[0]));562 $this->arrErr[$value[1]] = t('c_* Enter alphanumeric symbols for T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 563 563 } 564 564 } … … 824 824 // 年月日のどれかが入力されていない。 825 825 if (!(strlen($this->arrParam[$value[1]]) > 0 && strlen($this->arrParam[$value[2]]) > 0 && strlen($this->arrParam[$value[3]]) > 0)) { 826 $this->arrErr[$value[1]] = t(' t_* Enter all items for T_FIELD. <br />_01', array('T_FIELD' => $value[0]));826 $this->arrErr[$value[1]] = t('c_* Enter all items for T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 827 827 } else if (! checkdate($this->arrParam[$value[2]], $this->arrParam[$value[3]], $this->arrParam[$value[1]])) { 828 828 $this->arrErr[$value[1]] = t('SC_CheckError_044', array('T_FIELD' => $value[0])); … … 847 847 // 年月日時のどれかが入力されていない。 848 848 if (!(strlen($this->arrParam[$value[1]]) > 0 && strlen($this->arrParam[$value[2]]) > 0 && strlen($this->arrParam[$value[3]]) > 0 && strlen($this->arrParam[$value[4]]) > 0 && strlen($this->arrParam[$value[5]]) > 0)) { 849 $this->arrErr[$value[1]] = t(' t_* Enter all items for T_FIELD. <br />_01', array('T_FIELD' => $value[0]));849 $this->arrErr[$value[1]] = t('c_* Enter all items for T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 850 850 } else if (! checkdate($this->arrParam[$value[2]], $this->arrParam[$value[3]], $this->arrParam[$value[1]])) { 851 851 $this->arrErr[$value[1]] = t('SC_CheckError_044', array('T_FIELD' => $value[0])); … … 867 867 // 年月日時のどれかが入力されていない。 868 868 if (!(strlen($this->arrParam[$value[1]]) > 0 && strlen($this->arrParam[$value[2]]) > 0)) { 869 $this->arrErr[$value[1]] = t(' t_* Enter all items for T_FIELD. <br />_01', array('T_FIELD' => $value[0]));869 $this->arrErr[$value[1]] = t('c_* Enter all items for T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 870 870 } else if (! checkdate($this->arrParam[$value[2]], 1, $this->arrParam[$value[1]])) { 871 871 $this->arrErr[$value[1]] = t('SC_CheckError_044', array('T_FIELD' => $value[0]));
Note: See TracChangeset
for help on using the changeset viewer.