Ignore:
Timestamp:
2013/01/22 11:36:56 (11 years ago)
Author:
m_uehara
Message:

#2039 PDF動的出力部を英文用に修正。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-multilang/data/class/SC_Fpdf.php

    r22205 r22300  
    107107        // 郵便番号 
    108108//        $text = '〒 ' . $arrInfo['law_zip01'] . ' - ' . $arrInfo['law_zip02']; 
    109         $text = '〒 ' . $arrInfo['law_zipcode']; 
     109        $text = t('SC_Fpdf_021') . $arrInfo['law_zipcode']; 
    110110        $this->lfText(125, 71, $text, 8); 
    111111        // 都道府県+所在地 
     
    117117        //FAX番号が存在する場合、表示する 
    118118        if (strlen($arrInfo['law_fax01']) > 0) { 
    119             $text .= ' FAX: '.$arrInfo['law_fax01'].'-'.$arrInfo['law_fax02'].'-'.$arrInfo['law_fax03']; 
     119            $text .= ' FAX: '.$arrInfo['law_fax01'].'-'.$arrInfo['law_fax02'].'-'.$arrInfo['law_fax03']; 
    120120        } 
    121121        $this->lfText(125, 80, $text, 8);  //TEL・FAX 
     
    152152        // 購入者情報 
    153153//        $text = '〒 '.$this->arrDisp['order_zip01'].' - '.$this->arrDisp['order_zip02']; 
    154         $text = '〒 '.$this->arrDisp['order_zipcode']; 
     154        $text = t('SC_Fpdf_021') . $this->arrDisp['order_zipcode']; 
    155155        $this->lfText(23, 43, $text, 10); //購入者郵便番号 
    156156        $text = $this->arrPref[$this->arrDisp['order_pref']] . $this->arrDisp['order_addr01']; 
    157157        $this->lfText(27, 47, $text, 10); //購入者都道府県+住所1 
    158158        $this->lfText(27, 51, $this->arrDisp['order_addr02'], 10); //購入者住所2 
    159         $text = $this->arrDisp['order_name01'].' '.$this->arrDisp['order_name02'].' 様'; 
     159        $text = t('SC_Fpdf_018', array('T_LASTNAME' => $this->arrDisp['order_name01'], 'T_FIRSTNAME' => $this->arrDisp['order_name02'])); 
    160160        $this->lfText(27, 59, $text, 11); //購入者氏名 
    161161 
     
    170170        $this->Cell(5, 0, '', 0, 0, 'R', 0, ''); 
    171171        $this->SetFont('SJIS', 'B', 15); 
    172         $tokens = array( 
    173             'T_PRICE' => number_format($this->arrDisp['payment_total']), 
    174             'T_UNIT' => t('SC_Fpdf_019') 
    175         ); 
    176         $this->Cell(67, 8, t('SC_Fpdf_018', $tokens), 0, 2, 'R', 0, ''); 
     172        $this->Cell(67, 8, t('SC_Fpdf_019', array('T_FIELD' => number_format($this->arrDisp['payment_total']))), 0, 2, 'R', 0, ''); 
    177173        $this->Cell(0, 45, '', 0, 2, '', 0, ''); 
    178174 
    179175        $this->SetFont('SJIS', '', 8); 
    180176 
    181         $monetary_unit = t('SC_Fpdf_019'); 
    182177        $point_unit = t('SC_Fpdf_020'); 
    183178 
     
    205200            } 
    206201            $arrOrder[$i][1]  = number_format($data[0]); 
    207             $arrOrder[$i][2]  = number_format($data[1]).$monetary_unit; 
    208             $arrOrder[$i][3]  = number_format($data[2]).$monetary_unit; 
     202            $arrOrder[$i][2]  = t('SC_Fpdf_019', array('T_FIELD' => number_format($data[1]))); 
     203            $arrOrder[$i][3]  = t('SC_Fpdf_019', array('T_FIELD' => number_format($data[2]))); 
    209204 
    210205        } 
     
    219214        $arrOrder[$i][1] = ''; 
    220215        $arrOrder[$i][2] = t('SC_Fpdf_005'); 
    221         $arrOrder[$i][3] = number_format($this->arrDisp['subtotal']).$monetary_unit; 
     216        $arrOrder[$i][3] = t('SC_Fpdf_019', array('T_FIELD' => number_format($this->arrDisp['subtotal']))); 
    222217 
    223218        $i++; 
     
    225220        $arrOrder[$i][1] = ''; 
    226221        $arrOrder[$i][2] = t('SC_Fpdf_006'); 
    227         $arrOrder[$i][3] = number_format($this->arrDisp['deliv_fee']).$monetary_unit; 
     222        $arrOrder[$i][3] = t('SC_Fpdf_019', array('T_FIELD' => number_format($this->arrDisp['deliv_fee']))); 
    228223 
    229224        $i++; 
     
    231226        $arrOrder[$i][1] = ''; 
    232227        $arrOrder[$i][2] = t('SC_Fpdf_007'); 
    233         $arrOrder[$i][3] = number_format($this->arrDisp['charge']).$monetary_unit; 
     228        $arrOrder[$i][3] = t('SC_Fpdf_019', array('T_FIELD' => number_format($this->arrDisp['charge']))); 
    234229 
    235230        $i++; 
     
    237232        $arrOrder[$i][1] = ''; 
    238233        $arrOrder[$i][2] = t('SC_Fpdf_008'); 
    239         $arrOrder[$i][3] = '- '.number_format(($this->arrDisp['use_point'] * POINT_VALUE) + $this->arrDisp['discount']).$monetary_unit; 
     234        $arrOrder[$i][3] = t('SC_Fpdf_019', array('T_FIELD' => '- '.number_format(($this->arrDisp['use_point'] * POINT_VALUE) + $this->arrDisp['discount']))); 
    240235 
    241236        $i++; 
     
    243238        $arrOrder[$i][1] = ''; 
    244239        $arrOrder[$i][2] = t('SC_Fpdf_009'); 
    245         $arrOrder[$i][3] = number_format($this->arrDisp['payment_total']).$monetary_unit; 
     240        $arrOrder[$i][3] = t('SC_Fpdf_019', array('T_FIELD' => number_format($this->arrDisp['payment_total']))); 
    246241 
    247242        // ポイント表記 
Note: See TracChangeset for help on using the changeset viewer.