Localize the number in the "more languages" message

Change-Id: I11c88423b048f31c8a6fc9be1af63e32835717b4
This commit is contained in:
Amir E. Aharoni
2014-04-06 17:34:00 +03:00
committed by Santhosh Thottingal
parent 9896aebce8
commit 7c5b750700
2 changed files with 5 additions and 1 deletions

View File

@@ -155,6 +155,7 @@ $wgResourceModules['ext.uls.compactlinks'] = array(
'ext.uls.mediawiki',
'ext.uls.init',
'jquery.uls.compact',
'mediawiki.language',
'mediawiki.ui.button',
),
) + $resourcePaths;

View File

@@ -271,7 +271,10 @@
$triggerLabel = $( '<label>' )
.attr( 'id', 'more-lang-label' )
.text( $.i18n( 'ext-uls-compact-link-count', this.listSize - this.compactSize ) );
.text( $.i18n(
'ext-uls-compact-link-count',
mw.language.convertNumber( this.listSize - this.compactSize )
) );
this.$interlanguageList.append( $trigger, $triggerLabel );
this.$trigger = $trigger;