$langFile,
'target' => basename($INC),
);
// Compares, all fine
$OUT .= loadTemplate('admin_repair_lang_row_compares', true, $content);
} else {
// Generate difference output only if count is smaller/equals 100 entries
$diffContent = '
';
if (count($GLOBALS['lang_diff'][$INC]) <= 100) {
// Display them, it is not more than 100 entries difference
foreach ($GLOBALS['lang_diff'][$INC] as $key => $value) {
$diffContent .= '- ' . $key . '=' . encodeEntities($value) . '
';
} // END - foreach
} else {
// To much to display!
$diffContent .= '- {--ADMIN_REPAIR_LANGUAGE_TO_MUCH--}
';
}
$diffContent .= '
';
// Prepare content
$content = array(
'inc' => $INC,
'source' => $langFile,
'diff_content' => $diffContent,
);
// Compares, all fine
$OUT .= loadTemplate('admin_repair_lang_row_diff', true, $content);
}
} else {
// Not readable, prepare content
$content = array(
'inc' => $INC,
'lang' => $lang,
);
// Load template
$OUT .= loadTemplate('admin_repair_lang_row_404', true, $content);
}
} // END - foreach
} // END - foreach
// Preapre content
$content = array(
'rows' => $OUT,
'file_count' => count($langFiles),
'total_diff' => $GLOBALS['lang_diff_count']['total'],
'total_msgs' => $GLOBALS['msg_count'][getCurrentLanguage()],
);
// Load main template
loadTemplate('admin_repair_lang', false, $content);
// [EOF]
?>