Ignore:
Timestamp:
2013/01/27 19:31:34 (11 years ago)
Author:
h_yoshimoto
Message:

#2060 IDの振り直し

File:
1 edited

Legend:

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

    r22425 r22429  
    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_FIELD1' => $sy, 'T_FIELD2' => $sm, 'T_FIELD3' => $sd)); 
    338             $end_date = t('LC_Page_Admin_Total_007', array('T_FIELD1' => $ey, 'T_FIELD2' => $em, 'T_FIELD3' => $ed)); 
    339             $objGraphLine->drawTitle(t('LC_Page_Admin_Total_008', array('T_FIELD1' => $start_date, 'T_FIELD2' => $end_date))); 
     337            $start_date = t('c_T_FIELD1/T_FIELD2/T_FIELD3_01', array('T_FIELD1' => $sy, 'T_FIELD2' => $sm, 'T_FIELD3' => $sd)); 
     338            $end_date = t('c_T_FIELD1/T_FIELD2/T_FIELD3_01', array('T_FIELD1' => $ey, 'T_FIELD2' => $em, 'T_FIELD3' => $ed)); 
     339            $objGraphLine->drawTitle(t('c_Sales period: T_FIELD1 - T_FIELD2_01', array('T_FIELD1' => $start_date, 'T_FIELD2' => $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_FIELD1' => $sy, 'T_FIELD2' => $sm, 'T_FIELD3' => $sd)); 
    382             $end_date = t('LC_Page_Admin_Total_007', array('T_FIELD1' => $ey, 'T_FIELD2' => $em, 'T_FIELD3' => $ed)); 
     381            $start_date = t('c_T_FIELD1/T_FIELD2/T_FIELD3_01', array('T_FIELD1' => $sy, 'T_FIELD2' => $sm, 'T_FIELD3' => $sd)); 
     382            $end_date = t('c_T_FIELD1/T_FIELD2/T_FIELD3_01', array('T_FIELD1' => $ey, 'T_FIELD2' => $em, 'T_FIELD3' => $ed)); 
    383383             
    384             $objGraphPie->drawTitle(t('LC_Page_Admin_Total_008', array('T_FIELD1' => $start_date, 'T_FIELD2' => $end_date))); 
     384            $objGraphPie->drawTitle(t('c_Sales period: T_FIELD1 - T_FIELD2_01', array('T_FIELD1' => $start_date, 'T_FIELD2' => $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_FIELD1' => $sy, 'T_FIELD2' => $sm, 'T_FIELD3' => $sd)); 
    431             $end_date = t('LC_Page_Admin_Total_007', array('T_FIELD1' => $ey, 'T_FIELD2' => $em, 'T_FIELD3' => $ed)); 
    432             $objGraphBar->drawTitle(t('LC_Page_Admin_Total_008', array('T_FIELD1' => $start_date, 'T_FIELD2' => $end_date))); 
     430            $start_date = t('c_T_FIELD1/T_FIELD2/T_FIELD3_01', array('T_FIELD1' => $sy, 'T_FIELD2' => $sm, 'T_FIELD3' => $sd)); 
     431            $end_date = t('c_T_FIELD1/T_FIELD2/T_FIELD3_01', array('T_FIELD1' => $ey, 'T_FIELD2' => $em, 'T_FIELD3' => $ed)); 
     432            $objGraphBar->drawTitle(t('c_Sales period: T_FIELD1 - T_FIELD2_01', array('T_FIELD1' => $start_date, 'T_FIELD2' => $end_date))); 
    433433 
    434434            $objGraphBar->drawGraph(); 
     
    529529            $member_key = $arrResult['order_sex']; 
    530530            if ($member_key != '') { 
    531                 $arrResult['member_name'] = (($arrResult['member']) ? t('c_Member_01') : 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'); 
     533                $arrResult['member_name'] = t('c_Not answered_01'); 
    534534            } 
    535535        } 
     
    604604                $arrResult['job_name'] = $this->arrJob[$job_key]; 
    605605            } else { 
    606                 $arrResult['job_name'] = t('LC_Page_Admin_Total_011'); 
     606                $arrResult['job_name'] = t('c_Not answered_01'); 
    607607            } 
    608608 
     
    639639            $age_key = $arrResult['age']; 
    640640            if ($age_key != '') { 
    641                 $arrResult['age_name'] = t('LC_Page_Admin_Total_012', array('T_FIELD' => $arrResult['age'])); 
     641                $arrResult['age_name'] = t('c_T_FIELDs_01', array('T_FIELD' => $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; 
Note: See TracChangeset for help on using the changeset viewer.