Ignore:
Timestamp:
2013/01/27 21:07:20 (9 years ago)
Author:
kim
Message:

#2060 r22372,r22381,r22382,r22386-r22390,r22397-r22400,r22407-r22411,r22416,r22417,r22420,r22421,r22423,r22425,r22426 を差し戻す。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-multilang/data/class/SC_CheckError.php

    r22423 r22433  
    7171        $html_diff_tag_list = implode(', ', $arrDiffTag); 
    7272 
    73         $this->arrErr[$value[1]] = t('c_* T_TAG contains the tag T_FIELD which is not allowed. <br />_01', 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], 'T_TAG' => $html_diff_tag_list)); 
    7474    } 
    7575 
     
    8787        $this->createParam($value); 
    8888        if (!is_array($this->arrParam[$value[1]]) && strlen($this->arrParam[$value[1]]) == 0) { 
    89             $this->arrErr[$value[1]] = t('c_* T_FIELD is blank. <br />_01', array('T_FIELD' => $value[0])); 
     89            $this->arrErr[$value[1]] = t('SC_CheckError_002', array('T_FIELD' => $value[0])); 
    9090        } else if (is_array($this->arrParam[$value[1]]) && count($this->arrParam[$value[1]]) == 0) { 
    91             $this->arrErr[$value[1]] = t('c_* T_FIELD is not selected. <br />_01', array('T_FIELD' => $value[0])); 
     91            $this->arrErr[$value[1]] = t('SC_CheckError_003', array('T_FIELD' => $value[0])); 
    9292        } 
    9393    } 
     
    106106        $this->createParam($value); 
    107107        if (strlen($this->arrParam[$value[0]]) == 0) { 
    108             $this->arrErr[$value[0]] = t('c_* T_FIELD is blank. <br />_01', array('T_FIELD' => $value[1])); 
     108            $this->arrErr[$value[0]] = t('SC_CheckError_004', array('T_FIELD' => $value[1])); 
    109109        } 
    110110    } 
     
    123123        $this->createParam($value); 
    124124        if (strlen($this->arrParam[$value[1]]) != 0 && preg_match("/^[  \t\r\n]+$/", $this->arrParam[$value[1]])) { 
    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])); 
     125            $this->arrErr[$value[1]] = t('SC_CheckError_005', array('T_FIELD' => $value[0])); 
    126126        } 
    127127    } 
     
    140140        $this->createParam($value); 
    141141        if (strlen($this->arrParam[$value[1]]) != 0 && preg_match("/[  \t\r\n]+/u", $this->arrParam[$value[1]])) { 
    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])); 
     142            $this->arrErr[$value[1]] = t('SC_CheckError_006', array('T_FIELD' => $value[0])); 
    143143        } 
    144144    } 
     
    151151        $this->createParam($value); 
    152152        if (strlen($this->arrParam[$value[1]]) != 0 && preg_match("/^[0]+[0-9]+$/", $this->arrParam[$value[1]])) { 
    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])); 
     153            $this->arrErr[$value[1]] = t('SC_CheckError_007', array('T_FIELD' => $value[0])); 
    154154        } 
    155155    } 
     
    168168        $this->createParam($value); 
    169169        if (strlen($this->arrParam[$value[1]]) == 0) { 
    170             $this->arrErr[$value[1]] = t('c_* T_FIELD is not selected. <br />_01', array('T_FIELD' => $value[0])); 
     170            $this->arrErr[$value[1]] = t('SC_CheckError_008', array('T_FIELD' => $value[0])); 
    171171        } 
    172172    } 
     
    186186        // 文字数の取得 
    187187        if ($this->arrParam[$value[2]] !== $this->arrParam[$value[3]]) { 
    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])); 
     188            $this->arrErr[$value[2]] = t('SC_CheckError_009', array('T_FIELD_1ST' => $value[0], 'T_FIELD_2ND' => $value[1])); 
    189189        } 
    190190    } 
     
    204204        // 文字数の取得 
    205205        if ($this->arrParam[$value[2]] == $this->arrParam[$value[3]]) { 
    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])); 
     206            $this->arrErr[$value[2]] = t('SC_CheckError_010', array('T_FIELD_1ST' => $value[0], 'T_FIELD_2ND' => $value[1])); 
    207207        } 
    208208    } 
     
    222222        // 文字数の取得 
    223223        if ($this->arrParam[$value[2]] != '' && $this->arrParam[$value[3]] != '' && ($this->arrParam[$value[2]] > $this->arrParam[$value[3]])) { 
    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])); 
     224            $this->arrErr[$value[2]] = t('SC_CheckError_011', array('T_FIELD_1ST' => $value[0], 'T_FIELD_2ND' => $value[1])); 
    225225        } 
    226226    } 
     
    240240        // 文字数の取得 
    241241        if (mb_strlen($this->arrParam[$value[1]]) > $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])); 
     242            $this->arrErr[$value[1]] = t('SC_CheckError_012', array('T_FIELD' => $value[0], 'T_LENGTH' => $value[2])); 
    243243        } 
    244244    } 
     
    258258        // 文字数の取得 
    259259        if (mb_strlen($this->arrParam[$value[1]]) < $value[2]) { 
    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])); 
     260            $this->arrErr[$value[1]] = t_plural($value[2], 'SC_CheckError_013', 'SC_CheckError_013_PLURAL', array('T_FIELD' => $value[0])); 
    261261        } 
    262262    } 
     
    276276        // 文字数の取得 
    277277        if ($this->arrParam[$value[1]] > $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])); 
     278            $this->arrErr[$value[1]] = t('SC_CheckError_014', array('T_FIELD' => $value[0], 'T_LENGTH' => $value[2])); 
    279279        } 
    280280    } 
     
    293293        $this->createParam($value); 
    294294        if ($this->arrParam[$value[1]] < $value[2]) { 
    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])); 
     295            $this->arrErr[$value[1]] = t_plural($value[2], 'SC_CheckError_015_SINGLE', 'SC_CheckError_015_PLURAL', array('T_FIELD' => $value[0])); 
    296296        } 
    297297    } 
     
    310310        $this->createParam($value); 
    311311        if ($this->numelicCheck($this->arrParam[$value[1]])) { 
    312             $this->arrErr[$value[1]] = t('c_* Enter only numbers for T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 
     312            $this->arrErr[$value[1]] = t('SC_CheckError_016', array('T_FIELD' => $value[0])); 
    313313        } 
    314314    } 
     
    327327        $this->createParam($value); 
    328328        if (strlen($this->arrParam[$value[1]]) > 0 && !is_numeric($this->arrParam[$value[1]])) { 
    329             $this->arrErr[$value[1]] = t('c_* Enter only numbers for T_FIELD. <br />_02', array('T_FIELD' => $value[0])); 
     329            $this->arrErr[$value[1]] = t('SC_CheckError_017', array('T_FIELD' => $value[0])); 
    330330        } 
    331331    } 
     
    337337        $this->createParam($value); 
    338338        if (strlen($this->arrParam[$value[1]]) > 0 && !ctype_alpha($this->arrParam[$value[1]])) { 
    339             $this->arrErr[$value[1]] = t('c_* Enter alphabetical characters for T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 
     339            $this->arrErr[$value[1]] = t('SC_CheckError_018', array('T_FIELD' => $value[0])); 
    340340        } 
    341341    } 
     
    372372        // すべての項目が満たされていない場合を判定(一部だけ入力されている状態) 
    373373        if ($cnt > 0 && $cnt < 3) { 
    374             $this->arrErr[$value[1]] .= t('c_* Enter all items for T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 
     374            $this->arrErr[$value[1]] .= t('SC_CheckError_019', array('T_FIELD' => $value[0])); 
    375375        } 
    376376 
     
    378378        for ($i = 1; $i <= 3; $i++) { 
    379379            if (strlen($this->arrParam[$value[$i]]) > 0 && strlen($this->arrParam[$value[$i]]) > $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)); 
     380                $this->arrErr[$value[$i]] .= t('SC_CheckError_020', array('T_FIELD' => $value[0] . $i, 'T_LENGTH' => $telItemLen)); 
    381381            } else if ($this->numelicCheck($this->arrParam[$value[1]])) { 
    382                 $this->arrErr[$value[$i]] .= t('c_* Enter numbers for T_FIELD. <br />_01', array('T_FIELD' => $value[0] . $i)); 
     382                $this->arrErr[$value[$i]] .= t('SC_CheckError_021', array('T_FIELD' => $value[0] . $i)); 
    383383            } 
    384384            $total_count += strlen($this->arrParam[$value[$i]]); 
     
    387387        // 合計値チェック 
    388388        if ($total_count > $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)); 
     389            $this->arrErr[$value[3]] .= t('SC_CheckError_022', array('T_FIELD' => $value[0], 'T_LENGTH' => $telLen)); 
    390390        } 
    391391    } 
     
    415415 
    416416        if ($blank) { 
    417             $this->arrErr[$value[1]] = t('c_* T_FIELD is blank. <br />_01', array('T_FIELD' => $value[0])); 
     417            $this->arrErr[$value[1]] = t('SC_CheckError_023', array('T_FIELD' => $value[0])); 
    418418        } 
    419419    } 
     
    446446 
    447447        if ($blank && $input) { 
    448             $this->arrErr[$value[1]] = t('c_* Enter all items for T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 
     448            $this->arrErr[$value[1]] = t('SC_CheckError_024', array('T_FIELD' => $value[0])); 
    449449        } 
    450450    } 
     
    474474 
    475475        if (!$input) { 
    476             $this->arrErr[$value[1]] = t('c_* T_FIELD is blank. <br />_01', array('T_FIELD' => $value[0])); 
     476            $this->arrErr[$value[1]] = t('SC_CheckError_025', array('T_FIELD' => $value[0])); 
    477477        } 
    478478    } 
     
    508508 
    509509        if ($error) { 
    510             $this->arrErr[$value[1]] = t('c_* Enter items in order, starting at the beginning. <br />_01', array('T_FIELD' => $value[0])); 
     510            $this->arrErr[$value[1]] = t('SC_CheckError_026', array('T_FIELD' => $value[0])); 
    511511        } 
    512512    } 
     
    521521        $this->createParam($value); 
    522522        if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[ァ-ヶヲ-゚ー]+$/u", $this->arrParam[$value[1]])) { 
    523             $this->arrErr[$value[1]] = t('c_* For T_FIELD, enter katakana characters. <br />_01', array('T_FIELD' => $value[0])); 
     523            $this->arrErr[$value[1]] = t('SC_CheckError_027', array('T_FIELD' => $value[0])); 
    524524        } 
    525525    } 
     
    534534        $this->createParam($value); 
    535535        if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^([  \t\r\n]|[ァ-ヶ]|[ー])+$/u", $this->arrParam[$value[1]])) { 
    536             $this->arrErr[$value[1]] = t('c_* For T_FIELD, enter katakana characters. <br />_02', array('T_FIELD' => $value[0])); 
     536            $this->arrErr[$value[1]] = t('SC_CheckError_028', array('T_FIELD' => $value[0])); 
    537537        } 
    538538    } 
     
    547547        $this->createParam($value); 
    548548        if (strlen($this->arrParam[$value[1]]) > 0 && !ctype_alnum($this->arrParam[$value[1]])) { 
    549             $this->arrErr[$value[1]] = t('c_* Enter alphanumeric characters for T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 
     549            $this->arrErr[$value[1]] = t('SC_CheckError_029', array('T_FIELD' => $value[0])); 
    550550        } 
    551551    } 
     
    560560        $this->createParam($value); 
    561561        if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[[:graph:][:space:]]+$/i", $this->arrParam[$value[1]])) { 
    562             $this->arrErr[$value[1]] = t('c_* Enter alphanumeric symbols for T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 
     562            $this->arrErr[$value[1]] = t('SC_CheckError_030', array('T_FIELD' => $value[0])); 
    563563        } 
    564564    } 
     
    570570        $this->createParam($value); 
    571571        if ($this->arrParam[$value[1]] == '0') { 
    572             $this->arrErr[$value[1]] = t('c_* Enter at least 1 for T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 
     572            $this->arrErr[$value[1]] = t('SC_CheckError_031', array('T_FIELD' => $value[0])); 
    573573        } 
    574574    } 
     
    585585        $count = strlen($this->arrParam[$value[1]]); 
    586586        if (($count > 0) && $value[2] > $count || $value[3] < $count) { 
    587             $this->arrErr[$value[1]] =  t_plural($value[2], 'c_*  T_FIELD must be  between T_COUNT - T_DIGIT_MAX digits. <br />_01', 'c_* For T_FIELD, input between T_COUNT to T_DIGIT_MAX digits. <br />_01', 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], 'T_DIGIT_MAX' => $value[3])); 
    588588        } 
    589589    } 
     
    599599        $count = strlen($this->arrParam[$value[1]]); 
    600600        if (($count > 0) && $count != $value[2]) { 
    601             $this->arrErr[$value[1]] =  t_plural($value[2], 'c_* For T_FIELD, enter T_COUNT digit(s). <br />_01', 'c_* For T_FIELD, input T_COUNT digit(s). <br />_01', array('T_FIELD' => $value[0])); 
     601            $this->arrErr[$value[1]] =  t_plural($value[2], 'SC_CheckError_033_SINGLE', 'SC_CheckError_033_PLURAL', array('T_FIELD' => $value[0])); 
    602602        } 
    603603    } 
     
    647647 
    648648        if (!preg_match($regexp, $this->arrParam[$value[1]])) { 
    649             $this->arrErr[$value[1]] = t('c_* The T_FIELD format is incorrect. <br />_01', array('T_FIELD' => $value[0])); 
     649            $this->arrErr[$value[1]] = t('SC_CheckError_034', array('T_FIELD' => $value[0])); 
    650650            return; 
    651651        } 
     
    666666        $this->createParam($value); 
    667667        if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[a-zA-Z0-9_\.@\+\?-]+$/i",$this->arrParam[$value[1]])) { 
    668             $this->arrErr[$value[1]] = t('c_* Enter the characters to be used in T_FIELD correctly. <br />_01', array('T_FIELD' => $value[0])); 
     668            $this->arrErr[$value[1]] = t('SC_CheckError_035', array('T_FIELD' => $value[0])); 
    669669        } 
    670670    } 
     
    678678        } 
    679679        if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("@^https?://+($|[a-zA-Z0-9_~=:&\?\.\/-])+$@i", $this->arrParam[$value[1]])) { 
    680             $this->arrErr[$value[1]] = t('c_* Enter T_FIELD correctly. <br />_01', array('T_FIELD' => $value[0])); 
     680            $this->arrErr[$value[1]] = t('SC_CheckError_036', array('T_FIELD' => $value[0])); 
    681681        } 
    682682    } 
     
    698698                $param = trim($param); 
    699699                if (long2ip(ip2long($param)) != trim($param) && !empty($param)) { 
    700                     $this->arrErr[$value[1]] = t('c_* Enter an IP address in the proper format in T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 
     700                    $this->arrErr[$value[1]] = t('SC_CheckError_037', array('T_FIELD' => $value[0])); 
    701701                } 
    702702            } 
     
    726726        if ($match === false) { 
    727727            $str_ext = implode('・', $value[2]); 
    728             $this->arrErr[$value[1]] = t('c_* The format permitted for T_FIELD is T_EXT. <br />_01', array('T_FIELD' => $value[0], 'T_EXT' => $str_ext)); 
     728            $this->arrErr[$value[1]] = t('SC_CheckError_038', array('T_FIELD' => $value[0], 'T_EXT' => $str_ext)); 
    729729        } 
    730730    } 
     
    749749 
    750750        if ($this->arrParam[$value[1]] != '' && !file_exists($path)) { 
    751             $this->arrErr[$value[1]] = t('c_* T_PATH cannot be found. <br />_01', array('T_PATH' => $path)); 
     751            $this->arrErr[$value[1]] = t('SC_CheckError_039', array('T_PATH' => $path)); 
    752752        } 
    753753    } 
     
    762762        $this->createParam($value); 
    763763        if (!($_FILES[$value[1]]['size'] != '' && $_FILES[$value[1]]['size'] > 0)) { 
    764             $this->arrErr[$value[1]] = t('c_* Upload T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 
     764            $this->arrErr[$value[1]] = t('SC_CheckError_040', array('T_FIELD' => $value[0])); 
    765765        } 
    766766    } 
     
    780780                $byte = 'MB'; 
    781781            } 
    782             $this->arrErr[$value[1]] = t('c_* For the T_FIELD file size, use a size that is T_SIZET_UNIT or less. <br />_01', 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], 'T_SIZE' => $value[2], 'T_UNIT' => $byte)); 
    783783        } 
    784784    } 
     
    793793        $this->createParam($value); 
    794794        if (strlen($_FILES[$value[1]]['name']) > 0 && !preg_match("/^[[:alnum:]_\.-]+$/i", $_FILES[$value[1]]['name'])) { 
    795             $this->arrErr[$value[1]] = t('c_* Do not use Japanese or spaces in the file name for T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 
     795            $this->arrErr[$value[1]] = t('SC_CheckError_042', array('T_FIELD' => $value[0])); 
    796796        } 
    797797    } 
     
    806806        $this->createParam($value); 
    807807        if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[[:alnum:]_\.-]+$/i", $this->arrParam[$value[1]]) || preg_match('/[\\]/' ,$this->arrParam[$value[1]])) { 
    808             $this->arrErr[$value[1]] = t('c_* Do not use Japanese or spaces in the file name for T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 
     808            $this->arrErr[$value[1]] = t('SC_CheckError_043', array('T_FIELD' => $value[0])); 
    809809        } 
    810810    } 
     
    824824            // 年月日のどれかが入力されていない。 
    825825            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('c_* Enter all items for T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 
     826                $this->arrErr[$value[1]] = t('SC_CheckError_024', array('T_FIELD' => $value[0])); 
    827827            } else if (! checkdate($this->arrParam[$value[2]], $this->arrParam[$value[3]], $this->arrParam[$value[1]])) { 
    828                 $this->arrErr[$value[1]] = t('c_* T_FIELD is not correct. <br />_01', array('T_FIELD' => $value[0])); 
     828                $this->arrErr[$value[1]] = t('SC_CheckError_044', array('T_FIELD' => $value[0])); 
    829829            } 
    830830        } 
     
    847847            // 年月日時のどれかが入力されていない。 
    848848            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('c_* Enter all items for T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 
     849                $this->arrErr[$value[1]] = t('SC_CheckError_024', array('T_FIELD' => $value[0])); 
    850850            } else if (! checkdate($this->arrParam[$value[2]], $this->arrParam[$value[3]], $this->arrParam[$value[1]])) { 
    851                 $this->arrErr[$value[1]] = t('c_* T_FIELD is not correct. <br />_01', array('T_FIELD' => $value[0])); 
     851                $this->arrErr[$value[1]] = t('SC_CheckError_044', array('T_FIELD' => $value[0])); 
    852852            } 
    853853        } 
     
    867867            // 年月日時のどれかが入力されていない。 
    868868            if (!(strlen($this->arrParam[$value[1]]) > 0 && strlen($this->arrParam[$value[2]]) > 0)) { 
    869                 $this->arrErr[$value[1]] = t('c_* Enter all items for T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 
     869                $this->arrErr[$value[1]] = t('SC_CheckError_024', array('T_FIELD' => $value[0])); 
    870870            } else if (! checkdate($this->arrParam[$value[2]], 1, $this->arrParam[$value[1]])) { 
    871                 $this->arrErr[$value[1]] = t('c_* T_FIELD is not correct. <br />_01', array('T_FIELD' => $value[0])); 
     871                $this->arrErr[$value[1]] = t('SC_CheckError_044', array('T_FIELD' => $value[0])); 
    872872            } 
    873873        } 
     
    889889 
    890890            // 年の数字チェック、最小数値制限チェック 
    891             $this->doFunc(array($value[0].'(' . t('c_Year_01') . ')', $value[1], BIRTH_YEAR), array('NUM_CHECK', 'MIN_CHECK')); 
     891            $this->doFunc(array($value[0].'(' . t('PARAM_LABEL_YEAR') . ')', $value[1], BIRTH_YEAR), array('NUM_CHECK', 'MIN_CHECK')); 
    892892            // 上のチェックでエラーある場合、中断する。 
    893893            if (isset($this->arrErr[$value[1]])) { 
     
    896896 
    897897            // 年の最大数値制限チェック 
    898             $this->doFunc(array($value[0].'(' . t('c_Year_01') . ')', $value[1], date('Y',strtotime('now'))), array('MAX_CHECK')); 
     898            $this->doFunc(array($value[0].'(' . t('PARAM_LABEL_YEAR') . ')', $value[1], date('Y',strtotime('now'))), array('MAX_CHECK')); 
    899899            // 上のチェックでエラーある場合、中断する。 
    900900            if (isset($this->arrErr[$value[1]])) { 
     
    932932        $this->createParam($value); 
    933933        if ((strlen($this->arrParam[$value[2]]) > 0 || strlen($this->arrParam[$value[3]]) > 0 || strlen($this->arrParam[$value[4]]) > 0) && ! checkdate($this->arrParam[$value[3]], $this->arrParam[$value[4]], $this->arrParam[$value[2]])) { 
    934             $this->arrErr[$value[2]] = t('c_* Specify T_FIELD correctly. <br />_01', array('T_FIELD' => $value[0])); 
     934            $this->arrErr[$value[2]] = t('SC_CheckError_045', array('T_FIELD' => $value[0])); 
    935935        } 
    936936        if ((strlen($this->arrParam[$value[5]]) > 0 || strlen($this->arrParam[$value[6]]) > 0 || strlen($this->arrParam[$value[7]]) > 0) && ! checkdate($this->arrParam[$value[6]], $this->arrParam[$value[7]], $this->arrParam[$value[5]])) { 
    937             $this->arrErr[$value[5]] = t('c_* Specify T_FIELD correctly. <br />_01', array('T_FIELD' => $value[1])); 
     937            $this->arrErr[$value[5]] = t('SC_CheckError_045', array('T_FIELD' => $value[1])); 
    938938        } 
    939939        if ((strlen($this->arrParam[$value[2]]) > 0 && strlen($this->arrParam[$value[3]]) > 0 && strlen($this->arrParam[$value[4]]) > 0) &&  (strlen($this->arrParam[$value[5]]) > 0 || strlen($this->arrParam[$value[6]]) > 0 || strlen($this->arrParam[$value[7]]) > 0)) { 
     
    943943 
    944944            if (($this->arrErr[$value[2]] == '' && $this->arrErr[$value[5]] == '') && $date1 > $date2) { 
    945                 $this->arrErr[$value[2]] = t('c_* The period specification for T_START and T_END is not correct. <br />_01', array('T_START' => $value[0], 'T_END' => $value[1])); 
     945                $this->arrErr[$value[2]] = t('SC_CheckError_046', array('T_START' => $value[0], 'T_END' => $value[1])); 
    946946            } 
    947947        } 
     
    982982        $this->createParam($value); 
    983983        if ((strlen($this->arrParam[$value[2]]) > 0 || strlen($this->arrParam[$value[3]]) > 0 || strlen($this->arrParam[$value[4]]) > 0 || strlen($this->arrParam[$value[5]]) > 0) && ! checkdate($this->arrParam[$value[3]], $this->arrParam[$value[4]], $this->arrParam[$value[2]])) { 
    984             $this->arrErr[$value[2]] = t('c_* Specify T_FIELD correctly. <br />_01', array('T_FIELD' => $value[0])); 
     984            $this->arrErr[$value[2]] = t('SC_CheckError_045', array('T_FIELD' => $value[0])); 
    985985        } 
    986986        if ((strlen($this->arrParam[$value[8]]) > 0 || strlen($this->arrParam[$value[9]]) > 0 || strlen($this->arrParam[$value[10]]) > 0 || strlen($this->arrParam[$value[11]]) > 0) && ! checkdate($this->arrParam[$value[9]], $this->arrParam[$value[10]], $this->arrParam[$value[8]])) { 
    987             $this->arrErr[$value[8]] = t('c_* Specify T_FIELD correctly. <br />_01', array('T_FIELD' => $value[1])); 
     987            $this->arrErr[$value[8]] = t('SC_CheckError_045', array('T_FIELD' => $value[1])); 
    988988        } 
    989989        if ((strlen($this->arrParam[$value[2]]) > 0 && strlen($this->arrParam[$value[3]]) > 0 && strlen($this->arrParam[$value[4]]) > 0 && strlen($this->arrParam[$value[5]]) > 0) &&  (strlen($this->arrParam[$value[8]]) > 0 || strlen($this->arrParam[$value[9]]) > 0 || strlen($this->arrParam[$value[10]]) > 0 || strlen($this->arrParam[$value[11]]) > 0)) { 
     
    993993 
    994994            if (($this->arrErr[$value[2]] == '' && $this->arrErr[$value[8]] == '') && $date1 > $date2) { 
    995                 $this->arrErr[$value[2]] = t('c_* The period specification for T_START and T_END is not correct. <br />_01', array('T_START' => $value[0], 'T_END' => $value[1])); 
     995                $this->arrErr[$value[2]] = t('SC_CheckError_046', array('T_START' => $value[0], 'T_END' => $value[1])); 
    996996            } 
    997997            if ($date1 == $date2) { 
    998                 $this->arrErr[$value[2]] = t('c_* The period specification for T_START and T_END is not correct. <br />_01', array('T_START' => $value[0], 'T_END' => $value[1])); 
     998                $this->arrErr[$value[2]] = t('SC_CheckError_046', array('T_START' => $value[0], 'T_END' => $value[1])); 
    999999            } 
    10001000 
     
    10251025        $this->createParam($value); 
    10261026        if ((strlen($this->arrParam[$value[2]]) > 0 || strlen($this->arrParam[$value[3]]) > 0) && ! checkdate($this->arrParam[$value[3]], 1, $this->arrParam[$value[2]])) { 
    1027             $this->arrErr[$value[2]] = t('c_* Specify T_FIELD correctly. <br />_01', array('T_FIELD' => $value[0])); 
     1027            $this->arrErr[$value[2]] = t('SC_CheckError_045', array('T_FIELD' => $value[0])); 
    10281028        } 
    10291029        if ((strlen($this->arrParam[$value[4]]) > 0 || strlen($this->arrParam[$value[5]]) > 0) && ! checkdate($this->arrParam[$value[5]], 1, $this->arrParam[$value[4]])) { 
    1030             $this->arrErr[$value[4]] = t('c_* Specify T_FIELD correctly. <br />_01', array('T_FIELD' => $value[1])); 
     1030            $this->arrErr[$value[4]] = t('SC_CheckError_045', array('T_FIELD' => $value[1])); 
    10311031        } 
    10321032        if ((strlen($this->arrParam[$value[2]]) > 0 && strlen($this->arrParam[$value[3]]) > 0 && (strlen($this->arrParam[$value[4]]) > 0 || strlen($this->arrParam[$value[5]]) > 0))) { 
     
    10361036 
    10371037            if (($this->arrErr[$value[2]] == '' && $this->arrErr[$value[5]] == '') && $date1 > $date2) { 
    1038                 $this->arrErr[$value[2]] = t('c_* The period specification for T_START and T_END is not correct. <br />_01', array('T_START' => $value[0], 'T_END' => $value[1])); 
     1038                $this->arrErr[$value[2]] = t('SC_CheckError_046', array('T_START' => $value[0], 'T_END' => $value[1])); 
    10391039            } 
    10401040        } 
     
    10481048        $this->createParam($value); 
    10491049        if (!is_dir($this->arrParam[$value[1]])) { 
    1050             $this->arrErr[$value[1]] = t('c_* The designated T_FIELD does not exist. <br />_01', array('T_FIELD' => $value[0])); 
     1050            $this->arrErr[$value[1]] = t('SC_CheckError_047', array('T_FIELD' => $value[0])); 
    10511051        } 
    10521052    } 
     
    10581058        } 
    10591059        if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^\.[^.]+\..+/i", $this->arrParam[$value[1]])) { 
    1060             $this->arrErr[$value[1]] = t('c_* The T_FIELD format is incorrect. <br />_01', array('T_FIELD' => $value[0])); 
     1060            $this->arrErr[$value[1]] = t('SC_CheckError_048', array('T_FIELD' => $value[0])); 
    10611061        } 
    10621062    } 
     
    10721072        $objMobile = new SC_Helper_Mobile_Ex(); 
    10731073        if (strlen($this->arrParam[$value[1]]) > 0 && !$objMobile->gfIsMobileMailAddress($this->arrParam[$value[1]])) { 
    1074             $this->arrErr[$value[1]] = t('c_* T_FIELD is not for mobile phones. <br />_01', array('T_FIELD' => $value[0])); 
     1074            $this->arrErr[$value[1]] = t('SC_CheckError_049', array('T_FIELD' => $value[0])); 
    10751075        } 
    10761076    } 
     
    10931093        switch ($register_user_flg) { 
    10941094            case 1: 
    1095                 $this->arrErr[$value[1]] .= t('c_* T_FIELD already used in member registration. <br />_01', array('T_FIELD' => $value[0])); 
     1095                $this->arrErr[$value[1]] .= t('SC_CheckError_050', array('T_FIELD' => $value[0])); 
    10961096                break; 
    10971097            case 2: 
    1098                 $this->arrErr[$value[1]] .= t('c_* For a certain period of time after membership withdrawal, it is not possible to use the same T_FIELD. <br />_01', array('T_FIELD' => $value[0])); 
     1098                $this->arrErr[$value[1]] .= t('SC_CheckError_051', array('T_FIELD' => $value[0])); 
    10991099                break; 
    11001100            default: 
     
    11201120        $pattern = '/' . join('|', $prohibitedStr) . '/i'; 
    11211121        if (preg_match_all($pattern, $targetStr, $matches = array())) { 
    1122             $this->arrErr[$value[1]] = t('c_* T_FIELD cannot be entered. <br />_01', array('T_FIELD' => $value[0])); 
     1122            $this->arrErr[$value[1]] = t('SC_CheckError_052', array('T_FIELD' => $value[0])); 
    11231123        } 
    11241124    } 
     
    11371137        $this->createParam($value); 
    11381138        if ($this->evalCheck($value[1]) === false) { 
    1139             $this->arrErr[$value[0]] = t('c_* The T_FIELD format is incorrect. <br />_01', array('T_FIELD' => $value[0])); 
     1139            $this->arrErr[$value[0]] = t('SC_CheckError_053', array('T_FIELD' => $value[0])); 
    11401140        } 
    11411141    } 
Note: See TracChangeset for help on using the changeset viewer.