r111753 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111752‎ | r111753 | r111754 >
Date:14:57, 17 February 2012
Author:raymond
Status:ok
Tags:
Comment:
r111696: Consistency tweaks in preparation for adding extension to translatewiki.net
* Add description message
* Move comments to message documentation section qqq
Modified paths:
  • /trunk/extensions/AJAXPoll/AJAXPoll.i18n.php (modified) (history)
  • /trunk/extensions/AJAXPoll/AJAXPoll.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AJAXPoll/AJAXPoll.php
@@ -32,8 +32,8 @@
3333 'path' => __FILE__,
3434 'name' => 'AJAX Poll',
3535 'version' => '1.600 20120216',
36 - 'author' => array( 'Dariusz Siedlecki', 'Jack Phoenix', 'Thomas Gries', ),
37 - 'description' => 'Allows AJAX-based polls with <tt>&lt;poll&gt;</tt> tag',
 36+ 'author' => array( 'Dariusz Siedlecki', 'Jack Phoenix', 'Thomas Gries' ),
 37+ 'descriptionmsg' => 'ajaxpoll-desc',
3838 'url' => 'https://www.mediawiki.org/wiki/Extension:AJAX_Poll',
3939 );
4040
Index: trunk/extensions/AJAXPoll/AJAXPoll.i18n.php
@@ -12,16 +12,24 @@
1313 * @author Dariusz Siedlecki
1414 */
1515 $messages['en'] = array(
 16+ 'ajaxpoll-desc' => 'Allows AJAX-based polls with <tt>&lt;poll&gt;</tt> tag',
1617 'ajaxpoll-vote-update' => 'Your vote has been updated.',
1718 'ajaxpoll-vote-add' => 'Your vote has been added.',
1819 'ajaxpoll-vote-error' => 'There was a problem with processing your vote, please try again.',
19 - 'ajaxpoll-percent-votes' => '$1% of all votes', // $1 is the percentage number of the votes
20 - 'ajaxpoll-your-vote' => 'You already voted for "$1" on $2, you can change your vote by clicking an answer below.', // $1 is the answer name, $2 is the date when the answer was casted
 20+ 'ajaxpoll-percent-votes' => '$1% of all votes',
 21+ 'ajaxpoll-your-vote' => 'You already voted for "$1" on $2, you can change your vote by clicking an answer below.',
2122 'ajaxpoll-no-vote' => 'Please vote below.', // http://trac.wikia-code.com/changeset/867
22 - 'ajaxpoll-info' => 'There {{PLURAL:$1|was one vote|were $1 votes}} since the poll was created on $2.', // $1 is the number of votes, $2 is when the poll was started
 23+ 'ajaxpoll-info' => 'There {{PLURAL:$1|was one vote|were $1 votes}} since the poll was created on $2.',
2324 'ajaxpoll-submitting' => 'Please wait, submitting your vote.',
2425 );
2526
 27+/** Message documenation */
 28+$messages['qqq'] = array(
 29+ 'ajaxpoll-percent-votes' => '$1 is the percentage number of the votes',
 30+ 'ajaxpoll-your-vote' => '$1 is the answer name, $2 is the date when the answer was casted',
 31+ 'ajaxpoll-info' => '$1 is the number of votes, $2 is when the poll was started',
 32+);
 33+
2634 /** Afrikaans (Afrikaans)
2735 * @author Naudefj
2836 */

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r111696canged all class names and all message name prefixes from poll- to ajaxpoll- ...wikinaut22:55, 16 February 2012

Status & tagging log