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:
@@ -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' )
|
||||||
} )
|
} )
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user