I18n_Kohana_Class.patch
| Kohana.php 2009-04-24 17:38:59.000000000 +0200 | ||
|---|---|---|
| 151 | 151 | |
| 152 | 152 |
// Set locale information |
| 153 | 153 |
self::$locale = setlocale(LC_ALL, $locales); |
| 154 |
|
|
| 155 |
// Set locale for the I18n system |
|
| 156 |
I18n::set_locale(self::$locale); |
|
| 154 | 157 | |
| 155 | 158 |
// Enable Kohana routing |
| 156 | 159 |
Event::add('system.routing', array('Router', 'find_uri'));
|
| ... | ... | |
| 814 | 817 |
// Nothing found, yet |
| 815 | 818 |
$found = NULL; |
| 816 | 819 | |
| 817 |
if ($directory === 'config' OR $directory === 'messages') |
|
| 820 |
if ($directory === 'config' OR $directory === 'messages' OR $directory === 'i18n')
|
|
| 818 | 821 |
{
|
| 819 | 822 |
// Search in reverse, for merging |
| 820 | 823 |
$paths = array_reverse($paths); |