Index: /branches/version-2_12-multilang/data/class/SC_CheckError.php
===================================================================
--- /branches/version-2_12-multilang/data/class/SC_CheckError.php (revision 21925)
+++ /branches/version-2_12-multilang/data/class/SC_CheckError.php (revision 22006)
@@ -71,5 +71,5 @@
$html_diff_tag_list = implode(', ', $arrDiffTag);
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'に許可されていないタグ ' . $html_diff_tag_list . ' が含まれています。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_HTML_TAG_CHECK', array('T_FIELD' => $value[0], 'T_TAG' => $html_diff_tag_list));
}
@@ -87,7 +87,7 @@
$this->createParam($value);
if (!is_array($this->arrParam[$value[1]]) && strlen($this->arrParam[$value[1]]) == 0) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'が入力されていません。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_EXIST_CHECK_INPUT', array('T_FIELD' => $value[0]));
} else if (is_array($this->arrParam[$value[1]]) && count($this->arrParam[$value[1]]) == 0) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'が選択されていません。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_EXIST_CHECK_SELECT', array('T_FIELD' => $value[0]));
}
}
@@ -106,5 +106,5 @@
$this->createParam($value);
if (strlen($this->arrParam[$value[0]]) == 0) {
- $this->arrErr[$value[0]] = '※ ' . $value[0] . 'が入力されていません。
';
+ $this->arrErr[$value[0]] = SC_I18n_Ex::t('SC_CHECKERROR_EXIST_CHECK_REVERSE', array('T_FIELD' => $value[1]));
}
}
@@ -123,5 +123,5 @@
$this->createParam($value);
if (strlen($this->arrParam[$value[1]]) != 0 && preg_match("/^[ \t\r\n]+$/", $this->arrParam[$value[1]])) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'にスペース、タブ、改行のみの入力はできません。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_SPTAB_CHECK', array('T_FIELD' => $value[0]));
}
}
@@ -140,5 +140,5 @@
$this->createParam($value);
if (strlen($this->arrParam[$value[1]]) != 0 && preg_match("/[ \t\r\n]+/u", $this->arrParam[$value[1]])) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'にスペース、タブ、改行は含めないで下さい。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_NO_SPTAB', array('T_FIELD' => $value[0]));
}
}
@@ -151,5 +151,5 @@
$this->createParam($value);
if (strlen($this->arrParam[$value[1]]) != 0 && preg_match("/^[0]+[0-9]+$/", $this->arrParam[$value[1]])) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'に0で始まる数値が入力されています。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_ZERO_START', array('T_FIELD' => $value[0]));
}
}
@@ -168,5 +168,5 @@
$this->createParam($value);
if (strlen($this->arrParam[$value[1]]) == 0) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'が選択されていません。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_SELECT_CHECK', array('T_FIELD' => $value[0]));
}
}
@@ -186,5 +186,5 @@
// 文字数の取得
if ($this->arrParam[$value[2]] !== $this->arrParam[$value[3]]) {
- $this->arrErr[$value[2]] = '※ ' . $value[0] . 'と' . $value[1] . 'が一致しません。
';
+ $this->arrErr[$value[2]] = SC_I18n_Ex::t('SC_CHECKERROR_EQUAL_CHECK', array('T_FIELD_1ST' => $value[0], 'T_FIELD_2ND' => $value[1]));
}
}
@@ -204,5 +204,5 @@
// 文字数の取得
if ($this->arrParam[$value[2]] == $this->arrParam[$value[3]]) {
- $this->arrErr[$value[2]] = '※ ' . $value[0] . 'と' . $value[1] . 'は、同じ値を使用できません。
';
+ $this->arrErr[$value[2]] = SC_I18n_Ex::t('SC_CHECKERROR_DIFFERENT_CHECK', array('T_FIELD_1ST' => $value[0], 'T_FIELD_2ND' => $value[1]));
}
}
@@ -222,5 +222,5 @@
// 文字数の取得
if ($this->arrParam[$value[2]] != '' && $this->arrParam[$value[3]] != '' && ($this->arrParam[$value[2]] > $this->arrParam[$value[3]])) {
- $this->arrErr[$value[2]] = '※ ' . $value[0] . 'は' . $value[1] . 'より大きい値を入力できません。
';
+ $this->arrErr[$value[2]] = SC_I18n_Ex::t('SC_CHECKERROR_GREATER_CHECK', array('T_FIELD_1ST' => $value[0], 'T_FIELD_2ND' => $value[1]));
}
}
@@ -240,5 +240,5 @@
// 文字数の取得
if (mb_strlen($this->arrParam[$value[1]]) > $value[2]) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は' . $value[2] . '字以下で入力してください。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_MAX_LENGTH_CHECK', array('T_FIELD' => $value[0], 'T_LENGTH' => $value[2]));
}
}
@@ -258,5 +258,5 @@
// 文字数の取得
if (mb_strlen($this->arrParam[$value[1]]) < $value[2]) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は' . $value[2] . '字以上で入力してください。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t_plural($value[2], 'SC_CHECKERROR_MIN_LENGTH_CHECK_SINGLE', 'SC_CHECKERROR_MIN_LENGTH_CHECK_PLURAL', array('T_FIELD' => $value[0]));
}
}
@@ -276,5 +276,5 @@
// 文字数の取得
if ($this->arrParam[$value[1]] > $value[2]) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は' . $value[2] . '以下で入力してください。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_MAX_CHECK', array('T_FIELD' => $value[0], 'T_LENGTH' => $value[2]));
}
}
@@ -293,5 +293,5 @@
$this->createParam($value);
if ($this->arrParam[$value[1]] < $value[2]) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は' . $value[2] . '以上で入力してください。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t_plural($value[2], 'SC_CHECKERROR_MIN_CHECK_SINGLE', 'SC_CHECKERROR_MIN_CHECK_PLURAL', array('T_FIELD' => $value[0]));
}
}
@@ -310,5 +310,5 @@
$this->createParam($value);
if ($this->numelicCheck($this->arrParam[$value[1]])) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は数字で入力してください。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_NUM_CHECK', array('T_FIELD' => $value[0]));
}
}
@@ -327,5 +327,5 @@
$this->createParam($value);
if (strlen($this->arrParam[$value[1]]) > 0 && !is_numeric($this->arrParam[$value[1]])) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は数字で入力してください。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_NUM_POINT_CHECK', array('T_FIELD' => $value[0]));
}
}
@@ -337,5 +337,5 @@
$this->createParam($value);
if (strlen($this->arrParam[$value[1]]) > 0 && !ctype_alpha($this->arrParam[$value[1]])) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は半角英字で入力してください。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_ALPHA_CHECK', array('T_FIELD' => $value[0]));
}
}
@@ -372,5 +372,5 @@
// すべての項目が満たされていない場合を判定(一部だけ入力されている状態)
if ($cnt > 0 && $cnt < 3) {
- $this->arrErr[$value[1]] .= '※ ' . $value[0] . 'はすべての項目を入力してください。
';
+ $this->arrErr[$value[1]] .= SC_I18n_Ex::t('SC_CHECKERROR_TEL_CHECK_EXIST', array('T_FIELD' => $value[0]));
}
@@ -378,7 +378,7 @@
for ($i = 1; $i <= 3; $i++) {
if (strlen($this->arrParam[$value[$i]]) > 0 && strlen($this->arrParam[$value[$i]]) > $telItemLen) {
- $this->arrErr[$value[$i]] .= '※ ' . $value[0] . $i . 'は' . $telItemLen . '字以内で入力してください。
';
+ $this->arrErr[$value[$i]] .= SC_I18n_Ex::t('SC_CHECKERROR_TEL_CHECK_MAX_LENGTH', array('T_FIELD' => $value[0] . $i, 'T_LENGTH' => $telItemLen));
} else if ($this->numelicCheck($this->arrParam[$value[1]])) {
- $this->arrErr[$value[$i]] .= '※ ' . $value[0] . $i . 'は数字で入力してください。
';
+ $this->arrErr[$value[$i]] .= SC_I18n_Ex::t('SC_CHECKERROR_TEL_CHECK_NUM', array('T_FIELD' => $value[0] . $i));
}
$total_count += strlen($this->arrParam[$value[$i]]);
@@ -387,5 +387,5 @@
// 合計値チェック
if ($total_count > $telLen) {
- $this->arrErr[$value[3]] .= '※ ' . $value[0] . 'は' . $telLen . '文字以内で入力してください。
';
+ $this->arrErr[$value[3]] .= SC_I18n_Ex::t('SC_CHECKERROR_TEL_CHECK_SUM', array('T_FIELD' => $value[0], 'T_LENGTH' => $telLen));
}
}
@@ -415,5 +415,5 @@
if ($blank) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'が入力されていません。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_FULL_EXIST_CHECK', array('T_FIELD' => $value[0]));
}
}
@@ -446,5 +446,5 @@
if ($blank && $input) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'はすべての項目を入力して下さい。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_ALL_EXIST_CHECK', array('T_FIELD' => $value[0]));
}
}
@@ -474,5 +474,5 @@
if (!$input) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'が入力されていません。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_ONE_EXIST_CHECK', array('T_FIELD' => $value[0]));
}
}
@@ -508,5 +508,5 @@
if ($error) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は先頭の項目から順番に入力して下さい。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_TOP_EXIST_CHECK', array('T_FIELD' => $value[0]));
}
}
@@ -521,5 +521,5 @@
$this->createParam($value);
if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[ァ-ヶヲ-゚ー]+$/u", $this->arrParam[$value[1]])) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'はカタカナで入力してください。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_KANA_CHECK', array('T_FIELD' => $value[0]));
}
}
@@ -534,5 +534,5 @@
$this->createParam($value);
if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^([ \t\r\n]|[ァ-ヶ]|[ー])+$/u", $this->arrParam[$value[1]])) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'はカタカナで入力してください。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_KANABLANK_CHECK', array('T_FIELD' => $value[0]));
}
}
@@ -547,5 +547,5 @@
$this->createParam($value);
if (strlen($this->arrParam[$value[1]]) > 0 && !ctype_alnum($this->arrParam[$value[1]])) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は英数字で入力してください。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_ALNUM_CHECK', array('T_FIELD' => $value[0]));
}
}
@@ -560,5 +560,5 @@
$this->createParam($value);
if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[[:graph:]|[:space:]]+$/i", $this->arrParam[$value[1]])) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は英数記号で入力してください。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_GRAPH_CHECK', array('T_FIELD' => $value[0]));
}
}
@@ -570,5 +570,5 @@
$this->createParam($value);
if ($this->arrParam[$value[1]] == '0') {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は1以上を入力してください。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_ZERO_CHECK', array('T_FIELD' => $value[0]));
}
}
@@ -585,5 +585,5 @@
$count = strlen($this->arrParam[$value[1]]);
if (($count > 0) && $value[2] > $count || $value[3] < $count) {
- $this->arrErr[$value[1]] = "※ $value[0]は$value[2]桁~$value[3]桁で入力して下さい。
";
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t_plural($value[2], 'SC_CHECKERROR_NUM_RANGE_CHECK_SINGLE', 'SC_CHECKERROR_NUM_RANGE_CHECK_PLURAL', array('T_FIELD' => $value[0], 'T_DIGIT_MAX' => $value[3]));
}
}
@@ -599,5 +599,5 @@
$count = strlen($this->arrParam[$value[1]]);
if (($count > 0) && $count != $value[2]) {
- $this->arrErr[$value[1]] = "※ $value[0]は$value[2]桁で入力して下さい。
";
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t_plural($value[2], 'SC_CHECKERROR_NUM_COUNT_CHECK_SINGLE', 'SC_CHECKERROR_NUM_COUNT_CHECK_PLURAL', array('T_FIELD' => $value[0]));
}
}
@@ -647,5 +647,5 @@
if (!preg_match($regexp, $this->arrParam[$value[1]])) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'の形式が不正です。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_EMAIL_CHECK', array('T_FIELD' => $value[0]));
return;
}
@@ -666,5 +666,5 @@
$this->createParam($value);
if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[a-zA-Z0-9_\.@\+\?-]+$/i",$this->arrParam[$value[1]])) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'に使用する文字を正しく入力してください。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_EMAIL_CHAR_CHECK', array('T_FIELD' => $value[0]));
}
}
@@ -678,5 +678,5 @@
}
if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("@^https?://+($|[a-zA-Z0-9_~=:&\?\.\/-])+$@i", $this->arrParam[$value[1]])) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'を正しく入力してください。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_URL_CHECK', array('T_FIELD' => $value[0]));
}
}
@@ -698,5 +698,5 @@
$param = trim($param);
if (long2ip(ip2long($param)) != trim($param) && !empty($param)) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'に正しい形式のIPアドレスを入力してください。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_IP_CHECK', array('T_FIELD' => $value[0]));
}
}
@@ -726,5 +726,5 @@
if ($match === false) {
$str_ext = implode('・', $value[2]);
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'で許可されている形式は、' . $str_ext . 'です。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_FILE_EXT_CHECK', array('T_FIELD' => $value[0], 'T_EXT' => $str_ext));
}
}
@@ -749,5 +749,5 @@
if ($this->arrParam[$value[1]] != '' && !file_exists($path)) {
- $this->arrErr[$value[1]] = '※ ' . $path . 'が見つかりません。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_FIND_FILE', array('T_PATH' => $path));
}
}
@@ -762,5 +762,5 @@
$this->createParam($value);
if (!($_FILES[$value[1]]['size'] != '' && $_FILES[$value[1]]['size'] > 0)) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'をアップロードして下さい。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_FILE_EXIST_CHECK', array('T_FIELD' => $value[0]));
}
}
@@ -780,5 +780,5 @@
$byte = 'MB';
}
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'のファイルサイズは' . $value[2] . $byte . '以下のものを使用してください。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_FILE_SIZE_CHECK', array('T_FIELD' => $value[0], 'T_SIZE' => $value[2], 'T_UNIT' => $byte));
}
}
@@ -793,5 +793,5 @@
$this->createParam($value);
if (strlen($_FILES[$value[1]]['name']) > 0 && !preg_match("/^[[:alnum:]_\.-]+$/i", $_FILES[$value[1]]['name'])) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'のファイル名に日本語やスペースは使用しないで下さい。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_FILE_NAME_CHECK', array('T_FIELD' => $value[0]));
}
}
@@ -806,5 +806,5 @@
$this->createParam($value);
if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[[:alnum:]_\.-]+$/i", $this->arrParam[$value[1]]) || preg_match('/[\\]/' ,$this->arrParam[$value[1]])) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'のファイル名に日本語やスペースは使用しないで下さい。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_FILE_NAME_CHECK', array('T_FIELD' => $value[0]));
}
}
@@ -824,7 +824,7 @@
// 年月日のどれかが入力されていない。
if (!(strlen($this->arrParam[$value[1]]) > 0 && strlen($this->arrParam[$value[2]]) > 0 && strlen($this->arrParam[$value[3]]) > 0)) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'はすべての項目を入力して下さい。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_DATE_ALL_EXIST', array('T_FIELD' => $value[0]));
} else if (! checkdate($this->arrParam[$value[2]], $this->arrParam[$value[3]], $this->arrParam[$value[1]])) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'が正しくありません。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_DATE_PROPER', array('T_FIELD' => $value[0]));
}
}
@@ -847,7 +847,7 @@
// 年月日時のどれかが入力されていない。
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)) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'はすべての項目を入力して下さい。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_DATE_ALL_EXIST', array('T_FIELD' => $value[0]));
} else if (! checkdate($this->arrParam[$value[2]], $this->arrParam[$value[3]], $this->arrParam[$value[1]])) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'が正しくありません。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_DATE_PROPER', array('T_FIELD' => $value[0]));
}
}
@@ -867,7 +867,7 @@
// 年月日時のどれかが入力されていない。
if (!(strlen($this->arrParam[$value[1]]) > 0 && strlen($this->arrParam[$value[2]]) > 0)) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'はすべての項目を入力して下さい。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_DATE_ALL_EXIST', array('T_FIELD' => $value[0]));
} else if (! checkdate($this->arrParam[$value[2]], 1, $this->arrParam[$value[1]])) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'が正しくありません。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_DATE_PROPER', array('T_FIELD' => $value[0]));
}
}
@@ -932,8 +932,8 @@
$this->createParam($value);
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]])) {
- $this->arrErr[$value[2]] = '※ ' . $value[0] . 'を正しく指定してください。
';
+ $this->arrErr[$value[2]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_SET_TERM_PROPER', array('T_FIELD' => $value[0]));
}
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]])) {
- $this->arrErr[$value[5]] = '※ ' . $value[1] . 'を正しく指定してください。
';
+ $this->arrErr[$value[5]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_SET_TERM_PROPER', array('T_FIELD' => $value[1]));
}
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,5 +943,5 @@
if (($this->arrErr[$value[2]] == '' && $this->arrErr[$value[5]] == '') && $date1 > $date2) {
- $this->arrErr[$value[2]] = '※ ' .$value[0]. 'と' .$value[1]. 'の期間指定が不正です。
';
+ $this->arrErr[$value[2]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_SET_TERM_RANGE', array('T_START' => $value[0], 'T_END' => $value[1]));
}
}
@@ -982,8 +982,8 @@
$this->createParam($value);
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]])) {
- $this->arrErr[$value[2]] = '※ ' . $value[0] . 'を正しく指定してください。
';
+ $this->arrErr[$value[2]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_SET_TERM_PROPER', array('T_FIELD' => $value[0]));
}
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]])) {
- $this->arrErr[$value[8]] = '※ ' . $value[1] . 'を正しく指定してください。
';
+ $this->arrErr[$value[8]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_SET_TERM_PROPER', array('T_FIELD' => $value[1]));
}
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,8 +993,8 @@
if (($this->arrErr[$value[2]] == '' && $this->arrErr[$value[8]] == '') && $date1 > $date2) {
- $this->arrErr[$value[2]] = '※ ' .$value[0]. 'と' .$value[1]. 'の期間指定が不正です。
';
+ $this->arrErr[$value[2]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_SET_TERM_RANGE', array('T_START' => $value[0], 'T_END' => $value[1]));
}
if ($date1 == $date2) {
- $this->arrErr[$value[2]] = '※ ' .$value[0]. 'と' .$value[1]. 'の期間指定が不正です。
';
+ $this->arrErr[$value[2]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_SET_TERM_RANGE', array('T_START' => $value[0], 'T_END' => $value[1]));
}
@@ -1025,8 +1025,8 @@
$this->createParam($value);
if ((strlen($this->arrParam[$value[2]]) > 0 || strlen($this->arrParam[$value[3]]) > 0) && ! checkdate($this->arrParam[$value[3]], 1, $this->arrParam[$value[2]])) {
- $this->arrErr[$value[2]] = '※ ' . $value[0] . 'を正しく指定してください。
';
+ $this->arrErr[$value[2]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_SET_TERM_PROPER', array('T_FIELD' => $value[0]));
}
if ((strlen($this->arrParam[$value[4]]) > 0 || strlen($this->arrParam[$value[5]]) > 0) && ! checkdate($this->arrParam[$value[5]], 1, $this->arrParam[$value[4]])) {
- $this->arrErr[$value[4]] = '※ ' . $value[1] . 'を正しく指定してください。
';
+ $this->arrErr[$value[4]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_SET_TERM_PROPER', array('T_FIELD' => $value[1]));
}
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,5 +1036,5 @@
if (($this->arrErr[$value[2]] == '' && $this->arrErr[$value[5]] == '') && $date1 > $date2) {
- $this->arrErr[$value[2]] = '※ ' .$value[0]. 'と' .$value[1]. 'の期間指定が不正です。
';
+ $this->arrErr[$value[2]] = SC_I18n_Ex::t('SC_CHECKERROR_CHECK_SET_TERM_RANGE', array('T_START' => $value[0], 'T_END' => $value[1]));
}
}
@@ -1048,5 +1048,5 @@
$this->createParam($value);
if (!is_dir($this->arrParam[$value[1]])) {
- $this->arrErr[$value[1]] = '※ 指定した' . $value[0] . 'は存在しません。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_DIR_CHECK', array('T_FIELD' => $value[0]));
}
}
@@ -1058,5 +1058,5 @@
}
if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^\.[^.]+\..+/i", $this->arrParam[$value[1]])) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'の形式が不正です。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_DOMAIN_CHECK', array('T_FIELD' => $value[0]));
}
}
@@ -1072,5 +1072,5 @@
$objMobile = new SC_Helper_Mobile_Ex();
if (strlen($this->arrParam[$value[1]]) > 0 && !$objMobile->gfIsMobileMailAddress($this->arrParam[$value[1]])) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は携帯電話のものではありません。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_MOBILE_EMAIL_CHECK', array('T_FIELD' => $value[0]));
}
}
@@ -1093,8 +1093,8 @@
switch ($register_user_flg) {
case 1:
- $this->arrErr[$value[1]] .= '※ すでに会員登録で使用されている' . $value[0] . 'です。
';
+ $this->arrErr[$value[1]] .= SC_I18n_Ex::t('SC_CHECKERROR_CHECK_REGIST_CUSTOMER_EMAIL_EXIST', array('T_FIELD' => $value[0]));
break;
case 2:
- $this->arrErr[$value[1]] .= '※ 退会から一定期間の間は、同じ' . $value[0] . 'を使用することはできません。
';
+ $this->arrErr[$value[1]] .= SC_I18n_Ex::t('SC_CHECKERROR_CHECK_REGIST_CUSTOMER_EMAIL_INTERVAL', array('T_FIELD' => $value[0]));
break;
default:
@@ -1120,5 +1120,5 @@
$pattern = '/' . join('|', $prohibitedStr) . '/i';
if (preg_match_all($pattern, $targetStr, $matches = array())) {
- $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は入力できません。
';
+ $this->arrErr[$value[1]] = SC_I18n_Ex::t('SC_CHECKERROR_PROHIBITED_STR_CHECK', array('T_FIELD' => $value[0]));
}
}
@@ -1137,5 +1137,5 @@
$this->createParam($value);
if ($this->evalCheck($value[1]) === false) {
- $this->arrErr[$value[0]] = '※ ' . $value[0] . ' の形式が不正です。
';
+ $this->arrErr[$value[0]] = SC_I18n_Ex::t('SC_CHECKERROR_EVAL_CHECK', array('T_FIELD' => $value[0]));
}
}