Ignore:
Timestamp:
2013/01/25 22:35:31 (11 years ago)
Author:
kim
Message:

#2060 メッセージIDの振り直し SC_CheckError, SC_FormParam

File:
1 edited

Legend:

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

    r22397 r22399  
    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_042', array('T_FIELD' => $value[0])); 
    809809        } 
    810810    } 
     
    826826                $this->arrErr[$value[1]] = t('c_* Enter all items for T_FIELD. <br />_01', 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        } 
     
    849849                $this->arrErr[$value[1]] = t('c_* Enter all items for T_FIELD. <br />_01', 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        } 
     
    869869                $this->arrErr[$value[1]] = t('c_* Enter all items for T_FIELD. <br />_01', 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        } 
     
    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.