Tpt has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/213563

Change subject: Adds a textual alternative to index quality displays
......................................................................

Adds a textual alternative to index quality displays

Change-Id: I4a92ffc2bad867d1edcd2adfdd4c31ca7978119d
---
M ProofreadPage.body.php
M SpecialProofreadPages.php
M i18n/en.json
M i18n/qqq.json
4 files changed, 6 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ProofreadPage 
refs/changes/63/213563/1

diff --git a/ProofreadPage.body.php b/ProofreadPage.body.php
index a0bad22..c529d2e 100644
--- a/ProofreadPage.body.php
+++ b/ProofreadPage.body.php
@@ -568,7 +568,8 @@
                $q4 = $n4 * 100 / $n;
                $qe = $ne * 100 / $n;
                $void_cell = $ne ? '<td class="qualitye" style="width:' . $qe . 
'%;"></td>' : '';
-               $output = '<table class="pr_quality">
+               $textualAlternative = wfMessage( 
'proofreadpage-indexquality-alt', $q4, $q3, $q1 );
+               $output = '<table class="pr_quality" title="' . 
$textualAlternative . '">
 <tr>
 <td class="quality4" style="width:' . $q4 . '%;"></td>
 <td class="quality3" style="width:' . $q3 . '%;"></td>
diff --git a/SpecialProofreadPages.php b/SpecialProofreadPages.php
index c1d7433..0b0f3c7 100644
--- a/SpecialProofreadPages.php
+++ b/SpecialProofreadPages.php
@@ -199,7 +199,8 @@
                $q4 = $result->pr_q4;
                $num_void = $size-$q1-$q2-$q3-$q4-$q0;
                $void_cell = $num_void ? '<td class="qualitye" style="width:' . 
$num_void . 'px;"></td>' : '';
-               $qualityOutput = '<table class="pr_quality">
+               $textualAlternative = $this->msg( 
'proofreadpage-indexquality-alt', $q4, $q3, $q1 );
+               $qualityOutput = '<table class="pr_quality" title="' . 
$textualAlternative . '">
 <tr>
 <td class="quality4" style="width:' . $q4 . 'px;"></td>
 <td class="quality3" style="width:' . $q3 . 'px;"></td>
diff --git a/i18n/en.json b/i18n/en.json
index b2df79c..cbcd0ae 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -77,6 +77,7 @@
        "proofreadpage-indexoai-error-schemanotfound": "Schema not found",
        "proofreadpage-indexoai-error-schemanotfound-text": "The $1 schema have 
not been found.",
        "proofreadpage-disambiguationspage": "Template:disambig",
+       "proofreadpage-indexquality-alt": "$1 validated 
{{PLURAL:$1|page|pages}}, $2 only proofread {{PLURAL:$2|page|pages}} and $3 not 
proofread {{PLURAL:$3|page|pages}}",
        "content-model-proofread-page": "Page: page",
        "apihelp-query+proofread-description": "Returns information about the 
current proofread status of the given pages.",
        "apihelp-query+proofread-example-1": "Return proofread status for pages 
in namespace 250",
diff --git a/i18n/qqq.json b/i18n/qqq.json
index d816f24..5548545 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -82,6 +82,7 @@
        "proofreadpage-indexoai-error-schemanotfound": "Title of the error when 
a requested XML Schema does not exist.",
        "proofreadpage-indexoai-error-schemanotfound-text": "Text of the error 
when a requested XML schema does not exist. Parameters:\n* $1 is name of the 
schema.",
        "proofreadpage-disambiguationspage": "This message is the name of the 
template used for marking disambiguation pages. It is used to find all pages 
which link to disambiguation pages.\n\n{{doc-important|Don't translate the 
\"Template:\" part!}}\n{{Identical|Template:disambig}}",
+    "proofreadpage-indexquality-alt": "Textual alternative for display of 
proofreading level of the book. Parameters:\n* $1 is the number of validated 
pages.\n* $2 is the number of only proofread pages.\n* $3 is the number of not 
proofread pages.",
        "content-model-proofread-page": "The name for Page: pages item content 
model, used when describing what type of content a page contains.",
        "apihelp-query+proofread-description": 
"{{doc-apihelp-description|query+proofread}}",
        "apihelp-query+proofread-example-1": 
"{{doc-apihelp-example|query+proofread}}",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4a92ffc2bad867d1edcd2adfdd4c31ca7978119d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ProofreadPage
Gerrit-Branch: master
Gerrit-Owner: Tpt <thoma...@hotmail.fr>

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

Reply via email to