Ignore:
Timestamp:
2013/01/31 18:39:05 (11 years ago)
Author:
m_uehara
Message:

#2084 r22432 - r22433 の逆マージを行いました。

File:
1 edited

Legend:

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

    r22453 r22489  
    6565 
    6666        // ページタイトル todo あとでなおす 
    67         $this->arrTitle['']         = t('LC_Page_Admin_Total_001'); 
    68         $this->arrTitle['term']     = t('LC_Page_Admin_Total_002'); 
    69         $this->arrTitle['products'] = t('LC_Page_Admin_Total_003'); 
    70         $this->arrTitle['age']      = t('LC_Page_Admin_Total_004'); 
    71         $this->arrTitle['job']      = t('LC_Page_Admin_Total_005'); 
    72         $this->arrTitle['member']   = t('LC_Page_Admin_Total_006'); 
     67        $this->arrTitle['']         = t('c_Sales by period_01'); 
     68        $this->arrTitle['term']     = t('c_Sales by period_01'); 
     69        $this->arrTitle['products'] = t('c_Sales by product_01'); 
     70        $this->arrTitle['age']      = t('c_Sales by age group_01'); 
     71        $this->arrTitle['job']      = t('c_Sales  by occupation_01'); 
     72        $this->arrTitle['member']   = t('c_Sales by member_01'); 
    7373 
    7474        // 月度集計のkey名 
     
    335335            list($sy, $sm, $sd) = preg_split('|[/ ]|' , $sdate); 
    336336            list($ey, $em, $ed) = preg_split('|[/ ]|' , $edate); 
    337             $start_date = t('LC_Page_Admin_Total_007', array('T_ARG1' => $sy, 'T_ARG2' => $sm, 'T_ARG3' => $sd)); 
    338             $end_date = t('LC_Page_Admin_Total_007', array('T_ARG1' => $ey, 'T_ARG2' => $em, 'T_ARG3' => $ed)); 
    339             $objGraphLine->drawTitle(t('LC_Page_Admin_Total_008', array('T_ARG1' => $start_date, 'T_ARG2' => $end_date))); 
     337            $start_date = t('c_T_ARG1/T_ARG2/T_ARG3_01', array('T_ARG1' => $sy, 'T_ARG2' => $sm, 'T_ARG3' => $sd)); 
     338            $end_date = t('c_T_ARG1/T_ARG2/T_ARG3_01', array('T_ARG1' => $ey, 'T_ARG2' => $em, 'T_ARG3' => $ed)); 
     339            $objGraphLine->drawTitle(t('c_Sales period: T_ARG1 - T_ARG2_01', array('T_ARG1' => $start_date, 'T_ARG2' => $end_date))); 
    340340 
    341341            // グラフ描画 
     
    379379            list($sy, $sm, $sd) = preg_split('|[/ ]|' , $sdate); 
    380380            list($ey, $em, $ed) = preg_split('|[/ ]|' , $edate); 
    381             $start_date = t('LC_Page_Admin_Total_007', array('T_ARG1' => $sy, 'T_ARG2' => $sm, 'T_ARG3' => $sd)); 
    382             $end_date = t('LC_Page_Admin_Total_007', array('T_ARG1' => $ey, 'T_ARG2' => $em, 'T_ARG3' => $ed)); 
     381            $start_date = t('c_T_ARG1/T_ARG2/T_ARG3_01', array('T_ARG1' => $sy, 'T_ARG2' => $sm, 'T_ARG3' => $sd)); 
     382            $end_date = t('c_T_ARG1/T_ARG2/T_ARG3_01', array('T_ARG1' => $ey, 'T_ARG2' => $em, 'T_ARG3' => $ed)); 
    383383             
    384             $objGraphPie->drawTitle(t('LC_Page_Admin_Total_008', array('T_ARG1' => $start_date, 'T_ARG2' => $end_date))); 
     384            $objGraphPie->drawTitle(t('c_Sales period: T_ARG1 - T_ARG2_01', array('T_ARG1' => $start_date, 'T_ARG2' => $end_date))); 
    385385 
    386386            // 円グラフ描画 
     
    428428            list($sy, $sm, $sd) = preg_split('|[/ ]|' , $sdate); 
    429429            list($ey, $em, $ed) = preg_split('|[/ ]|' , $edate); 
    430             $start_date = t('LC_Page_Admin_Total_007', array('T_ARG1' => $sy, 'T_ARG2' => $sm, 'T_ARG3' => $sd)); 
    431             $end_date = t('LC_Page_Admin_Total_007', array('T_ARG1' => $ey, 'T_ARG2' => $em, 'T_ARG3' => $ed)); 
    432             $objGraphBar->drawTitle(t('LC_Page_Admin_Total_008', array('T_ARG1' => $start_date, 'T_ARG2' => $end_date))); 
     430            $start_date = t('c_T_ARG1/T_ARG2/T_ARG3_01', array('T_ARG1' => $sy, 'T_ARG2' => $sm, 'T_ARG3' => $sd)); 
     431            $end_date = t('c_T_ARG1/T_ARG2/T_ARG3_01', array('T_ARG1' => $ey, 'T_ARG2' => $em, 'T_ARG3' => $ed)); 
     432            $objGraphBar->drawTitle(t('c_Sales period: T_ARG1 - T_ARG2_01', array('T_ARG1' => $start_date, 'T_ARG2' => $end_date))); 
    433433 
    434434            $objGraphBar->drawGraph(); 
     
    529529            $member_key = $arrResult['order_sex']; 
    530530            if ($member_key != '') { 
    531                 $arrResult['member_name'] = (($arrResult['member']) ? t('LC_Page_Admin_Total_009') : t('LC_Page_Admin_Total_010')) . $this->arrSex[$member_key]; 
     531                $arrResult['member_name'] = (($arrResult['member']) ? t('c_Member_01') : t('c_Non-member_01')) . $this->arrSex[$member_key]; 
    532532            } else { 
    533                 $arrResult['member_name'] = t('LC_Page_Admin_Total_011'); 
    534             } 
    535         } 
    536  
    537         $tpl_image = $this->lfGetGraphPie($arrTotalResults, 'member_name', 'member', t('LC_Page_Admin_Total_039'), $sdate, $edate); 
     533                $arrResult['member_name'] = t('c_Not answered_01'); 
     534            } 
     535        } 
     536 
     537        $tpl_image = $this->lfGetGraphPie($arrTotalResults, 'member_name', 'member', t('c_(Sales ratio)_01'), $sdate, $edate); 
    538538 
    539539        return array($arrTotalResults, $tpl_image); 
     
    572572        $arrTotalResults = $objQuery->select($col, $from, $where, $arrWhereVal); 
    573573 
    574         $tpl_image  = $this->lfGetGraphPie($arrTotalResults, 'product_name', 'products_' . $type, t('LC_Page_Admin_Total_039'), $sdate, $edate); 
     574        $tpl_image  = $this->lfGetGraphPie($arrTotalResults, 'product_name', 'products_' . $type, t('c_(Sales ratio)_01'), $sdate, $edate); 
    575575 
    576576        return array($arrTotalResults, $tpl_image); 
     
    604604                $arrResult['job_name'] = $this->arrJob[$job_key]; 
    605605            } else { 
    606                 $arrResult['job_name'] = t('LC_Page_Admin_Total_011'); 
    607             } 
    608  
    609         } 
    610         $tpl_image     = $this->lfGetGraphPie($arrTotalResults, 'job_name', 'job_' . $type, t('LC_Page_Admin_Total_039'), $sdate, $edate); 
     606                $arrResult['job_name'] = t('c_Not answered_01'); 
     607            } 
     608 
     609        } 
     610        $tpl_image     = $this->lfGetGraphPie($arrTotalResults, 'job_name', 'job_' . $type, t('c_(Sales ratio)_01'), $sdate, $edate); 
    611611 
    612612        return array($arrTotalResults, $tpl_image); 
     
    639639            $age_key = $arrResult['age']; 
    640640            if ($age_key != '') { 
    641                 $arrResult['age_name'] = t('LC_Page_Admin_Total_012', array('T_ARG1' => $arrResult['age'])); 
     641                $arrResult['age_name'] = t('c_T_ARG1s_01', array('T_ARG1' => $arrResult['age'])); 
    642642            } else { 
    643                 $arrResult['age_name'] = t('LC_Page_Admin_Total_011'); 
    644             } 
    645  
    646         } 
    647         $tpl_image = $this->lfGetGraphBar($arrTotalResults, 'age_name', 'age_' . $type, t('LC_Page_Admin_Total_013'), t('LC_Page_Admin_Total_014'), $sdate, $edate); 
     643                $arrResult['age_name'] = t('c_Not answered_01'); 
     644            } 
     645 
     646        } 
     647        $tpl_image = $this->lfGetGraphBar($arrTotalResults, 'age_name', 'age_' . $type, t('c_(Age)_01'), t('c_(Total sales)_01'), $sdate, $edate); 
    648648 
    649649        return array($arrTotalResults, $tpl_image); 
     
    661661        switch ($type) { 
    662662            case 'month': 
    663                 $xtitle = t('LC_Page_Admin_Total_015'); 
    664                 $ytitle = t('LC_Page_Admin_Total_014'); 
     663                $xtitle = t('c_(By month)_01'); 
     664                $ytitle = t('c_(Total sales)_01'); 
    665665                $format = '%m'; 
    666666                break; 
    667667            case 'year': 
    668                 $xtitle = t('LC_Page_Admin_Total_016'); 
    669                 $ytitle = t('LC_Page_Admin_Total_014'); 
     668                $xtitle = t('c_(By year)_01'); 
     669                $ytitle = t('c_(Total sales)_01'); 
    670670                $format = '%Y'; 
    671671                break; 
    672672            case 'wday': 
    673                 $xtitle = t('LC_Page_Admin_Total_017'); 
    674                 $ytitle = t('LC_Page_Admin_Total_014'); 
     673                $xtitle = t('c_(By day)_01'); 
     674                $ytitle = t('c_(Total sales)_01'); 
    675675                $format = '%a'; 
    676676                break; 
    677677            case 'hour': 
    678                 $xtitle = t('LC_Page_Admin_Total_018'); 
    679                 $ytitle = t('LC_Page_Admin_Total_014'); 
     678                $xtitle = t('c_(By time)_01'); 
     679                $ytitle = t('c_(Total sales)_01'); 
    680680                $format = '%H'; 
    681681                break; 
    682682            default: 
    683                 $xtitle = t('LC_Page_Admin_Total_019'); 
    684                 $ytitle = t('LC_Page_Admin_Total_014'); 
     683                $xtitle = t('c_(By date)_01'); 
     684                $ytitle = t('c_(Total sales)_01'); 
    685685                $format = '%Y-%m-%d'; 
    686686                $xincline = true; 
     
    803803            // 期間別集計の合計行の「期間」項目に不要な値が表示されてしまわない様、'合計'と表示する 
    804804            if (($i === $max -1) && isset($arrRet[$i]['str_date'])) { 
    805                 $arrRet[$i]['str_date'] = t('LC_Page_Admin_Total_020'); 
     805                $arrRet[$i]['str_date'] = t('c_Total_01'); 
    806806            } 
    807807            $csv_data.= SC_Utils_Ex::sfGetCSVList($arrRet[$i]); 
     
    815815            case 'products': 
    816816                $arrTitleCol = array( 
    817                     t('LC_Page_Admin_Total_021'), 
    818                     t('LC_Page_Admin_Total_022'), 
    819                     t('LC_Page_Admin_Total_023'), 
    820                     t('LC_Page_Admin_Total_024'), 
    821                     t('LC_Page_Admin_Total_025'), 
    822                     t('LC_Page_Admin_Total_026'), 
     817                    t('c_Product code_01'), 
     818                    t('c_Product name_01'), 
     819                    t('c_Number of items purchased_01'), 
     820                    t('c_Quantity_01'), 
     821                    t('c_Unit price_01'), 
     822                    t('c_Amount_01'), 
    823823                ); 
    824824                $arrDataCol = array( 
     
    834834            case 'job': 
    835835                $arrTitleCol = array( 
    836                     t('LC_Page_Admin_Total_027'), 
    837                     t('LC_Page_Admin_Total_023'), 
    838                     t('LC_Page_Admin_Total_028'), 
    839                     t('LC_Page_Admin_Total_029'), 
     836                    t('c_Occupation_01'), 
     837                    t('c_Number of items purchased_01'), 
     838                    t('c_Purchase total_01'), 
     839                    t('c_Purchase average_01'), 
    840840                ); 
    841841                $arrDataCol = array( 
     
    849849            case 'member': 
    850850                $arrTitleCol = array( 
    851                     t('LC_Page_Admin_Total_030'), 
    852                     t('LC_Page_Admin_Total_023'), 
    853                     t('LC_Page_Admin_Total_028'), 
    854                     t('LC_Page_Admin_Total_029'), 
     851                    t('c_Member_01'), 
     852                    t('c_Number of items purchased_01'), 
     853                    t('c_Purchase total_01'), 
     854                    t('c_Purchase average_01'), 
    855855                ); 
    856856                $arrDataCol = array( 
     
    864864            case 'age': 
    865865                $arrTitleCol = array( 
    866                     t('LC_Page_Admin_Total_031'), 
    867                     t('LC_Page_Admin_Total_023'), 
    868                     t('LC_Page_Admin_Total_028'), 
    869                     t('LC_Page_Admin_Total_029'), 
     866                    t('c_Age_01'), 
     867                    t('c_Number of items purchased_01'), 
     868                    t('c_Purchase total_01'), 
     869                    t('c_Purchase average_01'), 
    870870                ); 
    871871                $arrDataCol = array( 
     
    879879            default: 
    880880                $arrTitleCol = array( 
    881                     t('LC_Page_Admin_Total_032'), 
    882                     t('LC_Page_Admin_Total_023'), 
    883                     t('LC_Page_Admin_Total_033'), 
    884                     t('LC_Page_Admin_Total_034'), 
    885                     t('LC_Page_Admin_Total_035'), 
    886                     t('LC_Page_Admin_Total_036'), 
    887                     t('LC_Page_Admin_Total_037'), 
    888                     t('LC_Page_Admin_Total_038'), 
    889                     t('LC_Page_Admin_Total_028'), 
    890                     t('LC_Page_Admin_Total_029'), 
     881                    t('c_Period_01'), 
     882                    t('c_Number of items purchased_01'), 
     883                    t('c_Male_01'), 
     884                    t('c_Female_01'), 
     885                    t('c_Male (member)_01'), 
     886                    t('c_Male (non-member)_01'), 
     887                    t('c_Female (member)_01'), 
     888                    t('c_Female (non-member)_01'), 
     889                    t('c_Purchase total_01'), 
     890                    t('c_Purchase average_01'), 
    891891                ); 
    892892                $arrDataCol = array( 
Note: See TracChangeset for help on using the changeset viewer.