Jack Phoenix has submitted this change and it was merged.

Change subject: PollNY: i18n tweaks requested by translatewiki.net
......................................................................


PollNY: i18n tweaks requested by translatewiki.net

Change-Id: Id97dfe0dd130dfa050b3b7ed414074f2c68d6ad3
---
M Poll.i18n.php
M PollPage.php
2 files changed, 7 insertions(+), 4 deletions(-)

Approvals:
  Jack Phoenix: Verified; Looks good to me, approved



diff --git a/Poll.i18n.php b/Poll.i18n.php
index 089e0bb..ae760f7 100644
--- a/Poll.i18n.php
+++ b/Poll.i18n.php
@@ -269,10 +269,10 @@
        'poll-upload-new-image' => "Link title.
 
 This link is shown on [[Special:CreatePoll]] after the user has uploaded an 
image with that special page's built-in upload form.",
-       'poll-view-title' => "this message can be the title of 
[[Special:ViewPoll]] when viewing the polls of a certain user (as opposed to 
viewing all available polls, in which case that special page's title is 
{{msg-mw|Viewpoll}}).
+       'poll-view-title' => "This message can be the title of 
[[Special:ViewPoll]] when viewing the polls of a certain user (as opposed to 
viewing all available polls, in which case that special page's title is 
{{msg-mw|Viewpoll}}).
 
 Parameters:
-* $1 - a username",
+* $1 - a username (<nowiki>{{GENDER}}</nowiki> can be used for this for 
languages that need it)",
        'poll-view-order' => 'Heading of the right-hand navigation menu on 
[[Special:ViewPoll]]; "order" refers to the sort order.
 
 Followed by the following link texts:
@@ -289,7 +289,8 @@
        'poll-view-all-by' => "Link text shown in the 
{{msg-mw|Poll-submitted-by}} box, below the user's avatar.
 
 Parameters:
-* $1 - a username (truncated if it's over 27 characters long)",
+* $1 - a username (truncated if it's over 27 characters long)
+* $2 - full, untruncated username for gendered languages that need to be able 
to use <nowiki>{{GENDER}}</nowiki>",
        'poll-voted-for' => "Message shown to registered users after they've 
voted in a poll. Parameters:
 * $1 - the amount of polls in which the current user has voted
 * $2 - the amount of all polls in the database
@@ -305,6 +306,8 @@
        'poll-woops' => 'Used as page title for the error message page.',
        'poll-would-have-earned' => "Message shown to anonymous users after 
they've voted in a poll, prompting them to join the wiki.
 
+<nowiki>{{PLURAL}}</nowiki> can be used as this message supports full wikitext 
parsing.
+
 Parameters:
 * $1 - the total amount of points the registered user can receive from voting 
in polls (0, 5, 10, 15, ...)
 
diff --git a/PollPage.php b/PollPage.php
index 749a5ed..86e30ac 100644
--- a/PollPage.php
+++ b/PollPage.php
@@ -108,7 +108,7 @@
                                        <div class=\"cleared\"></div>
 
                                        <a href=\"" . SpecialPage::getTitleFor( 
'ViewPoll' )->escapeFullURL( 'user=' . $poll_info['user_name'] ) . '">'
-                                               . wfMessage( 
'poll-view-all-by', $user_name_short )->parse() . '</a>
+                                               . wfMessage( 
'poll-view-all-by', $user_name_short, $poll_info['user_name'] )->parse() . '</a>
 
                                </div>';
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Id97dfe0dd130dfa050b3b7ed414074f2c68d6ad3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PollNY
Gerrit-Branch: master
Gerrit-Owner: Jack Phoenix <j...@countervandalism.net>
Gerrit-Reviewer: Jack Phoenix <j...@countervandalism.net>

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

Reply via email to