Santhosh has uploaded a new change for review. https://gerrit.wikimedia.org/r/132919
Change subject: Remove Rot13 dummy translation ...................................................................... Remove Rot13 dummy translation Change-Id: Iab52084a5e76a7415fbc9d278436eb06dd149ea6 --- M modules/translation/ext.cx.translation.js 1 file changed, 4 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation refs/changes/19/132919/1 diff --git a/modules/translation/ext.cx.translation.js b/modules/translation/ext.cx.translation.js index a9adf14..eb98235 100644 --- a/modules/translation/ext.cx.translation.js +++ b/modules/translation/ext.cx.translation.js @@ -94,7 +94,10 @@ // For every segment, use MT as replacement $section.find( '.cx-segment' ).each( function () { - $( this ).html( mw.cx.data.mt[ $( this ).data( 'segmentid' ) ] ); + var translation = mw.cx.data.mt && mw.cx.data.mt[ $( this ).data( 'segmentid' ) ]; + if ( translation ) { + $( this ).html( translation ); + } } ); // Trigger input event so that the alignemnt is right. -- To view, visit https://gerrit.wikimedia.org/r/132919 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iab52084a5e76a7415fbc9d278436eb06dd149ea6 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