jenkins-bot has submitted this change and it was merged. Change subject: Native digits on 'project-statstext' ......................................................................
Native digits on 'project-statstext' Change-Id: I831921178c65cf561e2b61cff5b014a575494f00 --- M Resources.php M resources/js/ext.translate.mainpage.js 2 files changed, 5 insertions(+), 2 deletions(-) Approvals: Nikerabbit: Looks good to me, approved jenkins-bot: Verified diff --git a/Resources.php b/Resources.php index a64e650..bab8e8a 100644 --- a/Resources.php +++ b/Resources.php @@ -20,6 +20,7 @@ 'ext.translate.statsbar', 'mediawiki.util', 'mediawiki.Uri', + 'mediawiki.language', ), 'messages' => array( 'twnmp-show-more-projects', diff --git a/resources/js/ext.translate.mainpage.js b/resources/js/ext.translate.mainpage.js index 4d8e13c..e308f4f 100644 --- a/resources/js/ext.translate.mainpage.js +++ b/resources/js/ext.translate.mainpage.js @@ -95,9 +95,11 @@ $tile.find( '.project-statstext' ) .append( $( '<span>' ).addClass( 'translate' ) - .text( mw.msg( 'percent', Math.round( translated ) ) ), + .text( mw.msg( 'percent', + mw.language.convertNumber( Math.round( translated ) ) ) ), $( '<span>' ).addClass( 'proofread' ) - .text( mw.msg( 'percent', Math.round( proofread ) ) ) + .text( mw.msg( 'percent', + mw.language.convertNumber( Math.round( proofread ) ) ) ) ); } ); } ); -- To view, visit https://gerrit.wikimedia.org/r/88047 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I831921178c65cf561e2b61cff5b014a575494f00 Gerrit-PatchSet: 4 Gerrit-Project: mediawiki/extensions/TwnMainPage Gerrit-Branch: master Gerrit-Owner: Ebrahim <ebra...@byagowi.com> Gerrit-Reviewer: Amire80 <amir.ahar...@mail.huji.ac.il> Gerrit-Reviewer: Ebrahim <ebra...@byagowi.com> Gerrit-Reviewer: Nikerabbit <niklas.laxst...@gmail.com> Gerrit-Reviewer: Siebrand <siebr...@wikimedia.org> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits