From 8bd1786eadbd5a9546d2cdf4d97aa180ba8e5b17 Mon Sep 17 00:00:00 2001 From: Gilles Dubuc Date: Thu, 30 Jan 2014 14:08:33 +0100 Subject: [PATCH] Revert "Replace $.fn.msg calls by mw.message" This reverts commit 1804f98ee767bdf043b1b6be1cd52fa2b1b062e8. Turned out to be a caching issue, $.fn.msg() works fine Change-Id: I087bf5cc0bbe89fdc80c64c015218a5ff9a24ee7 Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/157 --- resources/mmv/mmv.ui.fileUsage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/mmv/mmv.ui.fileUsage.js b/resources/mmv/mmv.ui.fileUsage.js index 60c0b63be..7bc48cbbc 100644 --- a/resources/mmv/mmv.ui.fileUsage.js +++ b/resources/mmv/mmv.ui.fileUsage.js @@ -83,7 +83,7 @@ usageCount = Math.max( localUsage.totalCount, globalUsage.totalCount ); countMessage = 'multimediaviewer-fileusage-count-more'; } - this.$title.text( mw.message( countMessage, mw.language.convertNumber( usageCount ) ) ); + this.$title.msg( countMessage, mw.language.convertNumber( usageCount ) ); this.$usageList.empty(); this.addSection( localUsage, mw.mmv.model.FileUsage.Scope.LOCAL, this.MAX_LOCAL, @@ -108,7 +108,7 @@ if ( fileUsage.totalCount ) { this.$usageList.append( $( '
  • ' ).addClass( 'mw-mlb-fileusage-' + sectionType + '-section' ) - .text( mw.message( 'multimediaviewer-fileusage-' + sectionType + '-section' ) ) + .msg( 'multimediaviewer-fileusage-' + sectionType + '-section' ) ); this.addPageLinks( fileUsage.pages.slice( 0, limit ) ); if ( fileUsage.pages.length > limit ) { @@ -148,7 +148,7 @@ FileUsage.prototype.addViewAllLink = function( url ) { this.$usageList.find( 'li:first' ).append( $( '' ).addClass( 'mw-mlb-fileusage-view-all' ).append( - $( '' ).text( mw.message( 'multimediaviewer-fileusage-link' ) ) + $( '' ).msg( 'multimediaviewer-fileusage-link' ) .attr( 'href', url ) ) );