Permalink
Browse files

MDL-13997 Links from "missing" to "compare" mode are being created us…

…ing ID instead of A NAME now. Do not highlight strings translated in _local only.
  • Loading branch information...
1 parent 014734b commit f3ab12191910dd22892850c5946ff0b8626cd45e mudrd8mz committed May 19, 2008
Showing with 3 additions and 3 deletions.
  1. +3 −3 admin/lang.php
View
@@ -294,7 +294,7 @@
$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 = '';
@@ -571,7 +571,7 @@
}
$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";
@@ -613,7 +613,7 @@
}
} 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++;

0 comments on commit f3ab121

Please sign in to comment.