Changeset 2203 for trunk/system/core/Kohana.php
- Timestamp:
- 02/29/2008 04:48:53 PM (10 months ago)
- Files:
-
- 1 modified
-
trunk/system/core/Kohana.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/core/Kohana.php
r2202 r2203 687 687 return $found[$hash]; 688 688 689 if ($directory == 'config' OR $directory == 'i18n' )689 if ($directory == 'config' OR $directory == 'i18n' OR $directory === 'l10n') 690 690 { 691 691 $fnd = array(); … … 843 843 static $locale = array(); 844 844 845 // Extract the main group from the key 846 $group = explode('.', $key, 2); 847 $group = $group[0]; 848 849 if (empty($language[$group])) 845 if (empty($locale)) 850 846 { 851 847 // Messages from this file … … 857 853 // Loop through the files and include each one, so SYSPATH files 858 854 // can be overloaded by more localized files 859 foreach(self::find_file(' i10n', $filename) as $file)855 foreach(self::find_file('l10n', $filename) as $file) 860 856 { 861 857 include $file; … … 866 862 foreach($locale as $k => $v) 867 863 { 868 $ messages[$k] = $v;864 $locale[$k] = $v; 869 865 } 870 866 } 871 867 } 872 873 // Cache the type874 $language[$group] = $messages;875 868 } 876 869 877 870 // Get the line from the language 878 $line = self::key_string($key, $l anguage);871 $line = self::key_string($key, $locale); 879 872 880 873 // Return the key string as fallback
