MtDu has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/329132 )

Change subject: Add missing API i18n messages:
......................................................................

Add missing API i18n messages:

Bug: T153264
Change-Id: Ia0d237ef8e18b892fb0e84894a26ecdabc019f9a
---
M UserBoard/ApiDeleteUserBoardMessage.php
M UserBoard/ApiSendUserBoardMessage.php
M UserBoard/i18n/en.json
M UserBoard/i18n/qqq.json
M UserProfile/ApiUserProfilePrivacy.php
M UserProfile/i18n/en.json
M UserProfile/i18n/qqq.json
M UserRelationship/ApiRelationshipResponse.php
M UserRelationship/i18n/en.json
M UserRelationship/i18n/qqq.json
10 files changed, 34 insertions(+), 70 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SocialProfile 
refs/changes/32/329132/1

diff --git a/UserBoard/ApiDeleteUserBoardMessage.php 
b/UserBoard/ApiDeleteUserBoardMessage.php
index b1428bb..b30d79c 100644
--- a/UserBoard/ApiDeleteUserBoardMessage.php
+++ b/UserBoard/ApiDeleteUserBoardMessage.php
@@ -27,10 +27,6 @@
                return true;
        }
 
-       public function getDescription() {
-               return 'Delete a UserBoard message.';
-       }
-
        public function getAllowedParams() {
                return array_merge( parent::getAllowedParams(), array(
                        'id' => array(
@@ -38,15 +34,5 @@
                                ApiBase::PARAM_REQUIRED => false
                        )
                ) );
-       }
-
-       public function getParamDescription() {
-               return array_merge( parent::getParamDescription(), array(
-                       'id' => 'Unique identifier of the board message to 
delete.'
-               ) );
-       }
-
-       public function getExamplesMessages() {
-               return array();
        }
 }
\ No newline at end of file
diff --git a/UserBoard/ApiSendUserBoardMessage.php 
b/UserBoard/ApiSendUserBoardMessage.php
index 5bf6622..6c311e6 100644
--- a/UserBoard/ApiSendUserBoardMessage.php
+++ b/UserBoard/ApiSendUserBoardMessage.php
@@ -36,10 +36,6 @@
                return true;
        }
 
-       public function getDescription() {
-               return 'Send a message to a user\'s UserBoard.';
-       }
-
        public function getAllowedParams() {
                return array_merge( parent::getAllowedParams(), array(
                        'username' => array(
@@ -55,17 +51,5 @@
                                ApiBase::PARAM_REQUIRED => false
                        )
                ) );
-       }
-
-       public function getParamDescription() {
-               return array_merge( parent::getParamDescription(), array(
-                       'username' => 'The recipient\'s user name.',
-                       'message' => 'urlencoded version of the message to 
send.',
-                       'type' => 'Message type; 0 for a public message, 1 for 
a private message.'
-               ) );
-       }
-
-       public function getExamplesMessages() {
-               return array();
        }
 }
\ No newline at end of file
diff --git a/UserBoard/i18n/en.json b/UserBoard/i18n/en.json
index ebf2335..bcdb9dc 100644
--- a/UserBoard/i18n/en.json
+++ b/UserBoard/i18n/en.json
@@ -60,5 +60,11 @@
        "echo-category-title-social-msg": "User board messages",
        "echo-pref-tooltip-social-msg": "Notify me when someone leaves a 
message on my user board.",
        "notification-social-msg-send": "$1 just left a message on your user 
board.<br /><br />''$2''",
-       "notification-social-msg-send-bundle": "{{PLURAL:$1|One person|$1 
people|100=99+ people}} left messages on your user board."
+       "notification-social-msg-send-bundle": "{{PLURAL:$1|One person|$1 
people|100=99+ people}} left messages on your user board.",
+       "apihelp-senduserboardmessage-description": "Send a message to a user's 
UserBoard.",
+       "apihelp-senduserboardmessage-param-username": "The recipient's user 
name.",
+       "apihelp-senduserboardmessage-param-message": "A urlencoded version of 
the message to send.",
+       "apihelp-senduserboardmessage-param-type": "Message type: 0 for a 
public message, 1 for a private message.",
+       "apihelp-deleteuserboardmessage-description": "Delete a UserBoard 
message.",
+       "apihelp-deleteuserboardmessage-param-id": "Unique identifier of the 
board message to delete."
 }
diff --git a/UserBoard/i18n/qqq.json b/UserBoard/i18n/qqq.json
index 43a01aa..d0108ef 100644
--- a/UserBoard/i18n/qqq.json
+++ b/UserBoard/i18n/qqq.json
@@ -17,5 +17,11 @@
        "userboard_prevpage": "{{Identical|Prev}}",
        "userboard_sendbutton": "{{Identical|Send}}",
        "userboard_showingmessages": "* '''$1''' is the total count of 
messages\n* '''$2''' is the number of the first message shown\n* '''$3''' is 
the number of the last message shown\n* '''$4''' is the count of messages 
acutally shown",
-       "right-userboard-delete": "{{doc-right|userboard-delete}}"
+       "right-userboard-delete": "{{doc-right|userboard-delete}}",
+       "apihelp-senduserboardmessage-description": 
"{{doc-apihelp-description|senduserboardmessage}}",
+       "apihelp-senduserboardmessage-param-username": 
"{{doc-apihelp-param|senduserboardmessage|username}}",
+       "apihelp-senduserboardmessage-param-message": 
"{{doc-apihelp-param|senduserboardmessage|message}}",
+       "apihelp-senduserboardmessage-param-type": 
"{{doc-apihelp-param|senduserboardmessage|type}}",
+       "apihelp-deleteuserboardmessage-description": 
"{{doc-apihelp-description|deleteuserboardmessage}}",
+       "apihelp-deleteuserboardmessage-param-id": 
"{{doc-apihelp-param|deleteuserboardmessage|id}}"
 }
diff --git a/UserProfile/ApiUserProfilePrivacy.php 
b/UserProfile/ApiUserProfilePrivacy.php
index c02330d..d6be9de 100644
--- a/UserProfile/ApiUserProfilePrivacy.php
+++ b/UserProfile/ApiUserProfilePrivacy.php
@@ -79,23 +79,4 @@
                        )
                );
        }
-
-       /**
-        * @return array Human-readable descriptions for all parameters that 
this module accepts
-        */
-       protected function getParamDescription() {
-               return array(
-                       'method' => 'Action (either "get" or "set")',
-                       'field_key' => 'Target field key, such as up_movies for 
the "Movies" field',
-                       'privacy' => 'New privacy value (one of the following: 
public, hidden, friends, foaf)',
-                       'tuid' => 'Target user (ID)'
-               );
-       }
-
-       /**
-        * @return string Human-readable description for this API module, shown 
on api.php
-        */
-       protected function getDescription() {
-               return 'API module for setting the visibility ("privacy") of a 
profile field';
-       }
 }
\ No newline at end of file
diff --git a/UserProfile/i18n/en.json b/UserProfile/i18n/en.json
index 8d20588..05962f6 100644
--- a/UserProfile/i18n/en.json
+++ b/UserProfile/i18n/en.json
@@ -215,5 +215,10 @@
        "user-profile-picture-log-delete-entry": "deleted $1's avatar",
        "userprofile-country-list": 
"\n*Afghanistan\n*Albania\n*Algeria\n*American 
Samoa\n*Andorra\n*Angola\n*Anguilla\n*Antarctica\n*Antigua and 
Barbuda\n*Argentina\n*Armenia\n*Aruba\n*Australia\n*Austria\n*Azerbaijan\n*Bahamas\n*Bahrain\n*Bangladesh\n*Barbados\n*Belarus\n*Belgium\n*Belize\n*Benin\n*Bermuda\n*Bhutan\n*Bolivia\n*Bosnia
 and Herzegovina\n*Botswana\n*Bouvet Island\n*Brazil\n*British Indian Ocean 
Territory\n*Brunei Darussalam\n*Bulgaria\n*Burkina 
Faso\n*Burundi\n*Cambodia\n*Cameroon\n*Canada\n*Cape Verde\n*Cayman 
Islands\n*Central African Republic\n*Chad\n*Chile\n*China\n*Christmas 
Island\n*Cocos Islands\n*Colombia\n*Comoros\n*Congo\n*Congo, Democratic 
Republic of the\n*Cook Islands\n*Costa Rica\n*Côte 
d'Ivoire\n*Croatia\n*Cuba\n*Cyprus\n*Czech 
Republic\n*Denmark\n*Djibouti\n*Dominica\n*Dominican 
Republic\n*Ecuador\n*Egypt\n*El Salvador\n*Equatorial 
Guinea\n*Eritrea\n*Estonia\n*Ethiopia\n*Falkland Islands\n*Faroe 
Islands\n*Fiji\n*Finland\n*France\n*French Guiana\n*French 
Polynesia\n*Gabon\n*Gambia\n*Georgia\n*Germany\n*Ghana\n*Gibraltar\n*Greece\n*Greenland\n*Grenada\n*Guadeloupe\n*Guam\n*Guatemala\n*Guinea\n*Guinea-Bissau\n*Guyana\n*Haiti\n*Heard
 Island and McDonald Islands\n*Honduras\n*Hong 
Kong\n*Hungary\n*Iceland\n*India\n*Indonesia\n*Iran\n*Iraq\n*Ireland\n*Israel\n*Italy\n*Jamaica\n*Japan\n*Jordan\n*Kazakhstan\n*Kenya\n*Kiribati\n*Kuwait\n*Kyrgyzstan\n*Laos\n*Latvia\n*Lebanon\n*Lesotho\n*Liberia\n*Libya\n*Liechtenstein\n*Lithuania\n*Luxembourg\n*Macao\n*Macedonia\n*Madagascar\n*Malawi\n*Malaysia\n*Maldives\n*Mali\n*Malta\n*Marshall
 
Islands\n*Martinique\n*Mauritania\n*Mauritius\n*Mayotte\n*Mexico\n*Micronesia\n*Moldova\n*Monaco\n*Mongolia\n*Montserrat\n*Morocco\n*Mozambique\n*Myanmar\n*Namibia\n*Nauru\n*Nepal\n*Netherlands\n*Netherlands
 Antilles\n*New Caledonia\n*New Zealand\n*Nicaragua\n*Niger\n*Nigeria\n*Norfolk 
Island\n*North Korea\n*Norway\n*Oman\n*Pakistan\n*Palau\n*Palestinian 
Territory\n*Panama\n*Papua New 
Guinea\n*Paraguay\n*Peru\n*Philippines\n*Pitcairn\n*Poland\n*Portugal\n*Puerto 
Rico\n*Qatar\n*Romania\n*Russian Federation\n*Rwanda\n*Saint Helena\n*Saint 
Kitts and Nevis\n*Saint Lucia\n*Saint Pierre and Miquelon\n*Saint Vincent and 
the Grenadines\n*Samoa\n*San Marino\n*Sao Tome and Principe\n*Saudi 
Arabia\n*Senegal\n*Serbia and Montenegro\n*Seychelles\n*Sierra 
Leone\n*Singapore\n*Slovakia\n*Slovenia\n*Solomon Islands\n*Somalia\n*South 
Africa\n*South Georgia\n*South Korea\n*Spain\n*Sri 
Lanka\n*Sudan\n*Suriname\n*Svalbard and Jan 
Mayen\n*Swaziland\n*Sweden\n*Switzerland\n*Syrian Arab 
Republic\n*Taiwan\n*Tajikistan\n*Tanzania\n*Thailand\n*Timor-Leste\n*Togo\n*Tokelau\n*Tonga\n*Trinidad
 and 
Tobago\n*Tunisia\n*Turkey\n*Turkmenistan\n*Tuvalu\n*Uganda\n*Ukraine\n*United 
Arab Emirates\n*United Kingdom\n*United States\n*United States Minor Outlying 
Islands\n*Uruguay\n*Uzbekistan\n*Vanuatu\n*Vatican 
City\n*Venezuela\n*Vietnam\n*Virgin Islands, British\n*Virgin Islands, 
U.S.\n*Wallis and Futuna\n*Western Sahara\n*Yemen\n*Zambia\n*Zimbabwe",
        "right-avatarremove": "Remove user's avatars",
-       "right-editothersprofiles": "Update other users' social profiles"
+       "right-editothersprofiles": "Update other users' social profiles",
+       "apihelp-userprofileprivacy-description": "API module for setting the 
visibility (\"privacy\") of a profile field",
+       "apihelp-userprofileprivacy-param-method": "Action (either \"get\" or 
\"set\")",
+       "apihelp-userprofileprivacy-param-field_key": "Target field key, such 
as up_movies for the \"Movies\" field",
+       "apihelp-userprofileprivacy-param-privacy": "New privacy value (public, 
hidden, friends, foaf)",
+       "apihelp-userprofileprivacy-param-tuid": "Target user ID"
 }
diff --git a/UserProfile/i18n/qqq.json b/UserProfile/i18n/qqq.json
index fe616db..660cbd1 100644
--- a/UserProfile/i18n/qqq.json
+++ b/UserProfile/i18n/qqq.json
@@ -67,5 +67,10 @@
        "user-profile-goback": "{{Identical|Go back}}",
        "user-page-link": "{{Identical|User page}}",
        "right-avatarremove": "{{doc-right|avatarremove}}",
-       "right-editothersprofiles": "{{doc-right|editothersprofiles}}"
+       "right-editothersprofiles": "{{doc-right|editothersprofiles}}",
+       "apihelp-userprofileprivacy-description": 
"{{doc-apihelp-description|userprofileprivacy}}",
+       "apihelp-userprofileprivacy-param-method": 
"{{doc-apihelp-param|userprofileprivacy|method}}",
+       "apihelp-userprofileprivacy-param-field_key": 
"{{doc-apihelp-param|userprofileprivacy|field_key}}",
+       "apihelp-userprofileprivacy-param-privacy": 
"{{doc-apihelp-param|userprofileprivacy|privacy}}",
+       "apihelp-userprofileprivacy-param-tuid": 
"{{doc-apihelp-param|userprofileprivacy|tuid}}"
 }
diff --git a/UserRelationship/ApiRelationshipResponse.php 
b/UserRelationship/ApiRelationshipResponse.php
index 0c61887..09676b7 100644
--- a/UserRelationship/ApiRelationshipResponse.php
+++ b/UserRelationship/ApiRelationshipResponse.php
@@ -53,10 +53,6 @@
                return true;
        }
 
-       public function getDescription() {
-               return 'Responds to user relationship (friend/foe) requests.';
-       }
-
        public function getAllowedParams() {
                return array_merge( parent::getAllowedParams(), array(
                        'response' => array(
@@ -68,17 +64,6 @@
                                ApiBase::PARAM_REQUIRED => true
                        )
                ) );
-       }
-
-       public function getParamDescription() {
-               return array_merge( parent::getParamDescription(), array(
-                       'response' => 'Response to the relationship request; 1 
to accept, -1 to reject.',
-                       'id' => 'Unique identifier of the relationship request'
-               ) );
-       }
-
-       public function getExamplesMessages() {
-               return array();
        }
 }
 
diff --git a/UserRelationship/i18n/en.json b/UserRelationship/i18n/en.json
index 70eb860..607d71f 100644
--- a/UserRelationship/i18n/en.json
+++ b/UserRelationship/i18n/en.json
@@ -101,5 +101,8 @@
        "notification-social-rel-accept-friend": "You became friends with $1.",
        "notification-social-rel-accept-foe": "You became foes with $1.",
        "notification-social-rel-accept-email-subject": "$1 has accepted your 
relationship request!",
-       "notification-social-rel-accept-email-batch-body": "$1 has accepted 
your relationship request."
+       "notification-social-rel-accept-email-batch-body": "$1 has accepted 
your relationship request.",
+       "apihelp-relationshipresponse-description": "Responds to user 
relationship (friend/foe) requests.",
+       "apihelp-relationshipresponse-param-response": "Response to the 
relationship request; 1 to accept, -1 to reject.",
+       "apihelp-relationshipresponse-param-id": "Unique identifier of the 
relationship request"
 }
diff --git a/UserRelationship/i18n/qqq.json b/UserRelationship/i18n/qqq.json
index fcb5f0b..fb610d7 100644
--- a/UserRelationship/i18n/qqq.json
+++ b/UserRelationship/i18n/qqq.json
@@ -12,5 +12,8 @@
        "ur-next": "{{Identical|Next}}",
        "ur-remove": "{{Identical|Remove}}",
        "ur-cancel": "{{Identical|Cancel}}",
-       "ur-login": "{{Identical|Log in}}"
+       "ur-login": "{{Identical|Log in}}",
+       "apihelp-relationshipresponse-description": 
"{{doc-apihelp-description|relationshipresponse}}",
+       "apihelp-relationshipresponse-param-response": 
"{{doc-apihelp-param|relationshipresponse|response}}",
+       "apihelp-relationshipresponse-param-id": 
"{{doc-apihelp-param|relationshipresponse|id}}"
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia0d237ef8e18b892fb0e84894a26ecdabc019f9a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SocialProfile
Gerrit-Branch: master
Gerrit-Owner: MtDu <justin.d...@gmail.com>

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

Reply via email to