21 error_log(__FILE__ . sprintf(
" Error loading lang from '%s'",
$lang_dir));
25 if (count(
$lang) <= 0) {
26 error_log(sprintf(__FILE__ .
" Language config is empty!"));
30 foreach (
$lang as $k => $v) {
32 if (!isset($v[
"flag"]) || $v[
"flag"] ==
"")
$lang[$k][
"flag"] = $k .
".png";
39 if ($dir_fh ===
false) {
40 error_log(sprintf(__FILE__ .
" Could not open lang directory '%s'",
$lang_dir));
44 while ($subdir = readdir($dir_fh)) {
51 if (is_file(
"$dir/lang.php")) {
54 error_log(sprintf(__FILE__ .
" Error loading lang.php '%s/%s'",
$dir,
"lang.php"));
load_lang_php(&$lang, $file)
if($ret===false) if(count($lang)<=0) foreach($lang as $k=> $v) load_lang(&$lang, $lang_dir)