1
0
Fork 0
mirror of https://bitbucket.org/vertlach/iusethis.git synced 2024-06-16 15:10:51 +03:00

Add PLURAL support for voteny-community-score

Thread:
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Voteny-community-score/en

Change-Id: Ia6d5e902792649d193f037c75f698ee62746614e
This commit is contained in:
IoannisKydonis 2016-01-16 17:50:18 +02:00
parent 071fc82354
commit 86aa7537c7
3 changed files with 5 additions and 4 deletions

View file

@ -359,8 +359,9 @@ class VoteStars extends Vote {
*/
function displayScore() {
$count = $this->count();
return wfMessage( 'voteny-community-score', '<b>' . $this->getAverageVote() . '</b>' )->text() .
' (' . wfMessage( 'voteny-ratings', $count )->parse() . ')';
return wfMessage( 'voteny-community-score', '<b>' . $this->getAverageVote() . '</b>' )
->numParams( $count )->text() .
' (' . wfMessage( 'voteny-ratings' )->numParams( $count )->parse() . ')';
}
}

View file

@ -8,7 +8,7 @@
"voteny-desc": "JavaScript-based voting with the <tt>&lt;vote&gt;</tt> 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",

View file

@ -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.",