Index: trunk/extensions/SimpleSecurity/SimpleSecurity.php |
— | — | @@ -172,11 +172,10 @@ |
173 | 173 | ); |
174 | 174 | |
175 | 175 | # Add info-toggle before title and hidden info after title |
176 | | - $link = "<a href='javascript:'>".wfMsg('security-info')."</a>"; |
177 | | - $alt = wfMsg('security-infotoggle'); |
178 | | - $toggle = "<span id='security-info-toggle' onClick='toggleSecurityInfo()' title='$alt'>$link</span>"; |
179 | | - $info = "<div id='security-info' style='display:none'>$itext</div>"; |
180 | | - $text = $toggle.$info.$text; |
| 176 | + $link = "<a href='javascript:'>".wfMsg('security-info-toggle')."</a>"; |
| 177 | + $link = "<span onClick='toggleSecurityInfo()'>$link</span>"; |
| 178 | + $info = "<div id='security-info-toggle'>".wfMsg('security-info', $link)."</div>\n"; |
| 179 | + $text = "$info<div id='security-info' style='display:none'>$itext</div>\n$text"; |
181 | 180 | } |
182 | 181 | |
183 | 182 | return true; |
— | — | @@ -444,8 +443,8 @@ |
445 | 444 | 'security-logpagetext' => "This is a log of actions blocked by the [[MW:Extension:SimpleSecurity|SimpleSecurity extension]].", |
446 | 445 | 'security-logentry' => "", |
447 | 446 | 'badaccess-read' => "\nWarning: \"$1\" is referred to here, but it can only be viewed by $2.\n", |
448 | | - 'security-info' => "Security information", |
449 | | - 'security-infotoggle' => "This article exhibits security restrictions. Click this icon for more detail.", |
| 447 | + 'security-info' => "There are $1 on this article", |
| 448 | + 'security-info-toggle' => "security restrictions", |
450 | 449 | 'security-inforestrict' => "$1 is restricted to $2", |
451 | 450 | 'security-desc-LS' => "<i>(applies because this article is in the <b>$2 $1</b>)</i>", |
452 | 451 | 'security-desc-PR' => "<i>(set from the <b>protect tab</b>)</i>", |