Ignore:
Timestamp:
2013/01/17 10:34:51 (14 years ago)
Author:
m_uehara
Message:

#2026 en → en-US に変更しました。

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

Legend:

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

    r22226 r22266  
    5555        // If language code is not specified, use site default. 
    5656        if (empty($options['lang_code'])) { 
    57             $lang_code = $options['lang_code'] = defined('LANG_CODE') ? LANG_CODE : 'en'; 
     57            $lang_code = $options['lang_code'] = defined('LANG_CODE') ? LANG_CODE : 'en-US'; 
    5858        } else { 
    5959            $lang_code = $options['lang_code']; 
     
    7373 
    7474        // Get string list of specified language. 
    75         if ($lang_code != 'en') { 
    76             $translations = SC_Helper_Locale_Ex::$_instance->get_translations($lang_code, $device_type_id); 
    77             // Whether a string which corresponding with alias is exist. 
    78             if (isset($translations[$return])) { 
    79                 $return = $translations[$return]; 
    80             } 
     75        $translations = SC_Helper_Locale_Ex::$_instance->get_translations($lang_code, $device_type_id); 
     76        // Whether a string which corresponding with alias is exist. 
     77        if (isset($translations[$return])) { 
     78            $return = $translations[$return]; 
    8179        } 
    8280 
  • branches/version-2_12-multilang/data/include/common.php

    r22101 r22266  
    6868        $translated_single = $single; 
    6969        $translated_plural = $plural; 
    70         $options['lang_code'] = 'en'; 
     70        $options['lang_code'] = 'en-US'; 
    7171    } 
    7272 
     
    103103 * @return integer  index 
    104104 */ 
    105 function get_plural_index($count, $lang_code = 'en') { 
     105function get_plural_index($count, $lang_code = 'en-US') { 
    106106    static $plural_indexes = array(); 
    107107 
     
    124124            $plural_indexes[$lang_code][$count] = $plural; 
    125125        // If there is no plural formula for English 
    126         } elseif ($lang_code == 'en') { 
     126        } elseif ($lang_code == 'en-US') { 
    127127            $plural_indexes[$lang_code][$count] = (int) ($count != 1); 
    128128        // Otherwise, return -1 (unknown). 
  • branches/version-2_12-multilang/data/mtb_constants_init_en-US.php

    r22265 r22266  
    3131define('UPDATE_HTTP', "http://www.ec-cube.net/info/index.php"); 
    3232/** Language code */ 
    33 define('LANG_CODE', "en"); 
     33define('LANG_CODE', "en-US"); 
    3434/** Text code */ 
    3535define('CHAR_CODE', "UTF-8"); 
     
    324324define('SLTEXT_LEN', 500); 
    325325/** Default template name (PC) */ 
    326 define('DEFAULT_TEMPLATE_NAME', "default_en"); 
     326define('DEFAULT_TEMPLATE_NAME', "default_en-US"); 
    327327/** Default template name (mobile) */ 
    328328define('MOBILE_DEFAULT_TEMPLATE_NAME', "mobile"); 
    329329/** Default template name (smartphone) */ 
    330 define('SMARTPHONE_DEFAULT_TEMPLATE_NAME', "sphone_en"); 
     330define('SMARTPHONE_DEFAULT_TEMPLATE_NAME', "sphone_en-US"); 
    331331/** Template name */ 
    332 define('TEMPLATE_NAME', "default_en"); 
     332define('TEMPLATE_NAME', "default_en-US"); 
    333333/** Mobile template name */ 
    334334define('MOBILE_TEMPLATE_NAME', "mobile"); 
    335335/** Smartphone template name */ 
    336 define('SMARTPHONE_TEMPLATE_NAME', "sphone_en"); 
     336define('SMARTPHONE_TEMPLATE_NAME', "sphone_en-US"); 
    337337/** SMARTY template */ 
    338338define('SMARTY_TEMPLATES_REALDIR',  DATA_REALDIR . "Smarty/templates/"); 
Note: See TracChangeset for help on using the changeset viewer.