In Special:Protectedpages and Special:Protectedtitles, show protection expiry times...
authorRotem Liss <rotem@users.mediawiki.org>
Tue, 2 Aug 2011 11:55:05 +0000 (11:55 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Tue, 2 Aug 2011 11:55:05 +0000 (11:55 +0000)
includes/specials/SpecialProtectedpages.php
includes/specials/SpecialProtectedtitles.php
languages/messages/MessagesEn.php
languages/messages/MessagesHe.php
maintenance/language/messages.inc

index 19b9760..2145108 100644 (file)
@@ -106,10 +106,10 @@ class SpecialProtectedpages extends SpecialPage {
                if( $expiry != $infinity ) {
 
                        $expiry_description = wfMsg(
-                               'protect-expiring',
-                               $wgLang->timeanddate( $expiry ),
-                               $wgLang->date( $expiry ),
-                               $wgLang->time( $expiry )
+                               'protect-expiring-local',
+                               $wgLang->timeanddate( $expiry, true ),
+                               $wgLang->date( $expiry, true ),
+                               $wgLang->time( $expiry, true )
                        );
 
                        $description_items[] = htmlspecialchars($expiry_description);
index 5fb91af..40e58bc 100644 (file)
@@ -97,7 +97,12 @@ class SpecialProtectedtitles extends SpecialPage {
                $expiry = strlen( $row->pt_expiry ) ? $wgLang->formatExpiry( $row->pt_expiry, TS_MW ) : $infinity;
                if( $expiry != $infinity ) {
 
-                       $expiry_description = wfMsg( 'protect-expiring', $wgLang->timeanddate( $expiry ) , $wgLang->date( $expiry ) , $wgLang->time( $expiry ) );
+                       $expiry_description = wfMsg(
+                               'protect-expiring-local',
+                               $wgLang->timeanddate( $expiry, true ),
+                               $wgLang->date( $expiry, true ),
+                               $wgLang->time( $expiry, true )
+                       );
 
                        $description_items[] = htmlspecialchars($expiry_description);
                }
index e285e16..a0cc914 100644 (file)
@@ -2875,6 +2875,7 @@ You can change this page's protection level, but it will not affect the cascadin
 'protect-level-sysop'         => 'Administrators only',
 'protect-summary-cascade'     => 'cascading',
 'protect-expiring'            => 'expires $1 (UTC)',
+'protect-expiring-local'      => 'expires $1',
 'protect-expiry-indefinite'   => 'indefinite',
 'protect-cascade'             => 'Protect pages included in this page (cascading protection)',
 'protect-cantedit'            => 'You cannot change the protection levels of this page, because you do not have permission to edit it.',
index 0c099f0..e4041aa 100644 (file)
@@ -2421,7 +2421,8 @@ $UNWATCHURL
 'protect-level-sysop'         => 'מפעילי מערכת בלבד',
 'protect-summary-cascade'     => 'מדורג',
 'protect-expiring'            => 'פוקעת $1 (UTC)',
-'protect-expiry-indefinite'   => 'בלתי מוגבל בזמן',
+'protect-expiring-local'      => 'פוקעת $1',
+'protect-expiry-indefinite'   => 'בלתי מוגבלת בזמן',
 'protect-cascade'             => 'הגנה על כל הדפים המוכללים בדף זה (הגנה מדורגת)',
 'protect-cantedit'            => 'אינכם יכולים לשנות את רמת ההגנה על דף זה, כיוון שאין לכם הרשאה לערוך אותו.',
 'protect-othertime'           => 'זמן אחר:',
index 82b168c..8e26187 100644 (file)
@@ -1923,6 +1923,7 @@ $wgMessageStructure = array(
                'protect-level-sysop',
                'protect-summary-cascade',
                'protect-expiring',
+               'protect-expiring-local',
                'protect-expiry-indefinite',
                'protect-cascade',
                'protect-cantedit',