r45398 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45397‎ | r45398 | r45399 >
Date:14:37, 4 January 2009
Author:purodha
Status:ok
Tags:
Comment:
MediaWiki:Protect-expiring needs to have date and time separated.
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)
  • /trunk/phase3/includes/Title.php (modified) (history)
  • /trunk/phase3/includes/specials/SpecialProtectedpages.php (modified) (history)
  • /trunk/phase3/includes/specials/SpecialProtectedtitles.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesKsh.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesQqq.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -1943,7 +1943,9 @@
19441944 $protect_description .= "[$action=$restrictions] (";
19451945 if( $encodedExpiry[$action] != 'infinity' ) {
19461946 $protect_description .= wfMsgForContent( 'protect-expiring',
1947 - $wgContLang->timeanddate( $expiry[$action], false, false ) );
 1947+ $wgContLang->timeanddate( $expiry[$action], false, false ) ,
 1948+ $wgContLang->date( $expiry[$action], false, false ) ,
 1949+ $wgContLang->time( $expiry[$action], false, false ) );
19481950 } else {
19491951 $protect_description .= wfMsgForContent( 'protect-expiry-indefinite' );
19501952 }
Index: trunk/phase3/includes/Title.php
@@ -1319,7 +1319,7 @@
13201320
13211321 $expiry_description = '';
13221322 if ( $encodedExpiry != 'infinity' ) {
1323 - $expiry_description = ' (' . wfMsgForContent( 'protect-expiring', $wgContLang->timeanddate( $expiry ) ).')';
 1323+ $expiry_description = ' (' . wfMsgForContent( 'protect-expiring', $wgContLang->timeanddate( $expiry ) , $wgContLang->date( $expiry ) , $wgContLang->time( $expiry ) ).')';
13241324 }
13251325 else {
13261326 $expiry_description .= ' (' . wfMsgForContent( 'protect-expiry-indefinite' ).')';
Index: trunk/phase3/includes/specials/SpecialProtectedtitles.php
@@ -75,7 +75,7 @@
7676 if ( $row->pt_expiry != 'infinity' && strlen($row->pt_expiry) ) {
7777 $expiry = Block::decodeExpiry( $row->pt_expiry );
7878
79 - $expiry_description = wfMsgForContent( 'protect-expiring', $wgLang->timeanddate( $expiry ) );
 79+ $expiry_description = wfMsgForContent( 'protect-expiring', $wgLang->timeanddate( $expiry ) , $wgLang->date( $expiry ) , $wgLang->time( $expiry ) );
8080
8181 $description_items[] = $expiry_description;
8282 }
Index: trunk/phase3/includes/specials/SpecialProtectedpages.php
@@ -84,7 +84,7 @@
8585 if ( $row->pr_expiry != 'infinity' && strlen($row->pr_expiry) ) {
8686 $expiry = Block::decodeExpiry( $row->pr_expiry );
8787
88 - $expiry_description = wfMsgForContent( 'protect-expiring', $wgLang->timeanddate( $expiry ) );
 88+ $expiry_description = wfMsgForContent( 'protect-expiring' , $wgLang->timeanddate( $expiry ) , $wgLang->date( $expiry ) , $wgLang->time( $expiry ) );
8989
9090 $description_items[] = $expiry_description;
9191 }
Index: trunk/phase3/languages/messages/MessagesQqq.php
@@ -1624,8 +1624,12 @@
16251625 'protect-default' => '{{Identical|Default}}',
16261626 'protect-fallback' => 'This message is used as an option in the protection form on wikis were extra protection levels have been configured.',
16271627 'protect-summary-cascade' => 'Used in edit summary when cascade protecting a page.',
1628 -'protect-expiring' => 'Used in page history.
 1628+'protect-expiring' => 'Used in page history, and in [[Special:Protectedtitles]], [[Special:Protectedpages]].
16291629
 1630+$1 = date and time,
 1631+$2 = date,
 1632+$3 = time.
 1633+
16301634 {{Identical|Expires $1 (UTC)}}',
16311635 'protect-cascade' => 'See [[meta:Protect]] for more information.',
16321636 'protect-othertime' => 'Used on the page protection form as label for the following input field (text)
Index: trunk/phase3/languages/messages/MessagesKsh.php
@@ -2106,7 +2106,7 @@
21072107 'protect-level-autoconfirmed' => 'nor Metmaacher dranlooße, die sich aanjemeldt han',
21082108 'protect-level-sysop' => 'Nor de Wiki-Köbesse dranlooße',
21092109 'protect-summary-cascade' => 'met Schotz-Kaskad',
2110 -'protect-expiring' => 'bes $1 (UTC)',
 2110+'protect-expiring' => 'bes öm $2 Uhr (UTC) aam $3',
21112111 'protect-expiry-indefinite' => 'för iewich',
21122112 'protect-cascade' => 'Maach en Schoz-Kaskaade — all de Schablone en dä Sigg krijje dersellve Schoz, wi die Sigg sellver en kritt.',
21132113 'protect-cantedit' => 'Do kanns dä Siggeschotz hee nit ändere, esu lang wie De di Sigg nit ändere darfs.',

Status & tagging log