mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-24 08:13:38 +00:00
Replace $.fn.msg calls by mw.message
$.fn.msg breaks on beta for an unknown reason Switching to mw.message which is used elsewhere in mmv Change-Id: Id569df019c03b2f11fb513fcd3ed9ffc6eac7e91
This commit is contained in:
parent
30563de71d
commit
1804f98ee7
|
@ -83,7 +83,7 @@
|
|||
usageCount = Math.max( localUsage.totalCount, globalUsage.totalCount );
|
||||
countMessage = 'multimediaviewer-fileusage-count-more';
|
||||
}
|
||||
this.$title.msg( countMessage, mw.language.convertNumber( usageCount ) );
|
||||
this.$title.text( mw.message( 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(
|
||||
$( '<li>' ).addClass( 'mw-mlb-fileusage-' + sectionType + '-section' )
|
||||
.msg( 'multimediaviewer-fileusage-' + sectionType + '-section' )
|
||||
.text( mw.message( '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(
|
||||
$( '<span>' ).addClass( 'mw-mlb-fileusage-view-all' ).append(
|
||||
$( '<a>' ).msg( 'multimediaviewer-fileusage-link' )
|
||||
$( '<a>' ).text( mw.message( 'multimediaviewer-fileusage-link' ) )
|
||||
.attr( 'href', url )
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue