- Timestamp:
- 2013/01/25 22:35:31 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-multilang/data/class/SC_CheckError.php
r22397 r22399 570 570 $this->createParam($value); 571 571 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])); 573 573 } 574 574 } … … 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], ' 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])); 588 588 } 589 589 } … … 599 599 $count = strlen($this->arrParam[$value[1]]); 600 600 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])); 602 602 } 603 603 } … … 647 647 648 648 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])); 650 650 return; 651 651 } … … 666 666 $this->createParam($value); 667 667 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])); 669 669 } 670 670 } … … 678 678 } 679 679 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])); 681 681 } 682 682 } … … 698 698 $param = trim($param); 699 699 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])); 701 701 } 702 702 } … … 726 726 if ($match === false) { 727 727 $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)); 729 729 } 730 730 } … … 749 749 750 750 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)); 752 752 } 753 753 } … … 762 762 $this->createParam($value); 763 763 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])); 765 765 } 766 766 } … … 780 780 $byte = 'MB'; 781 781 } 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)); 783 783 } 784 784 } … … 793 793 $this->createParam($value); 794 794 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])); 796 796 } 797 797 } … … 806 806 $this->createParam($value); 807 807 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])); 809 809 } 810 810 } … … 826 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 $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])); 829 829 } 830 830 } … … 849 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 $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])); 852 852 } 853 853 } … … 869 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 $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])); 872 872 } 873 873 } … … 932 932 $this->createParam($value); 933 933 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])); 935 935 } 936 936 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])); 938 938 } 939 939 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)) { … … 943 943 944 944 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])); 946 946 } 947 947 } … … 982 982 $this->createParam($value); 983 983 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])); 985 985 } 986 986 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])); 988 988 } 989 989 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)) { … … 993 993 994 994 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])); 996 996 } 997 997 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])); 999 999 } 1000 1000 … … 1025 1025 $this->createParam($value); 1026 1026 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])); 1028 1028 } 1029 1029 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])); 1031 1031 } 1032 1032 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))) { … … 1036 1036 1037 1037 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])); 1039 1039 } 1040 1040 } … … 1048 1048 $this->createParam($value); 1049 1049 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])); 1051 1051 } 1052 1052 } … … 1058 1058 } 1059 1059 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])); 1061 1061 } 1062 1062 } … … 1072 1072 $objMobile = new SC_Helper_Mobile_Ex(); 1073 1073 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])); 1075 1075 } 1076 1076 } … … 1093 1093 switch ($register_user_flg) { 1094 1094 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])); 1096 1096 break; 1097 1097 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])); 1099 1099 break; 1100 1100 default: … … 1120 1120 $pattern = '/' . join('|', $prohibitedStr) . '/i'; 1121 1121 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])); 1123 1123 } 1124 1124 } … … 1137 1137 $this->createParam($value); 1138 1138 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])); 1140 1140 } 1141 1141 }
Note: See TracChangeset
for help on using the changeset viewer.