r40013 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40012‎ | r40013 | r40014 >
Date:09:52, 26 August 2008
Author:nad
Status:old
Tags:
Comment:
update messages
Modified paths:
  • /trunk/extensions/SimpleSecurity/SimpleSecurity.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SimpleSecurity/SimpleSecurity.php
@@ -172,11 +172,10 @@
173173 );
174174
175175 # 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";
181180 }
182181
183182 return true;
@@ -444,8 +443,8 @@
445444 'security-logpagetext' => "This is a log of actions blocked by the [[MW:Extension:SimpleSecurity|SimpleSecurity extension]].",
446445 'security-logentry' => "",
447446 '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",
450449 'security-inforestrict' => "$1 is restricted to $2",
451450 'security-desc-LS' => "<i>(applies because this article is in the <b>$2 $1</b>)</i>",
452451 'security-desc-PR' => "<i>(set from the <b>protect tab</b>)</i>",

Status & tagging log