diff --git a/VoteClass.php b/VoteClass.php
index fb93914..1b44378 100644
--- a/VoteClass.php
+++ b/VoteClass.php
@@ -359,8 +359,9 @@ class VoteStars extends Vote {
*/
function displayScore() {
$count = $this->count();
- return wfMessage( 'voteny-community-score', '' . $this->getAverageVote() . '' )->text() .
- ' (' . wfMessage( 'voteny-ratings', $count )->parse() . ')';
+ return wfMessage( 'voteny-community-score', '' . $this->getAverageVote() . '' )
+ ->numParams( $count )->text() .
+ ' (' . wfMessage( 'voteny-ratings' )->numParams( $count )->parse() . ')';
}
}
diff --git a/i18n/en.json b/i18n/en.json
index 8e15214..a2d4ce0 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -8,7 +8,7 @@
"voteny-desc": "JavaScript-based voting with the <vote> tag",
"voteny-link": "Vote",
"voteny-unvote-link": "unvote",
- "voteny-community-score": "community score: $1",
+ "voteny-community-score": "community {{PLURAL:$2|score|scores}}: $1",
"voteny-ratings": "{{PLURAL:$1|one rating|$1 ratings}}",
"voteny-remove": "remove",
"voteny-gave-this": "you gave this a $1",
diff --git a/i18n/qqq.json b/i18n/qqq.json
index 5ad7d7d..ee0c2fb 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -12,7 +12,7 @@
"voteny-desc": "{{desc|name=Vote NY|url=https://www.mediawiki.org/wiki/Extension:VoteNY}}",
"voteny-link": "Link title\n{{Identical|Vote}}",
"voteny-unvote-link": "Displayed to the user after their vote has been successfully added; they can click on this link to remove their vote.\n{{Identical|Unvote}}",
- "voteny-community-score": "Community score is the average of votes a page has been given.\n\nParameters:\n* $1 - the actual score in numbers (i.e. 4.5 or 3)",
+ "voteny-community-score": "Community score is the average of votes a page has been given.\n\nParameters:\n* $1 - the actual score in numbers (i.e. 4.5 or 3)\n* $2 - score count for PLURAL support",
"voteny-ratings": "Parameters:\n* $1 - the number of ratings, if said number is greater than 1\n{{Identical|Rating}}",
"voteny-remove": "Link title, clicking on this link removes your vote. Refer to the [[mw:File:VoteNY.png|image]] for details.\n{{Identical|Remove}}",
"voteny-gave-this": "Followed by the action link text {{msg-mw|Voteny-remove}}.\n\nParameter:\n* $1 - a number, the vote the user gave to the page.\n\nRefer to the [[mw:File:VoteNY.png|image]] for details.",