IoannisKydonis has uploaded a new change for review.

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

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/qqq.json
2 files changed, 5 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LiquidThreads 
refs/changes/78/265478/1

diff --git a/classes/View.php b/classes/View.php
index 925258f..bddbd39 100644
--- a/classes/View.php
+++ b/classes/View.php
@@ -1635,10 +1635,12 @@
 
                if ( isset( $ebLookup[$editedFlag] ) ) {
                        $editedBy = $ebLookup[$editedFlag];
+                       $user = $this->getUser();
                        // 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/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: newchange
Gerrit-Change-Id: I73ff74f3b11b0aadd7213899d7841f30460d1691
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/LiquidThreads
Gerrit-Branch: master
Gerrit-Owner: IoannisKydonis <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to