http://www.mediawiki.org/wiki/Special:Code/MediaWiki/93730
Revision: 93730 Author: rotem Date: 2011-08-02 11:55:05 +0000 (Tue, 02 Aug 2011) Log Message: ----------- In Special:Protectedpages and Special:Protectedtitles, show protection expiry times as local times instead of UTC. Modified Paths: -------------- trunk/phase3/includes/specials/SpecialProtectedpages.php trunk/phase3/includes/specials/SpecialProtectedtitles.php trunk/phase3/languages/messages/MessagesEn.php trunk/phase3/languages/messages/MessagesHe.php trunk/phase3/maintenance/language/messages.inc Modified: trunk/phase3/includes/specials/SpecialProtectedpages.php =================================================================== --- trunk/phase3/includes/specials/SpecialProtectedpages.php 2011-08-02 11:49:59 UTC (rev 93729) +++ trunk/phase3/includes/specials/SpecialProtectedpages.php 2011-08-02 11:55:05 UTC (rev 93730) @@ -106,10 +106,10 @@ 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); Modified: trunk/phase3/includes/specials/SpecialProtectedtitles.php =================================================================== --- trunk/phase3/includes/specials/SpecialProtectedtitles.php 2011-08-02 11:49:59 UTC (rev 93729) +++ trunk/phase3/includes/specials/SpecialProtectedtitles.php 2011-08-02 11:55:05 UTC (rev 93730) @@ -97,7 +97,12 @@ $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); } Modified: trunk/phase3/languages/messages/MessagesEn.php =================================================================== --- trunk/phase3/languages/messages/MessagesEn.php 2011-08-02 11:49:59 UTC (rev 93729) +++ trunk/phase3/languages/messages/MessagesEn.php 2011-08-02 11:55:05 UTC (rev 93730) @@ -2875,6 +2875,7 @@ '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.', Modified: trunk/phase3/languages/messages/MessagesHe.php =================================================================== --- trunk/phase3/languages/messages/MessagesHe.php 2011-08-02 11:49:59 UTC (rev 93729) +++ trunk/phase3/languages/messages/MessagesHe.php 2011-08-02 11:55:05 UTC (rev 93730) @@ -2421,7 +2421,8 @@ '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' => 'זמן אחר:', Modified: trunk/phase3/maintenance/language/messages.inc =================================================================== --- trunk/phase3/maintenance/language/messages.inc 2011-08-02 11:49:59 UTC (rev 93729) +++ trunk/phase3/maintenance/language/messages.inc 2011-08-02 11:55:05 UTC (rev 93730) @@ -1923,6 +1923,7 @@ 'protect-level-sysop', 'protect-summary-cascade', 'protect-expiring', + 'protect-expiring-local', 'protect-expiry-indefinite', 'protect-cascade', 'protect-cantedit', _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs