Raimond Spekking has uploaded a new change for review.

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


Change subject: Consistency tweaks in prepararion for adding extension to 
translatewiki.net
......................................................................

Consistency tweaks in prepararion for adding extension to translatewiki.net

* Remove Title Case
* Add extension description message
* Add newline at end of the i18n file

Change-Id: I7f8ca7134759056d938f7f479c4cb1510c020244
---
M Poll.i18n.php
M Poll.php
2 files changed, 40 insertions(+), 38 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PollNY 
refs/changes/29/75829/1

diff --git a/Poll.i18n.php b/Poll.i18n.php
index 1f2511a..e4f573a 100644
--- a/Poll.i18n.php
+++ b/Poll.i18n.php
@@ -13,81 +13,82 @@
  * @author David Pean <david.p...@gmail.com>
  */
 $messages['en'] = array(
-       'adminpoll' => 'Administrate Polls',
-       'createpoll' => 'Create a Poll',
-       'randompoll' => 'Random Poll',
-       'viewpoll' => 'View Polls',
+       'adminpoll' => 'Administrate polls',
+       'createpoll' => 'Create a poll',
+       'randompoll' => 'Random poll',
+       'viewpoll' => 'View polls',
+       'poll-desc' => 'Advanced polling system that uses special pages and 
allows embedding polls to wiki pages',
        'poll-admin-no-polls' => 'There are no polls. 
[[Special:CreatePoll|Create a poll!]]',
        'poll-admin-closed' => 'Closed',
        'poll-admin-flagged' => 'Flagged',
        'poll-admin-open' => 'Open',
        'poll-admin-panel' => 'Admin',
-       'poll-admin-status-nav' => 'Filter by Status',
-       'poll-admin-title-all' => 'Poll Admin - View All Polls',
-       'poll-admin-title-closed' => 'Poll Admin - View Closed Polls',
-       'poll-admin-title-flagged' => 'Poll Admin - View Flagged Polls',
-       'poll-admin-title-open' => 'Poll Admin - View Open Polls',
-       'poll-admin-viewall' => 'View All',
+       'poll-admin-status-nav' => 'Filter by status',
+       'poll-admin-title-all' => 'Poll admin - View all polls',
+       'poll-admin-title-closed' => 'Poll admin - View closed polls',
+       'poll-admin-title-flagged' => 'Poll admin - View flagged polls',
+       'poll-admin-title-open' => 'Poll admin - view open polls',
+       'poll-admin-viewall' => 'View all',
        'poll-ago' => '$1 ago',
        'poll-atleast' => 'You must have at least two answer choices',
        'poll-based-on-votes' => 'based on {{PLURAL:$1|one vote|$1 votes}}',
        'poll-cancel-button' => 'Cancel',
        'poll-category' => 'Polls',
-       'poll-category-user' => 'Polls by User $1',
-       'poll-choices-label' => 'Answer Choices',
+       'poll-category-user' => 'Polls by user $1',
+       'poll-choices-label' => 'Answer choices',
        'poll-close-message' => 'Are you sure you want to close this poll? All 
voting will be suspended.',
-       'poll-close-poll' => 'Close Poll',
+       'poll-close-poll' => 'Close poll',
        'poll-closed' => 'This poll has been closed for voting',
-       'poll-create' => 'Create Poll',
+       'poll-create' => 'Create poll',
        'poll-createpoll-error-nomore' => 'There are no more polls left!', // 
keep it simple, this is used in JS so it cannot contain links etc.
-       'poll-create-button' => 'Create and Play!',
+       'poll-create-button' => 'Create and play!',
        'poll-create-threshold-reason' => 'Sorry, you cannot create a poll 
until you have at least $1',
-       'poll-create-threshold-title' => 'Create Poll',
-       'poll-create-title' => 'Create a Poll',
+       'poll-create-threshold-title' => 'Create poll',
+       'poll-create-title' => 'Create a poll',
        'poll-createdago' => 'Created $1 ago',
        'poll-delete-message' => 'Are you sure you want to delete this poll?',
-       'poll-delete-poll' => 'Delete Poll',
+       'poll-delete-poll' => 'Delete poll',
        'poll-discuss' => 'Discuss',
-       'poll-edit-answers' => 'Edit Answers',
-       'poll-edit-button' => 'Save Page',
+       'poll-edit-answers' => 'Edit answers',
+       'poll-edit-button' => 'Save page',
        'poll-edit-desc' => 'new poll',
-       'poll-edit-image' => 'Edit Image',
-       'poll-edit-invalid-access' => 'Invalid Access',
-       'poll-edit-title' => 'Editing Poll - $1',
+       'poll-edit-image' => 'Edit image',
+       'poll-edit-invalid-access' => 'Invalid access',
+       'poll-edit-title' => 'Editing poll - $1',
        'poll-embed' => 'Embed on wiki page',
        'poll-enterquestion' => 'You must enter a question',
        'poll-finished' => '<b>There are no more polls left. Add your <a 
href="$1">own!</a></b> or <a href="$2">View Results of this Poll</a>',
        'poll-flagged' => 'This poll has been flagged',
        'poll-flagged-message' => 'Are you sure you want to flag this poll?',
-       'poll-flag-poll' => 'Flag Poll',
+       'poll-flag-poll' => 'Flag poll',
        'poll-hash' => '# is an invalid character for the poll question.',
-       'poll-image-label' => 'Add an Image',
+       'poll-image-label' => 'Add an image',
        'poll-instructions' => 'Ask a poll question, write some answer choices, 
press the "{{int:poll-create-button}}" button. It\'s that easy!',
        'poll-js-action-complete' => 'Action complete',
        'poll-js-loading' => 'Loading...',
        'poll-next' => 'next',
-       'poll-next-poll' => 'Next Poll',
+       'poll-next-poll' => 'Next poll',
        'poll-no-more-message' => 'You have voted for every poll!<br />Don\'t 
get sad, [[Special:CreatePoll|create your very own]]!',
-       'poll-no-more-title' => 'No More Polls!',
+       'poll-no-more-title' => 'No more polls!',
        'poll-open-message' => 'Are you sure you want to open this poll?',
-       'poll-open-poll' => 'Open Poll',
+       'poll-open-poll' => 'Open poll',
        'poll-pleasechoose' => 'Please choose another poll name',
        'poll-prev' => 'prev',
-       'poll-previous-poll' => 'Previous Poll',
-       'poll-question-label' => 'Poll Question',
+       'poll-previous-poll' => 'Previous poll',
+       'poll-question-label' => 'Poll question',
        'poll-skip' => 'Skip >',
-       'poll-submitted-by' => 'Submitted By',
-       'poll-take-button' => '&lt; Back to Polls',
+       'poll-submitted-by' => 'Submitted by',
+       'poll-take-button' => '< Back to polls',
        'poll-unavailable' => 'This poll is unavailable',
-       'poll-unflag-poll' => 'Unflag Poll',
+       'poll-unflag-poll' => 'Unflag poll',
        'poll-upload-image-button' => 'Upload',
-       'poll-upload-new-image' => 'Upload New Image',
-       'poll-view-title' => "View $1's Polls",
+       'poll-upload-new-image' => 'Upload new image',
+       'poll-view-title' => "View $1's polls",
        'poll-view-order' => 'Order',
        'poll-view-newest' => 'Newest',
        'poll-view-popular' => 'Popular',
        'poll-view-answered-times' => 'Answered {{PLURAL:$1|one time|$1 
times}}',
-       'poll-view-all-by' => 'View All Polls by $1',
+       'poll-view-all-by' => 'View all polls by $1',
        'poll-voted-for' => 'You have voted for $1 {{PLURAL:$1|poll|polls}} out 
of <b>$2</b> total polls and received <span class="profile-on">$3 
points</span>',
        'poll-votes' => '{{PLURAL:$1|one vote|$1 votes}}',
        'poll-woops' => 'Woops!',
@@ -467,4 +468,4 @@
        'poll-time-seconds' => '{{PLURAL:$1|een seconde|$1 seconden}}',
        'specialpages-group-poll' => 'Peilingen',
        'right-polladmin' => 'Administreer peilingen',
-);
\ No newline at end of file
+);
diff --git a/Poll.php b/Poll.php
index b202c69..554b967 100644
--- a/Poll.php
+++ b/Poll.php
@@ -20,10 +20,11 @@
 
 // Extension credits that will show up on Special:Version
 $wgExtensionCredits['other'][] = array(
+       'path' => __FILE__,
        'name' => 'PollNY',
        'version' => '3.0',
        'author' => array( 'Aaron Wright', 'David Pean', 'Jack Phoenix' ),
-       'description' => 'Advanced polling system that uses special pages and 
allows embedding polls to wiki pages',
+       'descriptionmsg' => 'poll-desc',
        'url' => 'https://www.mediawiki.org/wiki/Extension:PollNY'
 );
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7f8ca7134759056d938f7f479c4cb1510c020244
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PollNY
Gerrit-Branch: master
Gerrit-Owner: Raimond Spekking <raimond.spekk...@gmail.com>

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

Reply via email to