Ignore:
Timestamp:
2013/01/27 22:13:23 (10 years ago)
Author:
kim
Message:

#2060 メッセージIDの振り直し T_FILED等の修正
T_TAG T_LENGTH~T_ORDER_IDを置き換え

File:
1 edited

Legend:

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

    r22433 r22435  
    7171        $html_diff_tag_list = implode(', ', $arrDiffTag); 
    7272 
    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)); 
    7474    } 
    7575 
     
    240240        // 文字数の取得 
    241241        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])); 
    243243        } 
    244244    } 
     
    276276        // 文字数の取得 
    277277        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])); 
    279279        } 
    280280    } 
     
    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('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)); 
    381381            } else if ($this->numelicCheck($this->arrParam[$value[1]])) { 
    382382                $this->arrErr[$value[$i]] .= t('SC_CheckError_021', array('T_FIELD' => $value[0] . $i)); 
     
    387387        // 合計値チェック 
    388388        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)); 
    390390        } 
    391391    } 
     
    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], '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])); 
    588588        } 
    589589    } 
     
    726726        if ($match === false) { 
    727727            $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)); 
    729729        } 
    730730    } 
     
    749749 
    750750        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)); 
    752752        } 
    753753    } 
     
    780780                $byte = 'MB'; 
    781781            } 
    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)); 
    783783        } 
    784784    } 
     
    943943 
    944944            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])); 
    946946            } 
    947947        } 
     
    993993 
    994994            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])); 
    996996            } 
    997997            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])); 
    999999            } 
    10001000 
     
    10361036 
    10371037            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])); 
    10391039            } 
    10401040        } 
Note: See TracChangeset for help on using the changeset viewer.