Santhosh has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/288145

Change subject: MT: Use custom labels instead of provider id
......................................................................

MT: Use custom labels instead of provider id

Change-Id: Id07c3c72625f6179093ebd15875be13dca29e620
---
M modules/tools/ext.cx.tools.mt.js
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation 
refs/changes/45/288145/1

diff --git a/modules/tools/ext.cx.tools.mt.js b/modules/tools/ext.cx.tools.mt.js
index 106df5f..c790548 100644
--- a/modules/tools/ext.cx.tools.mt.js
+++ b/modules/tools/ext.cx.tools.mt.js
@@ -516,6 +516,10 @@
         * @return {string}
         */
        MTControlCard.prototype.getProviderTitle = function ( id ) {
+               var providerLabels = {
+                       'Yandex': 'Yandex.Translate'
+               };
+
                if ( id === disableMT ) {
                        return mw.msg( 'cx-tools-mt-dont-use' );
                } else if ( id === noMT ) {
@@ -524,7 +528,7 @@
                        // FIXME: message reuse
                        return mw.msg( 'cx-tools-mt-use-source' );
                } else {
-                       return mw.msg( 'cx-tools-mt-provider-title', id );
+                       return mw.msg( 'cx-tools-mt-provider-title', 
providerLabels[ id ] || id );
                }
        };
 

-- 
To view, visit https://gerrit.wikimedia.org/r/288145
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id07c3c72625f6179093ebd15875be13dca29e620
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to