]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-13997 merged from 19_STABLE
authormudrd8mz <mudrd8mz>
Mon, 19 May 2008 21:49:32 +0000 (21:49 +0000)
committermudrd8mz <mudrd8mz>
Mon, 19 May 2008 21:49:32 +0000 (21:49 +0000)
admin/lang.php

index 43157369cfca4ce7f415be88738030134992df65..1f134e30e86eff5b5a4b5677812f2620c58bc27b 100644 (file)
                         $missingcounter++;
                     }
                     if (LANG_LINK_MISSING_STRINGS && ($missingstring || $translationsdiffer)) {
-                        $missinglinkstart = "<a href=\"lang.php?mode=compare&amp;currentfile=$filename#missing$missingcounter\">";
+                        $missinglinkstart = "<a href=\"lang.php?mode=compare&amp;currentfile=$filename#$key\">";
                         $missinglinkend = '</a>';
                     } else {
                         $missinglinkstart = '';
                 }
                 $o .= '">';
                 $o .= '<td dir="ltr" lang="en">';
-                $o .= '<span class="stren">'.$envalue.'</span>';
+                $o .= '<span id="'.$key.'" class="stren">'.$envalue.'</span>';
                 $o .= '<br />'."\n";
                 $o .= '<span class="strkey">'.$key.'</span>';
                 $o .= '</td>'."\n";
                     }
                 } else {
                     // the string is translated in the pack being processed
-                    if ($value <> $value2 && ($uselocal || $value2 <> '')) {
+                    if ($value <> $value2 && ($value2 <> '')) {
                         $cellcolour = 'class="localdifferent"';
                         $usetabindex = true;
                         $missingcounter++;