Changeset 22498 for branches/version-2_12-multilang/data/class/pages/admin/products/LC_Page_Admin_Products_UploadCSVCategory.php
- Timestamp:
- 2013/02/04 21:42:42 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-multilang/data/class/pages/admin/products/LC_Page_Admin_Products_UploadCSVCategory.php
r22496 r22498 72 72 $this->tpl_subno = 'upload_csv_category'; 73 73 $this->tpl_maintitle = t('c_Products_01'); 74 $this->tpl_subtitle = t(' LC_Page_Admin_Products_UploadCSVCategory_001');74 $this->tpl_subtitle = t('c_Category registration CSV_01'); 75 75 $this->csv_id = '5'; 76 76 … … 140 140 */ 141 141 function addRowResult($line_count, $message) { 142 $this->arrRowResult[] = t(' LC_Page_Admin_Products_UploadCSVCategory_002', array('T_ARG1' => $line_count, 'T_ARG2' => $message));142 $this->arrRowResult[] = t('c_Line T_ARG1: T_ARG2_01', array('T_ARG1' => $line_count, 'T_ARG2' => $message)); 143 143 } 144 144 … … 151 151 */ 152 152 function addRowErr($line_count, $message) { 153 $this->arrRowErr[] = t(' LC_Page_Admin_Products_UploadCSVCategory_002', array('T_ARG1' => $line_count, 'T_ARG2' => $message));153 $this->arrRowErr[] = t('c_Line T_ARG1: T_ARG2_01', array('T_ARG1' => $line_count, 'T_ARG2' => $message)); 154 154 } 155 155 … … 212 212 $col_count = count($arrCSV); 213 213 if ($col_max_count != $col_count) { 214 $this->addRowErr($line_count, t(' LC_Page_Admin_Products_UploadCSVCategory_003', array('T_ARG1' => $col_count, 'T_ARG2' => $col_max_count)));214 $this->addRowErr($line_count, t('c_* T_ARG1 was detected for the item quantity. The item quantity is T_ARG2._01', array('T_ARG1' => $col_count, 'T_ARG2' => $col_max_count))); 215 215 216 216 $errFlag = true; … … 236 236 237 237 $category_id = $this->lfRegistCategory($objQuery, $line_count, $objFormParam); 238 $this->addRowResult($line_count, t(' LC_Page_Admin_Products_UploadCSVCategory_004', array('T_ARG1' => $category_id, 'T_ARG2' => $objFormParam->getValue('category_name'))));238 $this->addRowResult($line_count, t('c_Category ID: T_ARG1 /Category name: T_ARG2_01', array('T_ARG1' => $category_id, 'T_ARG2' => $objFormParam->getValue('category_name')))); 239 239 } 240 240 … … 462 462 && !SC_Helper_DB_Ex::sfIsRecord('dtb_category', 'category_id', array($item['parent_category_id'])) 463 463 ) { 464 $arrErr['parent_category_id'] = t(' LC_Page_Admin_Products_UploadCSVCategory_005', array('T_ARG1' => $item['parent_category_id']));464 $arrErr['parent_category_id'] = t('c_* The designated new category ID (T_ARG1) does not exist._01', array('T_ARG1' => $item['parent_category_id'])); 465 465 } 466 466 // 削除フラグのチェック … … 469 469 ) { 470 470 if (!($item['del_flg'] == '0' or $item['del_flg'] == '1')) { 471 $arrErr['del_flg'] = t(' LC_Page_Admin_Products_UploadCSVCategory_006');471 $arrErr['del_flg'] = t('c_* Only '0' (active) and '1' (delete) are effective for the deletion flag. _01'); 472 472 } 473 473 } … … 487 487 $item['category_name'])); 488 488 if ($exists) { 489 $arrErr['category_name'] = t(' LC_Page_Admin_Products_UploadCSVCategory_007');489 $arrErr['category_name'] = t('c_* A category of the same name already exists._01'); 490 490 } 491 491 } … … 494 494 $count = $objQuery->count('dtb_category', $where); 495 495 if ($count >= CATEGORY_MAX) { 496 $item['category_name'] = t(' LC_Page_Admin_Products_UploadCSVCategory_008');496 $item['category_name'] = t('c_* The maximum number of categories that can be registered has been exceeded._01'); 497 497 } 498 498 // 階層上限チェック … … 501 501 $level = $objQuery->get('level', 'dtb_category', 'category_id = ?', array($parent_category_id)); 502 502 if ($level >= LEVEL_MAX) { 503 $arrErr['parent_category_id'] = t(' LC_Page_Admin_Products_UploadCSVCategory_009', array('T_ARG1' => LEVEL_MAX));503 $arrErr['parent_category_id'] = t('c_* Registration of the T_ARG1 hierarchy or higher is not possible._01', array('T_ARG1' => LEVEL_MAX)); 504 504 } 505 505 }
Note: See TracChangeset
for help on using the changeset viewer.