jenkins-bot has submitted this change and it was merged.

Change subject: i18n: Add GENDER support to epoa-visible and epca-visible
......................................................................


i18n: Add GENDER support to epoa-visible and epca-visible

Spotted by Siebrand
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Epca-visible/en
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Epoa-visible/en

Change-Id: I220762642d566fadac7ac6bd2c6702decb54afa4
---
M EducationProgram.i18n.php
M includes/specials/SpecialAmbassadorProfile.php
2 files changed, 20 insertions(+), 5 deletions(-)

Approvals:
  Siebrand: Looks good to me, approved
  Nemo bis: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/EducationProgram.i18n.php b/EducationProgram.i18n.php
index f8dea30..7b3c1fd 100644
--- a/EducationProgram.i18n.php
+++ b/EducationProgram.i18n.php
@@ -773,7 +773,7 @@
        'epoa-profile-photo-help' => 'A picture of you that will be shown next 
to your bio. Enter the name of an image on Wikimedia Commons and a preview will 
appear. You can type the first few letters of the image name and then select 
your image from the suggestion list. If you do not have a picture of you on 
commons yet, [$1 go upload one]!',
        'epoa-profile-saved' => 'Your profile has been saved',
        'epoa-profile-invalid-bio' => 'Your bio needs to contain at least $1 
{{PLURAL:$1|character|characters}}.',
-       'epoa-visible' => 'Publicly list you as Online volunteer',
+       'epoa-visible' => 'Publicly list {{GENDER:$1|you}} as Online volunteer',
 
        // Special:CampusAmbassadorProfile
        'campusambassadorprofile' => 'Campus volunteer profile',
@@ -784,7 +784,7 @@
        'epca-profile-photo-help' => 'A picture of you that will be shown next 
to your bio. Enter the name of an image on Wikimedia Commons and a preview will 
appear. You can type the first few letters of the image name and then select 
your image from the suggestion list. If you do not have a picture of you on 
commons yet, [$1 go upload one]!',
        'epca-profile-saved' => 'Your profile has been saved',
        'epca-profile-invalid-bio' => 'Your bio needs to contain at least $1 
{{PLURAL:$1|character|characters}}.',
-       'epca-visible' => 'Publicly list you as Campus volunteer',
+       'epca-visible' => 'Publicly list {{GENDER:$1|you}} as Campus volunteer',
 
        // Special:StudentActivity
        'ep-studentactivity-noresults' => 'There are no students that were 
active in the last $1.
@@ -1886,7 +1886,8 @@
        'epoa-profile-saved' => 'Success message shown in success box at top of 
page after save.',
        'epoa-profile-invalid-bio' => 'Error message stating the bio must 
contain more characters. Parameters:
 * $1 is the minimum number of characters.',
-       'epoa-visible' => 'Check box input label.',
+       'epoa-visible' => 'Check box input label. Parameters:
+* $1 is a plain text username of the current user, used for GENDER',
        'campusambassadorprofile' => 'Page title.',
        'campusambassadorprofile-legend' => 'Ambassador form legend.',
        'campusambassadorprofile-text' => 'Ambassador form description.',
@@ -1897,7 +1898,8 @@
        'epca-profile-saved' => 'Success message shown in success box at top of 
page after save.',
        'epca-profile-invalid-bio' => 'Error message stating the bio must 
contain more characters. Parameters:
 * $1 is the minimum number of characters.',
-       'epca-visible' => 'Check box input label.',
+       'epca-visible' => 'Check box input label. Parameters:
+* $1 is a plain text username of the current user, used for GENDER',
        'ep-studentactivity-noresults' => 'Message shown when there are no 
students that where recently active. Parameters:
 * $1 is a duration.',
        'ep-studentactivity-count' => 'Parameters:
diff --git a/includes/specials/SpecialAmbassadorProfile.php 
b/includes/specials/SpecialAmbassadorProfile.php
index 80b0c9c..e241c38 100644
--- a/includes/specials/SpecialAmbassadorProfile.php
+++ b/includes/specials/SpecialAmbassadorProfile.php
@@ -98,14 +98,22 @@
 
                $msgPrefix = $this->getMsgPrefix();
 
+               // Messages that can be used here:
+               // * epoa-visible
+               // * epca-visible
                $fields['visible'] = array(
                        'type' => 'check',
-                       'label-message' => $this->getMsgPrefix() . 'visible',
+                       'label' => wfMessage( $this->getMsgPrefix() . 
'visible', $this->getUser() )->text(),
                        'required' => true,
                        'rows' => 10,
                        'default' => $ambassador->getField( 'visible' ),
                );
 
+               // Messages that can be used here:
+               // * epoa-profile-bio
+               // * epca-profile-bio
+               // * epoa-profile-invalid-bio
+               // * epca-profile-invalid-bio
                $fields['bio'] = array(
                        'type' => 'textarea',
                        'label-message' => $this->getMsgPrefix() . 
'profile-bio',
@@ -118,6 +126,11 @@
                        'default' => $ambassador->getField( 'bio' ),
                );
 
+               // Messages that can be used here:
+               // * epoa-profile-photo
+               // * epca-profile-photo
+               // * epoa-profile-photo-help
+               // * epca-profile-photo-help
                $fields['photo'] = array(
                        'type' => 'text',
                        'label-message' => $this->getMsgPrefix() . 
'profile-photo',

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I220762642d566fadac7ac6bd2c6702decb54afa4
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/EducationProgram
Gerrit-Branch: master
Gerrit-Owner: MegaAlex <alexivano...@gmail.com>
Gerrit-Reviewer: Bartosz DziewoƄski <matma....@gmail.com>
Gerrit-Reviewer: Nemo bis <federicol...@tiscali.it>
Gerrit-Reviewer: Siebrand <siebr...@wikimedia.org>
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