jenkins-bot has submitted this change and it was merged. Change subject: Add GENDER support for lqt-thread-edited-author ......................................................................
Add GENDER support for lqt-thread-edited-author Thread: https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Lqt-thread-edited-author/en Change-Id: I73ff74f3b11b0aadd7213899d7841f30460d1691 --- M classes/View.php M i18n/en.json M i18n/qqq.json 3 files changed, 6 insertions(+), 4 deletions(-) Approvals: Legoktm: Looks good to me, approved Nemo bis: Looks good to me, but someone else must approve jenkins-bot: Verified diff --git a/classes/View.php b/classes/View.php index 925258f..c7eb2d7 100644 --- a/classes/View.php +++ b/classes/View.php @@ -1635,10 +1635,12 @@ if ( isset( $ebLookup[$editedFlag] ) ) { $editedBy = $ebLookup[$editedFlag]; + $user = $this->user; // Used messages: lqt-thread-edited-author, lqt-thread-edited-others $editedNotice = wfMessage( "lqt-thread-edited-$editedBy" ) ->params( $lastEdit )->numParams( $editorCount ) - ->params( $lastEditTime, $lastEditDate )->parse(); + ->params( $lastEditTime, $lastEditDate ) + ->params( $user->getName() )->parse(); $editedNotice = str_replace( '$3', $editors, $editedNotice ); $infoElements[] = Xml::tags( 'div', array( 'class' => "lqt-thread-toolbar-edited-$editedBy" ), diff --git a/i18n/en.json b/i18n/en.json index 44d61b3..3faf315 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -120,7 +120,7 @@ "lqt-history-action": "Activity", "lqt-history-comment": "Comment", "lqt-history-thread": "Thread", - "lqt-thread-edited-author": "Edited by author.<br />\nLast edit: $1", + "lqt-thread-edited-author": "Edited by {{GENDER:$5|author}}.<br />\nLast edit: $1", "lqt-thread-edited-others": "Edited by {{PLURAL:$2|another user|$2 users}}.<br />\nLast edit: $1", "lqt-header-actions": "Actions", "lqt_summarize_link": "Summarize", diff --git a/i18n/qqq.json b/i18n/qqq.json index c23a3d4..fef9d43 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -135,8 +135,8 @@ "lqt-history-action": "Column header for table of thread history, see [{{canonicalurl:Thread:Support/Payflowpro_gateway-select-dollar-amount|lqt_method=thread_history}} example]\n{{Identical|Activity}}", "lqt-history-comment": "Column header for table of thread history, see [{{canonicalurl:Thread:Support/Payflowpro_gateway-select-dollar-amount|lqt_method=thread_history}} example]\n{{Identical|Comment}}", "lqt-history-thread": "{{Identical|Thread}}", - "lqt-thread-edited-author": "This is a note which appears alongside an edited post - see [[Thread:Support/Payflowpro gateway-month/reply (4)|example]].\n\nParameters:\n* $1 - date/time of the last edit\n* $2 - Unused (Number of users who edited the thread but not useful in this context. Used by [[MediaWiki:Lqt-thread-edited-others]])\n* $3 - time of the last edit (optional, instead of using $1)\n* $4 - date of the last edit (optional, instead of using $1)", - "lqt-thread-edited-others": "This is a note which appears alongside an edited post - see [[Thread:Translating talk:Wikia/Typo in MediaWiki:Feed-title-leaderboard|example]].\n\nParameters:\n* $1 - date/time of the last edit\n* $2 - number of users who edited the thread message, including the original poster\n* $3 - time of the last edit (optional, instead of using $1)\n* $4 - date of the last edit (optional, instead of using $1)", + "lqt-thread-edited-author": "This is a note which appears alongside an edited post - see [[Thread:Support/Payflowpro gateway-month/reply (4)|example]].\n\nParameters:\n* $1 - date/time of the last edit\n* $2 - Unused (Number of users who edited the thread but not useful in this context. Used by [[MediaWiki:Lqt-thread-edited-others]])\n* $3 - time of the last edit (optional, instead of using $1)\n* $4 - date of the last edit (optional, instead of using $1)\n* $5 - author name, for GENDER support", + "lqt-thread-edited-others": "This is a note which appears alongside an edited post - see [[Thread:Translating talk:Wikia/Typo in MediaWiki:Feed-title-leaderboard|example]].\n\nParameters:\n* $1 - date/time of the last edit\n* $2 - number of users who edited the thread message, including the original poster\n* $3 - time of the last edit (optional, instead of using $1)\n* $4 - date of the last edit (optional, instead of using $1)\n* $5 - Unused (author name, for GENDER support)", "lqt-header-actions": "{{Identical|Action}}", "lqt_summarize_link": "Used as link title.\n{{Identical|Summarize}}", "lqt-summarize-intro": "Used as introduction text in summarize page.\n\nRefers to {{msg-mw|Savearticle}}.", -- To view, visit https://gerrit.wikimedia.org/r/265478 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I73ff74f3b11b0aadd7213899d7841f30460d1691 Gerrit-PatchSet: 3 Gerrit-Project: mediawiki/extensions/LiquidThreads Gerrit-Branch: master Gerrit-Owner: IoannisKydonis <[email protected]> Gerrit-Reviewer: Legoktm <[email protected]> Gerrit-Reviewer: Nemo bis <[email protected]> Gerrit-Reviewer: PranavK <[email protected]> Gerrit-Reviewer: Siebrand <[email protected]> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
