$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 = ''; // 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] ?>