mirror of
https://bitbucket.org/vertlach/voteny.git
synced 2024-05-20 14:38:13 +03:00
change message key as per TWN's request (https://translatewiki.net/wiki/Thread:Support/New_stuff_to_check) + bump version number
This commit is contained in:
parent
635421726b
commit
87054b4f3c
|
@ -14,13 +14,13 @@ $messages = array();
|
|||
*/
|
||||
$messages['en'] = array(
|
||||
'voteny-desc' => 'JavaScript-based voting with the <tt><vote></tt> tag',
|
||||
'vote-link' => 'Vote',
|
||||
'vote-unvote-link' => 'unvote',
|
||||
'vote-community-score' => 'community score: $1',
|
||||
'vote-ratings' => '{{PLURAL:$1|one rating|$1 ratings}}',
|
||||
'vote-remove' => 'remove',
|
||||
'vote-gave-this' => 'you gave this a $1',
|
||||
'vote-votes' => '{{PLURAL:$1|one vote|$1 votes}}',
|
||||
'voteny-link' => 'Vote',
|
||||
'voteny-unvote-link' => 'unvote',
|
||||
'voteny-community-score' => 'community score: $1',
|
||||
'voteny-ratings' => '{{PLURAL:$1|one rating|$1 ratings}}',
|
||||
'voteny-remove' => 'remove',
|
||||
'voteny-gave-this' => 'you gave this a $1',
|
||||
'voteny-votes' => '{{PLURAL:$1|one vote|$1 votes}}',
|
||||
// Special:TopRatings
|
||||
'topratings' => 'Top rated pages',
|
||||
'topratings-no-pages' => 'No top rated pages.',
|
||||
|
@ -30,11 +30,11 @@ $messages['en'] = array(
|
|||
|
||||
/** Message documentation */
|
||||
$messages['qqq'] = array(
|
||||
'vote-link' => 'Link title',
|
||||
'vote-unvote-link' => 'Displayed to the user after their vote has been successfully added; they can click on this link to remove their vote.',
|
||||
'vote-community-score' => 'Community score is the average of votes a page has been given, $1 is the actual score in numbers (i.e. 4.5 or 3)',
|
||||
'vote-remove' => 'Link title, clicking on this link removes your vote. Refer to the [[mw:File:VoteNY.png|image]] for details.',
|
||||
'vote-gave-this' => '$1 is a number, the vote you gave to the page. Refer to the [[mw:File:VoteNY.png|image]] for details.',
|
||||
'voteny-link' => 'Link title',
|
||||
'voteny-unvote-link' => 'Displayed to the user after their vote has been successfully added; they can click on this link to remove their vote.',
|
||||
'voteny-community-score' => 'Community score is the average of votes a page has been given, $1 is the actual score in numbers (i.e. 4.5 or 3)',
|
||||
'voteny-remove' => 'Link title, clicking on this link removes your vote. Refer to the [[mw:File:VoteNY.png|image]] for details.',
|
||||
'voteny-gave-this' => '$1 is a number, the vote you gave to the page. Refer to the [[mw:File:VoteNY.png|image]] for details.',
|
||||
'topratings' => 'Title of Special:TopRatings, as shown on the special page itself and on Special:SpecialPages',
|
||||
'topratings-no-pages' => 'Displayed on Special:TopRatings if there are no top rated pages, i.e. if no pages have been rated on the wiki at all.',
|
||||
'right-vote' => 'Shown on Special:ListGroupRights',
|
||||
|
@ -44,13 +44,13 @@ $messages['qqq'] = array(
|
|||
* @author Jack Phoenix <jack@countervandalism.net>
|
||||
*/
|
||||
$messages['fi'] = array(
|
||||
'vote-link' => 'Äänestä',
|
||||
'vote-unvote-link' => 'poista ääni',
|
||||
'vote-community-score' => 'yhteisön antama pistemäärä: $1',
|
||||
'vote-ratings' => '{{PLURAL:$1|yksi arvostelu|$1 arvostelua}}',
|
||||
'vote-remove' => 'poista',
|
||||
'vote-gave-this' => 'annoit tälle {{PLURAL:$1|yhden tähden|$1 tähteä}}',
|
||||
'vote-votes' => '{{PLURAL:$1|yksi ääni|$1 ääntä}}',
|
||||
'voteny-link' => 'Äänestä',
|
||||
'voteny-unvote-link' => 'poista ääni',
|
||||
'voteny-community-score' => 'yhteisön antama pistemäärä: $1',
|
||||
'voteny-ratings' => '{{PLURAL:$1|yksi arvostelu|$1 arvostelua}}',
|
||||
'voteny-remove' => 'poista',
|
||||
'voteny-gave-this' => 'annoit tälle {{PLURAL:$1|yhden tähden|$1 tähteä}}',
|
||||
'voteny-votes' => '{{PLURAL:$1|yksi ääni|$1 ääntä}}',
|
||||
'topratings' => 'Huippusivut',
|
||||
'topratings-no-pages' => 'Ei huippusivuja.',
|
||||
'right-vote' => 'Äänestää sivuja',
|
||||
|
@ -60,10 +60,10 @@ $messages['fi'] = array(
|
|||
* @author Jack Phoenix <jack@countervandalism.net>
|
||||
*/
|
||||
$messages['fr'] = array(
|
||||
'vote-link' => 'Voter',
|
||||
'vote-unvote-link' => 'supprimer vote',
|
||||
'vote-remove' => 'supprimer',
|
||||
'vote-votes' => '{{PLURAL:$1|un vote|$1 votes}}',
|
||||
'voteny-link' => 'Voter',
|
||||
'voteny-unvote-link' => 'supprimer vote',
|
||||
'voteny-remove' => 'supprimer',
|
||||
'voteny-votes' => '{{PLURAL:$1|un vote|$1 votes}}',
|
||||
'right-vote' => 'Voter pages',
|
||||
);
|
||||
|
||||
|
@ -71,12 +71,12 @@ $messages['fr'] = array(
|
|||
* @author Mitchel Corstjens
|
||||
*/
|
||||
$messages['nl'] = array(
|
||||
'vote-link' => 'Stem',
|
||||
'vote-unvote-link' => 'stem terugtrekken',
|
||||
'vote-community-score' => 'gemeenschap score: $1',
|
||||
'vote-remove' => 'verwijder',
|
||||
'vote-gave-this' => 'je gaf dit een $1',
|
||||
'vote-votes' => '{{PLURAL:$1|een stem|$1 stemmen}}',
|
||||
'voteny-link' => 'Stem',
|
||||
'voteny-unvote-link' => 'stem terugtrekken',
|
||||
'voteny-community-score' => 'gemeenschap score: $1',
|
||||
'voteny-remove' => 'verwijder',
|
||||
'voteny-gave-this' => 'je gaf dit een $1',
|
||||
'voteny-votes' => '{{PLURAL:$1|een stem|$1 stemmen}}',
|
||||
'topratings' => 'Meest gewaardeerde pagina\'s',
|
||||
'topratings-no-pages' => 'Er zijn nog geen meest gewaardeerde pagina\'s',
|
||||
'right-vote' => 'Stem paginas',
|
||||
|
@ -86,12 +86,12 @@ $messages['nl'] = array(
|
|||
* @author Misiek95
|
||||
*/
|
||||
$messages['pl'] = array(
|
||||
'vote-link' => 'Głosuj',
|
||||
'vote-unvote-link' => 'Anuluj',
|
||||
'vote-community-score' => 'Wynik wśród społeczności: $1',
|
||||
'vote-ratings' => '{{PLURAL:$1|1 głos|$1 głosy|$1 głosów}}',
|
||||
'vote-remove' => 'usuń',
|
||||
'vote-gave-this' => 'Oceniłeś to na $1',
|
||||
'vote-votes' => '{{PLURAL:$1|1 głos|$1 głosy|$1 głosów}}',
|
||||
'voteny-link' => 'Głosuj',
|
||||
'voteny-unvote-link' => 'Anuluj',
|
||||
'voteny-community-score' => 'Wynik wśród społeczności: $1',
|
||||
'voteny-ratings' => '{{PLURAL:$1|1 głos|$1 głosy|$1 głosów}}',
|
||||
'voteny-remove' => 'usuń',
|
||||
'voteny-gave-this' => 'Oceniłeś to na $1',
|
||||
'voteny-votes' => '{{PLURAL:$1|1 głos|$1 głosy|$1 głosów}}',
|
||||
'right-vote' => 'Udział w głosowaniach',
|
||||
);
|
6
Vote.js
6
Vote.js
|
@ -4,7 +4,7 @@
|
|||
* @file
|
||||
* @ingroup Extensions
|
||||
* @author Jack Phoenix <jack@countervandalism.net>
|
||||
* @date 4 January 2012
|
||||
* @date 29 August 2012
|
||||
*/
|
||||
var VoteNY = {
|
||||
MaxRating: 5,
|
||||
|
@ -27,7 +27,7 @@ var VoteNY = {
|
|||
document.getElementById( 'PollVotes' ).innerHTML = request.responseText;
|
||||
document.getElementById( 'Answer' ).innerHTML =
|
||||
'<a href="javascript:void(0);" class="vote-unvote-link">' +
|
||||
mediaWiki.msg( 'vote-unvote-link' ) + '</a>';
|
||||
mediaWiki.msg( 'voteny-unvote-link' ) + '</a>';
|
||||
} );
|
||||
},
|
||||
|
||||
|
@ -44,7 +44,7 @@ var VoteNY = {
|
|||
document.getElementById( 'PollVotes' ).innerHTML = request.responseText;
|
||||
document.getElementById( 'Answer' ).innerHTML =
|
||||
'<a href="javascript:void(0);" class="vote-vote-link">' +
|
||||
mediaWiki.msg( 'vote-link' ) + '</a>';
|
||||
mediaWiki.msg( 'voteny-link' ) + '</a>';
|
||||
} );
|
||||
},
|
||||
|
||||
|
|
8
Vote.php
8
Vote.php
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* @file
|
||||
* @ingroup Extensions
|
||||
* @version 2.4
|
||||
* @version 2.5.1
|
||||
* @author Aaron Wright <aaron.wright@gmail.com>
|
||||
* @author David Pean <david.pean@gmail.com>
|
||||
* @author Jack Phoenix <jack@countervandalism.net>
|
||||
* @link http://www.mediawiki.org/wiki/Extension:VoteNY Documentation
|
||||
* @link https://www.mediawiki.org/wiki/Extension:VoteNY Documentation
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
|
||||
*/
|
||||
|
||||
|
@ -23,7 +23,7 @@ if ( !defined( 'MEDIAWIKI' ) ) {
|
|||
// Extension credits that show up on Special:Version
|
||||
$wgExtensionCredits['parserhook'][] = array(
|
||||
'name' => 'Vote',
|
||||
'version' => '2.5',
|
||||
'version' => '2.5.1',
|
||||
'author' => array( 'Aaron Wright', 'David Pean', 'Jack Phoenix' ),
|
||||
'descriptionmsg' => 'voteny-desc',
|
||||
'url' => 'https://www.mediawiki.org/wiki/Extension:VoteNY'
|
||||
|
@ -65,7 +65,7 @@ $wgHooks['LoadExtensionSchemaUpdates'][] = 'VoteHooks::addTable';
|
|||
$wgResourceModules['ext.voteNY'] = array(
|
||||
'styles' => 'Vote.css',
|
||||
'scripts' => 'Vote.js',
|
||||
'messages' => array( 'vote-link', 'vote-unvote-link' ),
|
||||
'messages' => array( 'voteny-link', 'voteny-unvote-link' ),
|
||||
'localBasePath' => dirname( __FILE__ ),
|
||||
'remoteExtPath' => 'VoteNY',
|
||||
'position' => 'top' // available since r85616
|
||||
|
|
|
@ -223,15 +223,15 @@ class Vote {
|
|||
$login = SpecialPage::getTitleFor( 'Userlogin' );
|
||||
$output .= '<a class="votebutton" href="' .
|
||||
$login->escapeFullURL() . '" rel="nofollow">' .
|
||||
wfMsg( 'vote-link' ) . '</a>';
|
||||
wfMsg( 'voteny-link' ) . '</a>';
|
||||
} else {
|
||||
if( !wfReadOnly() ) {
|
||||
if( $voted == false ) {
|
||||
$output .= '<a href="javascript:void(0);" class="vote-vote-link">' .
|
||||
wfMsg( 'vote-link' ) . '</a>';
|
||||
wfMsg( 'voteny-link' ) . '</a>';
|
||||
} else {
|
||||
$output .= '<a href="javascript:void(0);" class="vote-unvote-link">' .
|
||||
wfMsg( 'vote-unvote-link' ) . '</a>';
|
||||
wfMsg( 'voteny-unvote-link' ) . '</a>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -278,15 +278,15 @@ class VoteStars extends Vote {
|
|||
$count = $this->count();
|
||||
if( $count ) {
|
||||
$output .= ' <span class="rating-total">(' .
|
||||
wfMsgExt( 'vote-votes', 'parsemag', $count ) . ')</span>';
|
||||
wfMsgExt( 'voteny-votes', 'parsemag', $count ) . ')</span>';
|
||||
}
|
||||
$already_voted = $this->UserAlreadyVoted();
|
||||
if( $already_voted && $wgUser->isLoggedIn() ) {
|
||||
$output .= '<div class="rating-voted">' .
|
||||
wfMsgExt( 'vote-gave-this', 'parsemag', $already_voted ) .
|
||||
wfMsgExt( 'voteny-gave-this', 'parsemag', $already_voted ) .
|
||||
" </div>
|
||||
<a href=\"javascript:void(0);\" class=\"vote-remove-stars-link\" data-vote-id=\"{$id}\">("
|
||||
. wfMsg( 'vote-remove' ) .
|
||||
. wfMsg( 'voteny-remove' ) .
|
||||
')</a>';
|
||||
}
|
||||
$output .= '</div>
|
||||
|
@ -353,8 +353,8 @@ class VoteStars extends Vote {
|
|||
*/
|
||||
function displayScore() {
|
||||
$count = $this->count();
|
||||
return wfMsg( 'vote-community-score', '<b>' . $this->getAverageVote() . '</b>' ) .
|
||||
' (' . wfMsgExt( 'vote-ratings', 'parsemag', $count ) . ')';
|
||||
return wfMsg( 'voteny-community-score', '<b>' . $this->getAverageVote() . '</b>' ) .
|
||||
' (' . wfMsgExt( 'voteny-ratings', 'parsemag', $count ) . ')';
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue