KartikMistry has uploaded a new change for review.
https://gerrit.wikimedia.org/r/288342
Change subject: MT: Use custom labels instead of provider id
......................................................................
MT: Use custom labels instead of provider id
Change-Id: Id07c3c72625f6179093ebd15875be13dca29e620
(cherry picked from commit 88e50b9ed1868d9bb5c5398b5025acae0694e333)
---
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/42/288342/1
diff --git a/modules/tools/ext.cx.tools.mt.js b/modules/tools/ext.cx.tools.mt.js
index 106df5f..7c19f19 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/288342
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: wmf/1.27.0-wmf.23
Gerrit-Owner: KartikMistry <[email protected]>
Gerrit-Reviewer: Santhosh <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits