Ignore:
Timestamp:
2012/11/16 14:56:04 (11 years ago)
Author:
pineray
Message:

#163 (テキスト出力多言語対応)

グローバル化に伴い、不要となった SC_I18n を削除.

File:
1 edited

Legend:

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

    r22067 r22100  
    4646        $this->tpl_subno    = 'template'; 
    4747        $this->tpl_mainno   = 'design'; 
    48         $this->tpl_maintitle = SC_I18n_Ex::t('TPL_MAINTITLE_003'); 
    49         $this->tpl_subtitle = SC_I18n_Ex::t('LC_Page_Admin_Design_Template_002'); 
     48        $this->tpl_maintitle = t('TPL_MAINTITLE_003'); 
     49        $this->tpl_subtitle = t('LC_Page_Admin_Design_Template_002'); 
    5050        $this->arrErr  = array(); 
    5151        $this->arrForm = array(); 
     
    8989                    if ($this->doRegister($template_code, $this->device_type_id)) { 
    9090                        $this->tpl_select = $template_code; 
    91                         $this->tpl_onload = "alert('" . SC_I18n_Ex::t('ALERT_004') . "');"; 
     91                        $this->tpl_onload = "alert('" . t('ALERT_004') . "');"; 
    9292                    } 
    9393                } 
     
    102102                if (SC_Utils_Ex::isBlank($this->arrErr)) { 
    103103                    if ($this->doDelete($template_code, $this->device_type_id)) { 
    104                         $this->tpl_onload = "alert('" . SC_I18n_Ex::t('ALERT_011') . "');"; 
     104                        $this->tpl_onload = "alert('" . t('ALERT_011') . "');"; 
    105105                    } 
    106106                } 
     
    149149     */ 
    150150    function lfInitParam(&$objFormParam) { 
    151         $objFormParam->addParam(SC_I18n_Ex::t('PARAM_LABEL_DEVICE_TYPE_ID'), 'device_type_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 
    152         $objFormParam->addParam(SC_I18n_Ex::t('PARAM_LABEL_TPL_CODE'), 'template_code', STEXT_LEN, 'a', array('EXIST_CHECK', 'SPTAB_CHECK','MAX_LENGTH_CHECK', 'ALNUM_CHECK')); 
     151        $objFormParam->addParam(t('PARAM_LABEL_DEVICE_TYPE_ID'), 'device_type_id', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK')); 
     152        $objFormParam->addParam(t('PARAM_LABEL_TPL_CODE'), 'template_code', STEXT_LEN, 'a', array('EXIST_CHECK', 'SPTAB_CHECK','MAX_LENGTH_CHECK', 'ALNUM_CHECK')); 
    153153    } 
    154154 
     
    222222        if ($template_code == $this->getTemplateName($device_type_id) 
    223223                || $template_code == $this->getTemplateName($device_type_id, true)) { 
    224             $this->arrErr['err'] = SC_I18n_Ex::t('LC_Page_Admin_Design_Template_003'); 
     224            $this->arrErr['err'] = t('LC_Page_Admin_Design_Template_003'); 
    225225            return false; 
    226226        } else { 
     
    230230                              array($template_code, $device_type_id)); 
    231231 
    232             $error =  SC_I18n_Ex::t('LC_Page_Admin_Design_Template_004'); 
     232            $error =  t('LC_Page_Admin_Design_Template_004'); 
    233233            // テンプレート削除 
    234234            $templates_dir = SMARTY_TEMPLATES_REALDIR . $template_code. '/'; 
     
    271271        $tpl_dir = USER_TEMPLATE_REALDIR . $template_code . '/'; 
    272272        if (!is_dir($tpl_dir)) { 
    273             $this->arrErr['err'] = SC_I18n_Ex::t('LC_Page_Admin_Design_Template_005', array('T_FIELD' => $tpl_dir)); 
     273            $this->arrErr['err'] = t('LC_Page_Admin_Design_Template_005', array('T_FIELD' => $tpl_dir)); 
    274274            return false; 
    275275        } 
     
    301301        $to_dir = SMARTY_TEMPLATES_REALDIR . $template_code . '/_packages/'; 
    302302        if (SC_Utils_Ex::recursiveMkdir($to_dir) === false) { 
    303             $this->arrErr['err'] = SC_I18n_Ex::t('LC_Page_Admin_Design_Template_006'); 
     303            $this->arrErr['err'] = t('LC_Page_Admin_Design_Template_006'); 
    304304            return false; 
    305305        } 
    306306        SC_Utils_Ex::sfCopyDir($from_dir, $to_dir); 
    307307        if (SC_Helper_FileManager_Ex::downloadArchiveFiles(SMARTY_TEMPLATES_REALDIR . $template_code, $template_code) === false) { 
    308             $this->arrErr['err'] = SC_I18n_Ex::t('LC_Page_Admin_Design_Template_007'); 
     308            $this->arrErr['err'] = t('LC_Page_Admin_Design_Template_007'); 
    309309            return false; 
    310310        } 
Note: See TracChangeset for help on using the changeset viewer.