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

Change subject: Remove the User namespace vs Main namespace publishing summary
......................................................................


Remove the User namespace vs Main namespace publishing summary

All publishing is at Main namespace now

Change-Id: Icbf858b92d0aaa267d5990f7f1f408cc564e4106
---
M i18n/en.json
M specials/SpecialContentTranslationStats.php
2 files changed, 0 insertions(+), 27 deletions(-)

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



diff --git a/i18n/en.json b/i18n/en.json
index 07f0c7e..f799d4e 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -70,7 +70,6 @@
        "cx-tools-categories-count-message": "{{PLURAL:$1|$1 category|$1 
categories|0=No categories}}",
        "cx-stats-title": "Content Translation statistics",
        "cx-stats-unknown": "unknown",
-       "cx-stats-summary": "$1/$2 {{PLURAL:$1|page|pages}} ($3%) in the main 
namespace in this wiki.",
        "cx-tools-reference-title": "Reference",
        "cx-tools-reference-remove": "Remove reference",
        "cx-tools-link-instruction-shortcut": "Shift + click any link to open",
diff --git a/specials/SpecialContentTranslationStats.php 
b/specials/SpecialContentTranslationStats.php
index 33f9274..1a91115 100644
--- a/specials/SpecialContentTranslationStats.php
+++ b/specials/SpecialContentTranslationStats.php
@@ -28,32 +28,6 @@
 
                // @TODO better to return title => stats iterator
                $stats = ContentTranslation\Stats::getStats();
-               $out->addHtml( $this->getPagesSummary( $stats ) );
                $out->addModules( 'ext.cx.stats' );
-       }
-
-       private function getPagesSummary( $pages ) {
-               $total = $main = 0;
-
-               foreach ( $pages as $row ) {
-                       $title = Title::newFromRow( $row );
-
-                       $total++;
-                       if ( $title->inNamespace( NS_MAIN ) ) {
-                               $main++;
-                       }
-               }
-
-               if ( $total > 0 ) {
-                       $percentage = round( $main / $total * 100 );
-               } else {
-                       $percentage = 0;
-               }
-
-               $summary = wfMessage( 'cx-stats-summary' )
-                       ->numParams( $main, $total, $percentage )
-                       ->parse();
-
-               return $summary;
        }
 }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Icbf858b92d0aaa267d5990f7f1f408cc564e4106
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh <[email protected]>
Gerrit-Reviewer: Amire80 <[email protected]>
Gerrit-Reviewer: KartikMistry <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to