- Timestamp:
- 2013/01/17 10:34:51 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-multilang/data/class/helper/SC_Helper_Locale.php
r22226 r22266 55 55 // If language code is not specified, use site default. 56 56 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'; 58 58 } else { 59 59 $lang_code = $options['lang_code']; … … 73 73 74 74 // 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]; 81 79 } 82 80
Note: See TracChangeset
for help on using the changeset viewer.