MarcoAurelio has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/327025 )
Change subject: Introduce GENDER support for some messages ...................................................................... Introduce GENDER support for some messages Bug: T129211 Change-Id: Ie1b38496e97d52b87ac452b7962a1f9ddff9c9a7 --- M AuthorProtect.php M i18n/en.json M i18n/qqq.json 3 files changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/AuthorProtect refs/changes/25/327025/2 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..9e88081 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": "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..50b522d 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", "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: newchange Gerrit-Change-Id: Ie1b38496e97d52b87ac452b7962a1f9ddff9c9a7 Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/AuthorProtect Gerrit-Branch: master Gerrit-Owner: MarcoAurelio <strig...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits