https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112912

Revision: 112912
Author:   ialex
Date:     2012-03-02 19:39:07 +0000 (Fri, 02 Mar 2012)
Log Message:
-----------
Use local context to get messages

Modified Paths:
--------------
    trunk/phase3/includes/specials/SpecialListfiles.php

Modified: trunk/phase3/includes/specials/SpecialListfiles.php
===================================================================
--- trunk/phase3/includes/specials/SpecialListfiles.php 2012-03-02 19:35:06 UTC 
(rev 112911)
+++ trunk/phase3/includes/specials/SpecialListfiles.php 2012-03-02 19:39:07 UTC 
(rev 112912)
@@ -107,15 +107,15 @@
                if ( !$this->mFieldNames ) {
                        global $wgMiserMode;
                        $this->mFieldNames = array(
-                               'img_timestamp' => wfMsg( 'listfiles_date' ),
-                               'img_name' => wfMsg( 'listfiles_name' ),
-                               'thumb' => wfMsg( 'listfiles_thumb' ),
-                               'img_size' => wfMsg( 'listfiles_size' ),
-                               'img_user_text' => wfMsg( 'listfiles_user' ),
-                               'img_description' => wfMsg( 
'listfiles_description' ),
+                               'img_timestamp' => $this->msg( 'listfiles_date' 
)->text(),
+                               'img_name' => $this->msg( 'listfiles_name' 
)->text(),
+                               'thumb' => $this->msg( 'listfiles_thumb' 
)->text(),
+                               'img_size' => $this->msg( 'listfiles_size' 
)->text(),
+                               'img_user_text' => $this->msg( 'listfiles_user' 
)->text(),
+                               'img_description' => $this->msg( 
'listfiles_description' )->text(),
                        );
                        if( !$wgMiserMode ) {
-                               $this->mFieldNames['count'] = wfMsg( 
'listfiles_count' );
+                               $this->mFieldNames['count'] = $this->msg( 
'listfiles_count' )->text();
                        }
                }
                return $this->mFieldNames;
@@ -201,7 +201,7 @@
                                return htmlspecialchars( 
$this->getLanguage()->timeanddate( $value, true ) );
                        case 'img_name':
                                static $imgfile = null;
-                               if ( $imgfile === null ) $imgfile = wfMsg( 
'imgfile' );
+                               if ( $imgfile === null ) $imgfile = $this->msg( 
'imgfile' )->text();
 
                                // Weird files can maybe exist? Bug 22227
                                $filePage = Title::makeTitleSafe( NS_FILE, 
$value );
@@ -253,7 +253,7 @@
                ) );
                return Html::openElement( 'form',
                                array( 'method' => 'get', 'action' => 
$wgScript, 'id' => 'mw-listfiles-form' ) ) .
-                       Xml::fieldset( wfMsg( 'listfiles' ) ) .
+                       Xml::fieldset( $this->msg( 'listfiles' )->text() ) .
                        Xml::buildForm( $inputForm, 'table_pager_limit_submit' 
) .
                        $this->getHiddenFields( array( 'limit', 'ilsearch', 
'user' ) ) .
                        Html::closeElement( 'fieldset' ) .


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to