* Split date and time to two variables to allow better translations in rcnote without...
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sun, 6 Jul 2008 18:13:38 +0000 (18:13 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sun, 6 Jul 2008 18:13:38 +0000 (18:13 +0000)
includes/specials/SpecialRecentchanges.php
includes/specials/SpecialWatchlist.php
languages/messages/MessagesEn.php

index 5114ee8..cb718bd 100644 (file)
@@ -599,7 +599,9 @@ class SpecialRecentChanges extends SpecialPage {
                        $note = wfMsgExt( 'rcnote', array( 'parseinline' ),
                                $wgLang->formatNum( $options['limit'] ),
                                $wgLang->formatNum( $options['days'] ),
-                               $wgLang->timeAndDate( wfTimestampNow(), true ) );
+                               $wgLang->timeAndDate( wfTimestampNow(), true ),
+                               $wgLang->date( wfTimestampNow(), true ),
+                               $wgLang->time( wfTimestampNow(), true ) );
 
                # Sort data for display and make sure it's unique after we've added user data.
                $wgRCLinkLimits[] = $options['limit'];
index 4af22c7..db7cd42 100644 (file)
@@ -206,11 +206,22 @@ function wfSpecialWatchlist( $par ) {
        $wgOut->addHTML( "<hr />\n" );
 
        if($days >= 1) {
-               $wgOut->addWikiText( wfMsgExt( 'rcnote', array( 'parseinline' ), $wgLang->formatNum( $numRows ),
-                       $wgLang->formatNum( $days ), $wgLang->timeAndDate( wfTimestampNow(), true ) ) . '<br />' , false );
+               $wgOut->addHTML(
+                       wfMsgExt( 'rcnote', 'parseinline',
+                               $wgLang->formatNum( $numRows ),
+                               $wgLang->formatNum( $days ),
+                               $wgLang->timeAndDate( wfTimestampNow(), true ),
+                               $wgLang->date( wfTimestampNow(), true ),
+                               $wgLang->time( wfTimestampNow(), true )
+                       ) . '<br />'
+               );
        } elseif($days > 0) {
-               $wgOut->addWikiText( wfMsgExt( 'wlnote', array( 'parseinline' ), $wgLang->formatNum( $numRows ),
-                       $wgLang->formatNum( round($days*24) ) ) . '<br />' , false );
+               $wgOut->addHtml(
+                       wfMsgExt( 'wlnote', 'parseinline',
+                               $wgLang->formatNum( $numRows ),
+                               $wgLang->formatNum( round($days*24) )
+                       ) . '<br />'
+               );
        }
 
        $wgOut->addHTML( "\n" . wlCutoffLinks( $days, 'Watchlist', $nondefaults ) . "<br />\n" );
index b4a8a34..1493a7a 100644 (file)
@@ -1560,7 +1560,7 @@ please see math/README to configure.',
 'recentchanges-url'                 => 'Special:Recentchanges', # do not translate or duplicate this message to other languages
 'recentchangestext'                 => 'Track the most recent changes to the wiki on this page.',
 'recentchanges-feed-description'    => 'Track the most recent changes to the wiki in this feed.',
-'rcnote'                            => "Below {{PLURAL:$1|is '''1''' change|are the last '''$1''' changes}} in the last {{PLURAL:$2|day|'''$2''' days}}, as of $3.",
+'rcnote'                            => "Below {{PLURAL:$1|is '''1''' change|are the last '''$1''' changes}} in the last {{PLURAL:$2|day|'''$2''' days}}, as of $5, $4.",
 'rcnotefrom'                        => "Below are the changes since '''$2''' (up to '''$1''' shown).",
 'rclistfrom'                        => 'Show new changes starting from $1',
 'rcshowhideminor'                   => '$1 minor edits',