* Really support plural in undelete
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 13 Oct 2007 11:27:51 +0000 (11:27 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 13 Oct 2007 11:27:51 +0000 (11:27 +0000)
includes/SpecialUndelete.php

index f7981a8..d6565cf 100644 (file)
@@ -341,14 +341,14 @@ class PageArchive {
                $log = new LogPage( 'delete' );
                
                if( $textRestored && $filesRestored ) {
-                       $reason = wfMsgForContent( 'undeletedrevisions-files',
+                       $reason = wfMsgExt( 'undeletedrevisions-files', array( 'content', 'parsemag' ),
                                $wgContLang->formatNum( $textRestored ),
                                $wgContLang->formatNum( $filesRestored ) );
                } elseif( $textRestored ) {
-                       $reason = wfMsgForContent( 'undeletedrevisions',
+                       $reason = wfMsgExt( 'undeletedrevisions', array( 'content', 'parsemag' ),
                                $wgContLang->formatNum( $textRestored ) );
                } elseif( $filesRestored ) {
-                       $reason = wfMsgForContent( 'undeletedfiles',
+                       $reason = wfMsgExt( 'undeletedfiles', array( 'content', 'parsemag' ),
                                $wgContLang->formatNum( $filesRestored ) );
                } else {
                        wfDebug( "Undelete: nothing undeleted...\n" );