Ignore:
Timestamp:
2012/11/08 14:01:51 (14 years ago)
Author:
pineray
Message:

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

文字列のキーが英文となったことをうけた変更.

File:
1 edited

Legend:

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

    r22059 r22085  
    4444        // If language code is not specified, use site default. 
    4545        if (empty($options['lang_code'])) { 
    46             $options['lang_code'] = LANG_CODE; 
     46            if (defined(LANG_CODE)) { 
     47                $options['lang_code'] = LANG_CODE; 
     48            } else { 
     49                $options['lang_code'] = 'en'; 
     50            } 
    4751        } 
    4852        // If device type ID is not specified, detect the viewing device. 
     
    8286        // If language code is not specified, use site default. 
    8387        if (empty($options['lang_code'])) { 
    84             $options['lang_code'] = LANG_CODE; 
     88            if (defined(LANG_CODE)) { 
     89                $options['lang_code'] = LANG_CODE; 
     90            } else { 
     91                $options['lang_code'] = 'en'; 
     92            } 
    8593        } 
    8694        // If device type ID is not specified, detect the viewing device. 
Note: See TracChangeset for help on using the changeset viewer.