Changeset 3147
- Timestamp:
- 07/18/08 03:00:29 (6 weeks ago)
- Location:
- trunk/system
- Files:
-
- 2 modified
-
config/locale.php (modified) (1 diff)
-
core/Kohana.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/config/locale.php
r2214 r3147 3 3 * @package Core 4 4 * 5 * Default language locale name. 6 * @see http://php.net/locales 5 * Default language locale name(s). 6 * First item must be a valid i18n directory name, subsequent items are alternative locales 7 * for OS's that don't support the first (e.g. Windows). The first valid locale in the array will be used. 8 * @see http://php.net/setlocale 7 9 */ 8 $config['language'] = 'en_US';10 $config['language'] = array('en_US', 'English_United States'); 9 11 10 12 /** -
trunk/system/core/Kohana.php
r2995 r3147 109 109 110 110 // Set locale information 111 setlocale(LC_ALL, Config::item('locale.language').'.UTF-8'); 111 $locales = Config::item('locale.language'); 112 $locales[0] .= '.UTF-8'; 113 setlocale(LC_ALL, $locales); 112 114 113 115 if (Config::item('log.threshold') > 0) … … 946 948 947 949 // The name of the file to search for 948 $filename = Config::item('locale.language').'/'.$group; 950 $locales = Config::item('locale.language'); 951 $filename = $locales[0].'/'.$group; 949 952 950 953 // Loop through the files and include each one, so SYSPATH files … … 979 982 if ($line === NULL) 980 983 { 981 Log::add('error', 'Missing i18n entry '.$key.' for language '.Config::item('locale.language')); 984 $locales = Config::item('locale.language'); 985 Log::add('error', 'Missing i18n entry '.$key.' for language '.$locales[0]); 982 986 return $key; 983 987 }
