$langFile,
'target' => basename($INC),
'sw' => $SW,
);
// 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 . '=' . htmlentities($value) . '
';
} // END - foreach
} else {
// To much to display!
$diffContent .= '- {--ADMIN_REPAIR_LANGUAGE_TO_MUCH--}
';
}
$diffContent .= '
';
// Prepare content
$content = array(
'source' => $langFile,
'target' => basename($INC),
'diff_count' => translateComma(getLanguageComparisonDifference($INC)),
'diff_content' => $diffContent,
'sw' => $SW,
);
// Compares, all fine
$OUT .= loadTemplate('admin_repair_lang_row_diff', true, $content);
}
} else {
// Not readable, prepare content
$content = array(
'file' => basename($INC),
'lang' => $lang,
'sw' => $SW,
);
// Load template
$OUT .= loadTemplate('admin_repair_lang_row_404', true, $content);
}
// Switch color
$SW = 3 - $SW;
} // END - foreach
} // END - foreach
// Preapre content
$content = array(
'rows' => $OUT,
'file_count' => translateComma(count($langFiles)),
'total_diff' => translateComma($GLOBALS['lang_diff_count']['total']),
'total_msgs' => translateComma($GLOBALS['msg_count'][getCurrentLanguage()]),
);
// Load main template
loadTemplate('admin_repair_lang', false, $content);
// [EOF]
?>