kopia lustrzana https://github.com/magicbug/Cloudlog
add to use english language if ask not found
add to use the english language file, if the ask language not foundpull/987/head
rodzic
7ed5a89253
commit
62e2562cef
|
@ -146,6 +146,20 @@ class CI_Lang {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// try to load in default language (english) //
|
||||||
|
if (($found !== TRUE)&&($idiom != 'english')) {
|
||||||
|
$idiom = 'english';
|
||||||
|
foreach (get_instance()->load->get_package_paths(TRUE) as $package_path)
|
||||||
|
{
|
||||||
|
$package_path .= 'language/'.$idiom.'/'.$langfile;
|
||||||
|
if ($basepath !== $package_path && file_exists($package_path))
|
||||||
|
{
|
||||||
|
include($package_path);
|
||||||
|
$found = TRUE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($found !== TRUE)
|
if ($found !== TRUE)
|
||||||
|
|
Ładowanie…
Reference in New Issue