Santhosh has uploaded a new change for review. https://gerrit.wikimedia.org/r/147089
Change subject: Consider mt also for navigation warning along with manual translation ...................................................................... Consider mt also for navigation warning along with manual translation Bug: 68160 Change-Id: Iee178d97c5bf76ed13c0df5f75c69cb169c06a9b --- M modules/translation/ext.cx.translation.progress.js 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation refs/changes/89/147089/1 diff --git a/modules/translation/ext.cx.translation.progress.js b/modules/translation/ext.cx.translation.progress.js index 93ba447..8ab5854 100644 --- a/modules/translation/ext.cx.translation.progress.js +++ b/modules/translation/ext.cx.translation.progress.js @@ -120,7 +120,8 @@ mw.hook( 'mw.cx.translation.change' ).add( onSectionUpdate ); window.onbeforeunload = function () { // Check if progress is greater than 1% - if ( parseInt( getTranslationProgress(), 10 ) > 0 ) { + if ( parseInt( getTranslationProgress(), 10 ) > 0 || + parseInt( getMachineTranslationPercentage(), 10 ) > 0 ) { return mw.msg( 'cx-warning-unsaved-translation' ); } }; -- To view, visit https://gerrit.wikimedia.org/r/147089 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iee178d97c5bf76ed13c0df5f75c69cb169c06a9b Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ContentTranslation Gerrit-Branch: master Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits