jenkins-bot has submitted this change and it was merged.

Change subject: Progress calculation: If section has source content copied, 
count it as MT
......................................................................


Progress calculation: If section has source content copied, count it as MT

Change-Id: Icf1fef2c71e16d19f37cf91d8195d410e0e74a83
---
M modules/translation/ext.cx.translation.progress.js
1 file changed, 5 insertions(+), 1 deletion(-)

Approvals:
  Nikerabbit: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/translation/ext.cx.translation.progress.js 
b/modules/translation/ext.cx.translation.progress.js
index 6e6055b..ad7c222 100644
--- a/modules/translation/ext.cx.translation.progress.js
+++ b/modules/translation/ext.cx.translation.progress.js
@@ -78,7 +78,11 @@
                        weight = $section.data( 'cx-weight' );
                        weights.any += weight;
 
-                       if ( $section.data( 'cx-mt' ) === true ) {
+                       if ( $section.data( 'cx-mt' ) === true ||
+                               $section.data( 'cx-source' ) === true
+                       ) {
+                               // If the section has unmodified MT or source 
content copied,
+                               // count it as MT.
                                weights.mt += weight;
                                weights.mtSectionsCount += 1;
                        } else {

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Icf1fef2c71e16d19f37cf91d8195d410e0e74a83
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com>
Gerrit-Reviewer: Nikerabbit <niklas.laxst...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to