diff --git a/admin/lang.php b/admin/lang.php index 1c737dac33b..78c45952498 100644 --- a/admin/lang.php +++ b/admin/lang.php @@ -46,8 +46,12 @@ $strfilecreated = get_string('filecreated', 'admin'); $strprev = get_string('previous'); $strnext = get_string('next'); - $strlocalstringcustomization = 'Local string customization'; // TODO / FIXME - $strlangpackmaintaining = 'Language pack maintaining'; // TODO / FIXME + $strlocalstringcustomization = 'Local string customization'; // TODO / FIXME + $strlangpackmaintaining = 'Language pack maintaining'; // TODO / FIXME + $strnomissingstrings = 'No missing strings'; // TODO / FIXME + // TODO/FIXME add into en_utf8/admin.php: + // $string['numberofmissingstrings'] = 'Number of missing strings: $a'; + $currentlang = current_language(); switch ($mode) { @@ -343,11 +347,7 @@ } error_reporting($CFG->debug); - print_heading("$currentfile", "", 4); - if (LANG_DISPLAY_MISSING_LINKS && $editable) { - print_heading(''.$strgotofirst.'', "", 4); - } - + $o = ''; // stores the HTML output to be echo-ed unset($string); include("$enlangdir/$currentfile"); $enstring = $string; @@ -368,36 +368,36 @@ @include("$langdir/$currentfile"); if ($editable) { - echo "
'; } + if (LANG_DISPLAY_MISSING_LINKS) { + if ($missingcounter > 0) { + print_heading(get_string('numberofmissingstrings', 'admin', $missingcounter), '', 4); + if ($editable) { + print_heading(''.$strgotofirst.'', "", 4); + } + } else { + print_heading($strnomissingstrings, '', 4, 'notifysuccess'); + } + } + echo $o; + } else { // no $currentfile specified // no useful information to display - maybe some help? instructions?