Siebrand has uploaded a new change for review.

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


Change subject: Add GENDER support for 'ep-articletable-remarticle-text'
......................................................................

Add GENDER support for 'ep-articletable-remarticle-text'

Change-Id: I0afcd8f0801e95d87a8315c85c5583e38f4f9038
---
M EducationProgram.i18n.php
M resources/ep.articletable.js
2 files changed, 5 insertions(+), 3 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/EducationProgram 
refs/changes/67/98567/1

diff --git a/EducationProgram.i18n.php b/EducationProgram.i18n.php
index 2adc93c..779224b 100644
--- a/EducationProgram.i18n.php
+++ b/EducationProgram.i18n.php
@@ -362,7 +362,7 @@
        'ep-articletable-remarticle-button' => 'Remove article',
        'ep-articletable-remarticle-cancel' => 'Cancel',
        'ep-articletable-remarticle-text-self' => 'You are about to remove 
article $1 from the list of articles you are working on as part of course $2.',
-       'ep-articletable-remarticle-text' => 'You are about to remove article 
$1 from the list of articles $3 is working on as part of course $2.',
+       'ep-articletable-remarticle-text' => 'You are about to remove article 
$1 from the list of articles {{GENDER:$4|$3}} is working on as part of course 
$2.',
 
        // Article pager
        'ep-articles-noresults' => 'There are no articles to list.',
@@ -1303,7 +1303,8 @@
 Parameters:
 * $1 - article name
 * $2 - course name
-* $3 - the student working on the article',
+* $3 - the student working on the article
+* $4 - used for GENDER in JavaScript',
        'ep-articles-noresults' => 'Shown instead of a pager as notification 
that there are no results.',
        'epcapager-header-photo' => 'Table column header.
 {{Identical|Photo}}',
diff --git a/resources/ep.articletable.js b/resources/ep.articletable.js
index 0365bc4..018a983 100644
--- a/resources/ep.articletable.js
+++ b/resources/ep.articletable.js
@@ -146,7 +146,8 @@
                        'ep-articletable-remarticle-text' + selfSuffix,
                        $( '<strong>' ).text( $this.attr( 'data-article-name' ) 
),
                        $( '<strong>' ).text( courseName ),
-                       $( '<strong>' ).text( studentName )
+                       $( '<strong>' ).text( studentName ),
+                       mw.user
                );
 
                $form.append( $( '<input>' ).attr( {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0afcd8f0801e95d87a8315c85c5583e38f4f9038
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/EducationProgram
Gerrit-Branch: master
Gerrit-Owner: Siebrand <siebr...@wikimedia.org>

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

Reply via email to