[eluser]xwero[/eluser]
I would do it in the CodeIgniter/codeigniter.php file
above this line
Code:
call_user_func_array(array(&$CI, $method), array_slice($URI->rsegments, 2));
You can add
Code:
if(file_exists(APPPATH.'config/'.$class.EXT))
{
$CI->load->config($class);
}
if(file_exists(APPPATH.'language/'.config_item('language').'/'.$class.EXT))
{
$CI->load->lang($class);
}
The language class is more difficult because if the user is able to change the language you need to switch it before that file check otherwise the wrong language file is loaded.