jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/327025 )

Change subject: Introduce GENDER support for 'authorprotect-notauthor'
......................................................................


Introduce GENDER support for 'authorprotect-notauthor'

Bug: T129211
Change-Id: Ie1b38496e97d52b87ac452b7962a1f9ddff9c9a7
---
M AuthorProtect.php
M i18n/en.json
M i18n/qqq.json
3 files changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Huji: Looks good to me, but someone else must approve
  Skizzerz: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/AuthorProtect.php b/AuthorProtect.php
index ff5138a..9458761 100644
--- a/AuthorProtect.php
+++ b/AuthorProtect.php
@@ -115,7 +115,7 @@
                }
                if ( !self::userIsAuthor( $article->getTitle() ) ) {
                        $wgOut->setPageTitle( wfMessage( 'errorpagetitle' ) );
-                       $wgOut->addWikiMsg( 'authorprotect-notauthor' );
+                       $wgOut->addWikiMsg( 'authorprotect-notauthor', 
$user->getName() );
                        return false;
                }
                $wgOut->setPageTitle( wfMessage( 'authorprotect' ) );
diff --git a/i18n/en.json b/i18n/en.json
index 8bd3842..7ede10c 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -6,7 +6,7 @@
        },
        "authorprotect": "Protect page from non-authors",
        "authorprotect-desc": "Allows the author of a page to protect it from 
other users",
-       "authorprotect-notauthor": "You are not the author of this page.",
+       "authorprotect-notauthor": "{{GENDER:$1|You}} are not the 
{{GENDER:$1|author}} of this page.",
        "authorprotect-confirm": "Change protection levels",
        "authorprotect-edit": "Restrict editing to authors",
        "authorprotect-move": "Restrict moving to authors",
diff --git a/i18n/qqq.json b/i18n/qqq.json
index be244a6..7c78e22 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -10,7 +10,7 @@
        },
        "authorprotect": "Used as page title.",
        "authorprotect-desc": "Extension description displayed on 
[[Special:Version]].",
-       "authorprotect-notauthor": "Used as error message.\n\nThe page title 
for this message is {{msg-mw|errorpagetitle}}.",
+       "authorprotect-notauthor": "Used as error message.\n\nThe page title 
for this message is {{msg-mw|errorpagetitle}}.\n\nParameters:\n* $1 - user name 
for GENDER support",
        "authorprotect-confirm": "Used as Submit button text in the Author 
Protect form.",
        "authorprotect-edit": "Used as checkbox label in the Author Protect 
form.\n\nSee also:\n* {{msg-mw|Authorprotect-move}}",
        "authorprotect-move": "Used as checkbox label in the Author Protect 
form.\n\nSee also:\n* {{msg-mw|Authorprotect-edit}}",

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie1b38496e97d52b87ac452b7962a1f9ddff9c9a7
Gerrit-PatchSet: 5
Gerrit-Project: mediawiki/extensions/AuthorProtect
Gerrit-Branch: master
Gerrit-Owner: MarcoAurelio <strig...@gmail.com>
Gerrit-Reviewer: Huji <huji.h...@gmail.com>
Gerrit-Reviewer: MarcoAurelio <strig...@gmail.com>
Gerrit-Reviewer: Skizzerz <skizz...@skizzerz.net>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to