Changeset 22088


Ignore:
Timestamp:
2012/11/09 17:52:13 (11 years ago)
Author:
h_yoshimoto
Message:

#1890 クラスのメッセージを集約(ダミーID)

Location:
branches/version-2_12-multilang/data
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-multilang/data/class/pages/admin/total/LC_Page_Admin_Total.php

    r22067 r22088  
    6565 
    6666        // ページタイトル todo あとでなおす 
    67         $this->arrTitle['']         = '期間別集計'; 
    68         $this->arrTitle['term']     = '期間別集計'; 
    69         $this->arrTitle['products'] = '商品別集計'; 
    70         $this->arrTitle['age']      = '年代別集計'; 
    71         $this->arrTitle['job']      = '職業別集計'; 
    72         $this->arrTitle['member']   = '会員別集計'; 
     67        $this->arrTitle['']         = SC_I18n_Ex::t('LC_Page_Admin_Total_001'); 
     68        $this->arrTitle['term']     = SC_I18n_Ex::t('LC_Page_Admin_Total_002'); 
     69        $this->arrTitle['products'] = SC_I18n_Ex::t('LC_Page_Admin_Total_003'); 
     70        $this->arrTitle['age']      = SC_I18n_Ex::t('LC_Page_Admin_Total_004'); 
     71        $this->arrTitle['job']      = SC_I18n_Ex::t('LC_Page_Admin_Total_005'); 
     72        $this->arrTitle['member']   = SC_I18n_Ex::t('LC_Page_Admin_Total_006'); 
    7373 
    7474        // 月度集計のkey名 
     
    344344            list($sy, $sm, $sd) = preg_split('|[/ ]|' , $sdate); 
    345345            list($ey, $em, $ed) = preg_split('|[/ ]|' , $edate); 
    346             $start_date = $sy . '年' . $sm . '月' . $sd . '日'; 
    347             $end_date = $ey . '年' . $em . '月' . $ed . '日'; 
    348             $objGraphLine->drawTitle('集計期間:' . $start_date . ' - ' . $end_date); 
     346            $start_date = SC_I18n_Ex::t('LC_Page_Admin_Total_007', array('T_FIELD1' => $sy, 'T_FIELD2' => $sm, 'T_FIELD3' => $sd)); 
     347            $end_date = SC_I18n_Ex::t('LC_Page_Admin_Total_007', array('T_FIELD1' => $ey, 'T_FIELD2' => $em, 'T_FIELD3' => $ed)); 
     348            $objGraphLine->drawTitle(SC_I18n_Ex::t('LC_Page_Admin_Total_008', array('T_FIELD1' => $start_date, 'T_FIELD2' => $end_date))); 
    349349 
    350350            // グラフ描画 
     
    388388            list($sy, $sm, $sd) = preg_split('|[/ ]|' , $sdate); 
    389389            list($ey, $em, $ed) = preg_split('|[/ ]|' , $edate); 
    390             $start_date = $sy . '年' . $sm . '月' . $sd . '日'; 
    391             $end_date = $ey . '年' . $em . '月' . $ed . '日'; 
    392             $objGraphPie->drawTitle('集計期間:' . $start_date . ' - ' . $end_date); 
     390            $start_date = SC_I18n_Ex::t('LC_Page_Admin_Total_007', array('T_FIELD1' => $sy, 'T_FIELD2' => $sm, 'T_FIELD3' => $sd)); 
     391            $end_date = SC_I18n_Ex::t('LC_Page_Admin_Total_007', array('T_FIELD1' => $ey, 'T_FIELD2' => $em, 'T_FIELD3' => $ed)); 
     392             
     393            $objGraphPie->drawTitle(SC_I18n_Ex::t('LC_Page_Admin_Total_008', array('T_FIELD1' => $start_date, 'T_FIELD2' => $end_date))); 
    393394 
    394395            // 円グラフ描画 
     
    436437            list($sy, $sm, $sd) = preg_split('|[/ ]|' , $sdate); 
    437438            list($ey, $em, $ed) = preg_split('|[/ ]|' , $edate); 
    438             $start_date = $sy . '年' . $sm . '月' . $sd . '日'; 
    439             $end_date = $ey . '年' . $em . '月' . $ed . '日'; 
    440             $objGraphBar->drawTitle('集計期間:' . $start_date . ' - ' . $end_date); 
     439            $start_date = SC_I18n_Ex::t('LC_Page_Admin_Total_007', array('T_FIELD1' => $sy, 'T_FIELD2' => $sm, 'T_FIELD3' => $sd)); 
     440            $end_date = SC_I18n_Ex::t('LC_Page_Admin_Total_007', array('T_FIELD1' => $ey, 'T_FIELD2' => $em, 'T_FIELD3' => $ed)); 
     441            $objGraphBar->drawTitle(SC_I18n_Ex::t('LC_Page_Admin_Total_008', array('T_FIELD1' => $start_date, 'T_FIELD2' => $end_date))); 
    441442 
    442443            $objGraphBar->drawGraph(); 
     
    537538            $member_key = $arrResult['order_sex']; 
    538539            if ($member_key != '') { 
    539                 $arrResult['member_name'] = (($arrResult['member']) ? '会員' : '非会員') . $this->arrSex[$member_key]; 
     540                $arrResult['member_name'] = (($arrResult['member']) ? SC_I18n_Ex::t('LC_Page_Admin_Total_009') : SC_I18n_Ex::t('LC_Page_Admin_Total_010')) . $this->arrSex[$member_key]; 
    540541            } else { 
    541                 $arrResult['member_name'] = '未回答'; 
    542             } 
    543         } 
    544  
    545         $tpl_image = $this->lfGetGraphPie($arrTotalResults, 'member_name', 'member', '(売上比率)', $sdate, $edate); 
     542                $arrResult['member_name'] = SC_I18n_Ex::t('LC_Page_Admin_Total_011'); 
     543            } 
     544        } 
     545 
     546        $tpl_image = $this->lfGetGraphPie($arrTotalResults, 'member_name', 'member', SC_I18n_Ex::t('LC_Page_Admin_Total_039'), $sdate, $edate); 
    546547 
    547548        return array($arrTotalResults, $tpl_image); 
     
    580581        $arrTotalResults = $objQuery->select($col, $from, $where, $arrWhereVal); 
    581582 
    582         $tpl_image  = $this->lfGetGraphPie($arrTotalResults, 'product_name', 'products_' . $type, '(売上比率)', $sdate, $edate); 
     583        $tpl_image  = $this->lfGetGraphPie($arrTotalResults, 'product_name', 'products_' . $type, SC_I18n_Ex::t('LC_Page_Admin_Total_039'), $sdate, $edate); 
    583584 
    584585        return array($arrTotalResults, $tpl_image); 
     
    612613                $arrResult['job_name'] = $this->arrJob[$job_key]; 
    613614            } else { 
    614                 $arrResult['job_name'] = '未回答'; 
    615             } 
    616  
    617         } 
    618         $tpl_image     = $this->lfGetGraphPie($arrTotalResults, 'job_name', 'job_' . $type, '(売上比率)', $sdate, $edate); 
     615                $arrResult['job_name'] = SC_I18n_Ex::t('LC_Page_Admin_Total_011'); 
     616            } 
     617 
     618        } 
     619        $tpl_image     = $this->lfGetGraphPie($arrTotalResults, 'job_name', 'job_' . $type, SC_I18n_Ex::t('LC_Page_Admin_Total_039'), $sdate, $edate); 
    619620 
    620621        return array($arrTotalResults, $tpl_image); 
     
    647648            $age_key = $arrResult['age']; 
    648649            if ($age_key != '') { 
    649                 $arrResult['age_name'] = $arrResult['age'] . '代'; 
     650                $arrResult['age_name'] = SC_I18n_Ex::t('LC_Page_Admin_Total_012', array('T_FIELD' => $arrResult['age'])); 
    650651            } else { 
    651                 $arrResult['age_name'] = '未回答'; 
    652             } 
    653  
    654         } 
    655         $tpl_image = $this->lfGetGraphBar($arrTotalResults, 'age_name', 'age_' . $type, '(年齢)', '(売上合計)', $sdate, $edate); 
     652                $arrResult['age_name'] = SC_I18n_Ex::t('LC_Page_Admin_Total_011'); 
     653            } 
     654 
     655        } 
     656        $tpl_image = $this->lfGetGraphBar($arrTotalResults, 'age_name', 'age_' . $type, SC_I18n_Ex::t('LC_Page_Admin_Total_013'), SC_I18n_Ex::t('LC_Page_Admin_Total_014'), $sdate, $edate); 
    656657 
    657658        return array($arrTotalResults, $tpl_image); 
     
    669670        switch ($type) { 
    670671            case 'month': 
    671                 $xtitle = '(月別)'; 
    672                 $ytitle = '(売上合計)'; 
     672                $xtitle = SC_I18n_Ex::t('LC_Page_Admin_Total_015'); 
     673                $ytitle = SC_I18n_Ex::t('LC_Page_Admin_Total_014'); 
    673674                $format = '%m'; 
    674675                break; 
    675676            case 'year': 
    676                 $xtitle = '(年別)'; 
    677                 $ytitle = '(売上合計)'; 
     677                $xtitle = SC_I18n_Ex::t('LC_Page_Admin_Total_016'); 
     678                $ytitle = SC_I18n_Ex::t('LC_Page_Admin_Total_014'); 
    678679                $format = '%Y'; 
    679680                break; 
    680681            case 'wday': 
    681                 $xtitle = '(曜日別)'; 
    682                 $ytitle = '(売上合計)'; 
     682                $xtitle = SC_I18n_Ex::t('LC_Page_Admin_Total_017'); 
     683                $ytitle = SC_I18n_Ex::t('LC_Page_Admin_Total_014'); 
    683684                $format = '%a'; 
    684685                break; 
    685686            case 'hour': 
    686                 $xtitle = '(時間別)'; 
    687                 $ytitle = '(売上合計)'; 
     687                $xtitle = SC_I18n_Ex::t('LC_Page_Admin_Total_018'); 
     688                $ytitle = SC_I18n_Ex::t('LC_Page_Admin_Total_014'); 
    688689                $format = '%H'; 
    689690                break; 
    690691            default: 
    691                 $xtitle = '(日別)'; 
    692                 $ytitle = '(売上合計)'; 
     692                $xtitle = SC_I18n_Ex::t('LC_Page_Admin_Total_019'); 
     693                $ytitle = SC_I18n_Ex::t('LC_Page_Admin_Total_014'); 
    693694                $format = '%Y-%m-%d'; 
    694695                $xincline = true; 
     
    811812            // 期間別集計の合計行の「期間」項目に不要な値が表示されてしまわない様、'合計'と表示する 
    812813            if (($i === $max -1) && isset($arrRet[$i]['str_date'])) { 
    813                 $arrRet[$i]['str_date'] = '合計'; 
     814                $arrRet[$i]['str_date'] = SC_I18n_Ex::t('LC_Page_Admin_Total_020'); 
    814815            } 
    815816            $csv_data.= SC_Utils_Ex::sfGetCSVList($arrRet[$i]); 
     
    823824            case 'products': 
    824825                $arrTitleCol = array( 
    825                     '商品コード', 
    826                     '商品名', 
    827                     '購入件数', 
    828                     '数量', 
    829                     '単価', 
    830                     '金額', 
     826                    SC_I18n_Ex::t('LC_Page_Admin_Total_021'), 
     827                    SC_I18n_Ex::t('LC_Page_Admin_Total_022'), 
     828                    SC_I18n_Ex::t('LC_Page_Admin_Total_023'), 
     829                    SC_I18n_Ex::t('LC_Page_Admin_Total_024'), 
     830                    SC_I18n_Ex::t('LC_Page_Admin_Total_025'), 
     831                    SC_I18n_Ex::t('LC_Page_Admin_Total_026'), 
    831832                ); 
    832833                $arrDataCol = array( 
     
    842843            case 'job': 
    843844                $arrTitleCol = array( 
    844                     '職業', 
    845                     '購入件数', 
    846                     '購入合計', 
    847                     '購入平均', 
     845                    SC_I18n_Ex::t('LC_Page_Admin_Total_027'), 
     846                    SC_I18n_Ex::t('LC_Page_Admin_Total_023'), 
     847                    SC_I18n_Ex::t('LC_Page_Admin_Total_028'), 
     848                    SC_I18n_Ex::t('LC_Page_Admin_Total_029'), 
    848849                ); 
    849850                $arrDataCol = array( 
     
    857858            case 'member': 
    858859                $arrTitleCol = array( 
    859                     '会員', 
    860                     '購入件数', 
    861                     '購入合計', 
    862                     '購入平均', 
     860                    SC_I18n_Ex::t('LC_Page_Admin_Total_030'), 
     861                    SC_I18n_Ex::t('LC_Page_Admin_Total_023'), 
     862                    SC_I18n_Ex::t('LC_Page_Admin_Total_028'), 
     863                    SC_I18n_Ex::t('LC_Page_Admin_Total_029'), 
    863864                ); 
    864865                $arrDataCol = array( 
     
    872873            case 'age': 
    873874                $arrTitleCol = array( 
    874                     '年齢', 
    875                     '購入件数', 
    876                     '購入合計', 
    877                     '購入平均', 
     875                    SC_I18n_Ex::t('LC_Page_Admin_Total_031'), 
     876                    SC_I18n_Ex::t('LC_Page_Admin_Total_023'), 
     877                    SC_I18n_Ex::t('LC_Page_Admin_Total_028'), 
     878                    SC_I18n_Ex::t('LC_Page_Admin_Total_029'), 
    878879                ); 
    879880                $arrDataCol = array( 
     
    887888            default: 
    888889                $arrTitleCol = array( 
    889                     '期間', 
    890                     '購入件数', 
    891                     '男性', 
    892                     '女性', 
    893                     '男性(会員)', 
    894                     '男性(非会員)', 
    895                     '女性(会員)', 
    896                     '女性(非会員)', 
    897                     '購入合計', 
    898                     '購入平均', 
     890                    SC_I18n_Ex::t('LC_Page_Admin_Total_032'), 
     891                    SC_I18n_Ex::t('LC_Page_Admin_Total_023'), 
     892                    SC_I18n_Ex::t('LC_Page_Admin_Total_033'), 
     893                    SC_I18n_Ex::t('LC_Page_Admin_Total_034'), 
     894                    SC_I18n_Ex::t('LC_Page_Admin_Total_035'), 
     895                    SC_I18n_Ex::t('LC_Page_Admin_Total_036'), 
     896                    SC_I18n_Ex::t('LC_Page_Admin_Total_037'), 
     897                    SC_I18n_Ex::t('LC_Page_Admin_Total_038'), 
     898                    SC_I18n_Ex::t('LC_Page_Admin_Total_028'), 
     899                    SC_I18n_Ex::t('LC_Page_Admin_Total_029'), 
    899900                ); 
    900901                $arrDataCol = array( 
  • branches/version-2_12-multilang/data/locales/ja.po

    r22082 r22088  
    33"Project-Id-Version: EC-CUBE Core\n" 
    44"POT-Creation-Date: 2012-05-07 13T_39+0900\n" 
    5 "PO-Revision-Date: 2012-11-07 17:35+0900\n" 
     5"PO-Revision-Date: 2012-11-09 17:51+0900\n" 
    66"Last-Translator: MATSUDA Terutaka <matsudaterutaka@gmail.com>\n" 
    77"Language-Team: \n" 
     
    33833383msgstr "HTTPユーザーエージェント" 
    33843384 
     3385msgid "LC_Page_Admin_Total_001" 
     3386msgstr "期間別集計" 
     3387 
     3388msgid "LC_Page_Admin_Total_002" 
     3389msgstr "期間別集計" 
     3390 
     3391msgid "LC_Page_Admin_Total_003" 
     3392msgstr "商品別集計" 
     3393 
     3394msgid "LC_Page_Admin_Total_004" 
     3395msgstr "年代別集計" 
     3396 
     3397msgid "LC_Page_Admin_Total_005" 
     3398msgstr "職業別集計" 
     3399 
     3400msgid "LC_Page_Admin_Total_006" 
     3401msgstr "会員別集計" 
     3402 
     3403msgid "LC_Page_Admin_Total_007" 
     3404msgstr "T_FIELD1年T_FIELD2月T_FIELD3日'" 
     3405 
     3406msgid "LC_Page_Admin_Total_008" 
     3407msgstr "集計期間:T_FIELD1 - T_FIELD2" 
     3408 
     3409msgid "LC_Page_Admin_Total_009" 
     3410msgstr "会員" 
     3411 
     3412msgid "LC_Page_Admin_Total_010" 
     3413msgstr "非会員" 
     3414 
     3415msgid "LC_Page_Admin_Total_011" 
     3416msgstr "未回答" 
     3417 
     3418msgid "LC_Page_Admin_Total_012" 
     3419msgstr "T_FIELD代'" 
     3420 
     3421msgid "LC_Page_Admin_Total_013" 
     3422msgstr "(年齢)" 
     3423 
     3424msgid "LC_Page_Admin_Total_014" 
     3425msgstr "(売上合計)" 
     3426 
     3427msgid "LC_Page_Admin_Total_015" 
     3428msgstr "(月別)" 
     3429 
     3430msgid "LC_Page_Admin_Total_016" 
     3431msgstr "(年別)" 
     3432 
     3433msgid "LC_Page_Admin_Total_017" 
     3434msgstr "(曜日別)" 
     3435 
     3436msgid "LC_Page_Admin_Total_018" 
     3437msgstr "(時間別)" 
     3438 
     3439msgid "LC_Page_Admin_Total_019" 
     3440msgstr "(日別)" 
     3441 
     3442msgid "LC_Page_Admin_Total_020" 
     3443msgstr "合計" 
     3444 
     3445msgid "LC_Page_Admin_Total_021" 
     3446msgstr "商品コード" 
     3447 
     3448msgid "LC_Page_Admin_Total_022" 
     3449msgstr "商品名" 
     3450 
     3451msgid "LC_Page_Admin_Total_023" 
     3452msgstr "購入件数" 
     3453 
     3454msgid "LC_Page_Admin_Total_024" 
     3455msgstr "数量" 
     3456 
     3457msgid "LC_Page_Admin_Total_025" 
     3458msgstr "単価" 
     3459 
     3460msgid "LC_Page_Admin_Total_026" 
     3461msgstr "金額" 
     3462 
     3463msgid "LC_Page_Admin_Total_027" 
     3464msgstr "職業" 
     3465 
     3466msgid "LC_Page_Admin_Total_028" 
     3467msgstr "購入合計" 
     3468 
     3469msgid "LC_Page_Admin_Total_029" 
     3470msgstr "購入平均" 
     3471 
     3472msgid "LC_Page_Admin_Total_030" 
     3473msgstr "会員" 
     3474 
     3475msgid "LC_Page_Admin_Total_031" 
     3476msgstr "年齢" 
     3477 
     3478msgid "LC_Page_Admin_Total_032" 
     3479msgstr "期間" 
     3480 
     3481msgid "LC_Page_Admin_Total_033" 
     3482msgstr "男性" 
     3483 
     3484msgid "LC_Page_Admin_Total_034" 
     3485msgstr "女性" 
     3486 
     3487msgid "LC_Page_Admin_Total_035" 
     3488msgstr "男性(会員)" 
     3489 
     3490msgid "LC_Page_Admin_Total_036" 
     3491msgstr "男性(非会員)" 
     3492 
     3493msgid "LC_Page_Admin_Total_037" 
     3494msgstr "女性(会員)" 
     3495 
     3496msgid "LC_Page_Admin_Total_038" 
     3497msgstr "女性(非会員)" 
     3498 
     3499msgid "LC_Page_Admin_Total_039" 
     3500msgstr "(売上比率)" 
     3501 
    33853502msgid "LC_Page_Admin_001" 
    33863503msgstr "前方互換用メソッドが使用されました。" 
Note: See TracChangeset for help on using the changeset viewer.