Use mw.msg() for parameter substitution

mw.msg() has already a parameter substitution of $1.
A separate .replace( '$1', ... ) is not necessary.

Change-Id: Ie77bddc4dfb60df36211ce821c1a6f7223cde706
This commit is contained in:
Fomafix
2016-11-06 15:44:07 +01:00
parent 6fc94d501f
commit 58777c4e37
2 changed files with 2 additions and 2 deletions

View File

@@ -301,7 +301,7 @@
helpHandler: function ( ime ) { helpHandler: function ( ime ) {
return $( '<a>' ) return $( '<a>' )
.attr( { .attr( {
href: mw.msg( 'uls-ime-helppage' ).replace( '$1', ime ), href: mw.msg( 'uls-ime-helppage', ime ),
target: '_blank', target: '_blank',
title: $.i18n( 'ext-uls-ime-help' ) title: $.i18n( 'ext-uls-ime-help' )
} ) } )

View File

@@ -189,7 +189,7 @@
$helplink = $( '<a>' ) $helplink = $( '<a>' )
.addClass( 'uls-ime-help' ) .addClass( 'uls-ime-help' )
.text( $.i18n( 'ext-uls-ime-help' ) ) .text( $.i18n( 'ext-uls-ime-help' ) )
.attr( 'href', mw.msg( 'uls-ime-helppage' ).replace( '$1', imeId ) ) .attr( 'href', mw.msg( 'uls-ime-helppage', imeId ) )
.attr( 'target', '_blank' ); .attr( 'target', '_blank' );
if ( !inputmethod ) { if ( !inputmethod ) {
// The input method definition(rules) not loaded. // The input method definition(rules) not loaded.