r87418 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87417‎ | r87418 | r87419 >
Date:17:54, 4 May 2011
Author:raymond
Status:ok
Tags:
Comment:
Tweak messages/alias file for r87407
Add extension to Translatewiki
Modified paths:
  • /trunk/extensions/ProtectSite/ProtectSite.alias.php (modified) (history)
  • /trunk/extensions/ProtectSite/ProtectSite.i18n.php (modified) (history)
  • /trunk/extensions/ProtectSite/ProtectSite.php (modified) (history)
  • /trunk/extensions/Translate/groups/mediawiki-defines.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/ProtectSite/ProtectSite.alias.php
@@ -6,14 +6,19 @@
77 * @ingroup Extensions
88 */
99
10 -$aliases = array();
 10+$specialPageAliases = array();
1111
1212 /** English */
13 -$aliases['en'] = array(
 13+$specialPageAliases['en'] = array(
1414 'ProtectSite' => array( 'ProtectSite' ),
1515 );
1616
1717 /** Finnish (Suomi) */
18 -$aliases['fi'] = array(
 18+$specialPageAliases['fi'] = array(
1919 'ProtectSite' => array( 'SuojaaSivusto', 'Suojaa sivusto' ),
20 -);
\ No newline at end of file
 20+);
 21+
 22+/**
 23+ * For backwards compatibility with MediaWiki 1.15 and earlier.
 24+ */
 25+$aliases =& $specialPageAliases;
\ No newline at end of file
Index: trunk/extensions/ProtectSite/ProtectSite.i18n.php
@@ -13,6 +13,7 @@
1414 */
1515 $messages['en'] = array(
1616 'protectsite' => 'Protect site',
 17+ 'protectsite-desc' => 'Allows a site administrator to temporarily block various site modifications',
1718 'protectsite-text-protect' => '<!-- Instructions/Comments/Policy for use -->',
1819 'protectsite-text-unprotect' => '<!-- Instructions/Comments when protected -->',
1920 'protectsite-title' => 'Site protection settings',
@@ -25,11 +26,11 @@
2627 'protectsite-move' => 'Allow moving of pages by',
2728 'protectsite-upload' => 'Allow file uploads by',
2829 'protectsite-timeout' => 'Timeout:',
29 - 'protectsite-timeout-error' => "'''Invalid Timeout.'''",
 30+ 'protectsite-timeout-error' => "'''Invalid timeout.'''",
3031 'protectsite-maxtimeout' => 'Maximum: $1',
3132 'protectsite-comment' => 'Comment:',
32 - 'protectsite-ucomment' => 'Unprotect comment: ',
33 - 'protectsite-until' => 'Protected until: ',
 33+ 'protectsite-ucomment' => 'Unprotect comment:',
 34+ 'protectsite-until' => 'Protected until:',
3435 'protectsite-protect' => 'Protect',
3536 'protectsite-unprotect' => 'Unprotect',
3637
@@ -594,4 +595,4 @@
595596 */
596597 $messages['uk'] = array(
597598 'protectsite-title' => 'Налаштування захисту сайту',
598 -);
\ No newline at end of file
 599+);
Index: trunk/extensions/ProtectSite/ProtectSite.php
@@ -29,10 +29,11 @@
3030
3131 /* Extension Credits. Splarka wants me to be so UN:VAIN! Haet haet hat! */
3232 $wgExtensionCredits['specialpage'][] = array(
 33+ 'path' => __FILE__,
3334 'name' => 'Protect Site',
3435 'version' => '0.3.4',
3536 'author' => array( '[http://uncyclopedia.org/wiki/User:Dawg Eric Johnston]', 'Chris Stafford', 'Jack Phoenix' ),
36 - 'description' => 'Allows a site administrator to temporarily block various site modifications',
 37+ 'description' => 'protectsite-desc',
3738 'url' => 'http://www.mediawiki.org/wiki/Extension:ProtectSite',
3839 );
3940
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt
@@ -1190,6 +1190,9 @@
11911191 Protect Section
11921192 descmsg = protectsection_desc
11931193
 1194+Protect Site
 1195+aliasfile = ProtectSite/ProtectSite.alias.php
 1196+
11941197 Proxy Connect
11951198
11961199 PSI NoTocNum

Follow-up revisions

RevisionCommit summaryAuthorDate
r110675ProtectSite: follow-up to r87418ashley18:52, 3 February 2012

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r87407adding some new extensionsashley15:52, 4 May 2011

Status & tagging log