X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-repair_lang.php;h=b019c3b296765ac3f2dd0b5f88687d264c2de10e;hb=c9b17a86f4d62b50b8b1fbe6f9d88e6092430526;hp=ab99a5ea158f82906890c6d35916036ffcca624f;hpb=adb34cea9c14bcac14030f8eb1e6ae2c3231c962;p=mailer.git diff --git a/inc/modules/admin/what-repair_lang.php b/inc/modules/admin/what-repair_lang.php index ab99a5ea15..b019c3b296 100644 --- a/inc/modules/admin/what-repair_lang.php +++ b/inc/modules/admin/what-repair_lang.php @@ -14,10 +14,9 @@ * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * + * Copyright (c) 2009, 2010 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -48,7 +47,7 @@ addMenuDescription('admin', __FILE__); $langFiles = getArrayFromDirectory('inc/language/', '', false, false, array('_de.php'), '.php', '@(\.|\.\.)$@', true, getCurrentLanguage()); // By default nothing is checked, which is isn't right... -$SW = 2; $OUT = ''; +$OUT = ''; // Get valid languages $validLanguages = getValidLanguages(getCurrentLanguage()); @@ -81,7 +80,6 @@ foreach ($validLanguages as $lang) { $content = array( 'source' => $langFile, 'target' => basename($INC), - 'sw' => $SW, ); // Compares, all fine @@ -92,7 +90,7 @@ foreach ($validLanguages as $lang) { 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) . '
  • '; + $diffContent .= '
  • ' . $key . '=' . encodeEntities($value) . '
  • '; } // END - foreach } else { // To much to display! @@ -102,11 +100,9 @@ foreach ($validLanguages as $lang) { // Prepare content $content = array( + 'inc' => $INC, 'source' => $langFile, - 'target' => basename($INC), - 'diff_count' => translateComma(getLanguageComparisonDifference($INC)), 'diff_content' => $diffContent, - 'sw' => $SW, ); // Compares, all fine @@ -115,26 +111,22 @@ foreach ($validLanguages as $lang) { } else { // Not readable, prepare content $content = array( - 'file' => basename($INC), - 'lang' => $lang, - 'sw' => $SW, + 'inc' => $INC, + 'lang' => $lang, ); // 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()]), + 'file_count' => count($langFiles), + 'total_diff' => $GLOBALS['lang_diff_count']['total'], + 'total_msgs' => $GLOBALS['msg_count'][getCurrentLanguage()], ); // Load main template