From 99c4684f2cea9230328cbb377253307255a474af Mon Sep 17 00:00:00 2001 From: PranavK Date: Mon, 4 Jan 2016 06:08:14 +0530 Subject: [PATCH] Add GENDER support to some MediaWiki core messages https://translatewiki.net/wiki/MediaWiki:Confirmrecreate/en https://translatewiki.net/wiki/MediaWiki:Confirmrecreate-noreason/en https://translatewiki.net/wiki/MediaWiki:Saveusergroups/en https://translatewiki.net/wiki/MediaWiki:Editusergroup/en Change-Id: Ieec383e77aa245fd0db12ea714a27540853c5054 --- includes/specials/SpecialUserrights.php | 4 ++-- languages/i18n/en.json | 8 ++++---- languages/i18n/qqq.json | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/includes/specials/SpecialUserrights.php b/includes/specials/SpecialUserrights.php index 01b1f8e49d..b06ef97350 100644 --- a/includes/specials/SpecialUserrights.php +++ b/includes/specials/SpecialUserrights.php @@ -473,7 +473,7 @@ class UserrightsPage extends SpecialPage { $this->mFetchedUser === null ? array( 'autofocus' => '' ) : array() ) ) . ' ' . - Xml::submitButton( $this->msg( 'editusergroup' )->text() ) . + Xml::submitButton( $this->msg( 'editusergroup', $user->getName() )->text() ) . Html::closeElement( 'fieldset' ) . Html::closeElement( 'form' ) . "\n" ); @@ -603,7 +603,7 @@ class UserrightsPage extends SpecialPage { " . - Xml::submitButton( $this->msg( 'saveusergroups' )->text(), + Xml::submitButton( $this->msg( 'saveusergroups', $user->getName() )->text(), array( 'name' => 'saveusergroups' ) + Linker::tooltipAndAccesskeyAttribs( 'userrights-set' ) ) . diff --git a/languages/i18n/en.json b/languages/i18n/en.json index 4f3849729d..f1932d8a0e 100644 --- a/languages/i18n/en.json +++ b/languages/i18n/en.json @@ -1104,10 +1104,10 @@ "userrights-summary": "", "userrights-lookup-user": "Manage user groups", "userrights-user-editname": "Enter a username:", - "editusergroup": "Edit user groups", + "editusergroup": "Edit {{GENDER:$1|user}} groups", "editinguser": "Changing user rights of {{GENDER:$1|user}} [[User:$1|$1]] $2", "userrights-editusergroup": "Edit user groups", - "saveusergroups": "Save user groups", + "saveusergroups": "Save {{GENDER:$1|user}} groups", "userrights-groupsmember": "Member of:", "userrights-groupsmember-auto": "Implicit member of:", "userrights-groupsmember-type": "$1", @@ -3322,8 +3322,8 @@ "scarytranscludefailed-httpstatus": "[Template fetch failed for $1: HTTP $2]", "scarytranscludetoolong": "[URL is too long]", "deletedwhileediting": "Warning: This page was deleted after you started editing!", - "confirmrecreate": "User [[User:$1|$1]] ([[User talk:$1|talk]]) deleted this page after you started editing with reason:\n: $2\nPlease confirm that you really want to recreate this page.", - "confirmrecreate-noreason": "User [[User:$1|$1]] ([[User talk:$1|talk]]) deleted this page after you started editing. Please confirm that you really want to recreate this page.", + "confirmrecreate": "User [[User:$1|$1]] ([[User talk:$1|talk]]) {{GENDER:$1|deleted}} this page after you started editing with reason:\n: $2\nPlease confirm that you really want to recreate this page.", + "confirmrecreate-noreason": "User [[User:$1|$1]] ([[User talk:$1|talk]]) {{GENDER:$1|deleted}} this page after you started editing. Please confirm that you really want to recreate this page.", "recreate": "Recreate", "unit-pixel": "px", "confirm_purge_button": "OK", diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index 685d3aca47..28e52719eb 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -1279,10 +1279,10 @@ "userrights-summary": "{{doc-specialpagesummary|userrights}}", "userrights-lookup-user": "Label text when managing user rights ([[Special:UserRights]])", "userrights-user-editname": "Displayed on [[Special:UserRights]].", - "editusergroup": "Button name, in page [[Special:Userrights]] (only available to administrators), in the section named {{MediaWiki:userrights-lookup-user}}.\n\n{{Identical|Edit user groups}}", + "editusergroup": "Button name, in page [[Special:Userrights]] (only available to administrators), in the section named {{MediaWiki:userrights-lookup-user}}.\n\n{{Identical|Edit user groups}}.\nParameters:\n* $1 - username, for GENDER support", "editinguser": "Appears on [[Special:UserRights]]. Parameters:\n* $1 - a plaintext username\n* $2 - user tool links. e.g. \"(Talk | contribs | block | send email)\"", "userrights-editusergroup": "Parameter:\n* $1 - (Optional) a username, can be used for GENDER\n{{Identical|Edit user groups}}", - "saveusergroups": "Button text when editing user groups", + "saveusergroups": "Button text when editing user groups.\nParameters:\n* $1 - username, for GENDER support", "userrights-groupsmember": "Used when editing user groups in [[Special:Userrights]].\n\nThe message is followed by a list of group names.\n\nParameters:\n* $1 - (Optional) the number of items in the list following the message, for PLURAL\n* $2 - (Optional) the user name, for GENDER", "userrights-groupsmember-auto": "Used when editing user groups in [[Special:Userrights]]. The message is followed by a list of group names.\n\n\"Implicit\" is for groups that the user was automatically added to (such as \"autoconfirmed\"); cf. {{msg-mw|userrights-groupsmember}}\n\nParameters:\n* $1 - (Optional) the number of items in the list following the message, for PLURAL\n* $2 - (Optional) the user name, for GENDER", "userrights-groupsmember-type": "{{optional}}\nParameters:\n* $1 - list of group names\n* $2 - list of group member names. Used with labels {{msg-mw|Userrights-groupsmember}} and {{msg-mw|Userrights-groupsmember-auto}}", @@ -3497,8 +3497,8 @@ "scarytranscludefailed-httpstatus": "Identical to {{msg-mw|Scarytranscludefailed}}, but shows the HTTP error which was received. This will not be parsed as wikitext and will appear as is. Parameters:\n* $1 - URL which points to interwiki template\n* $2 - HTTP status, integer (other than 200)", "scarytranscludetoolong": "The URL was too long.", "deletedwhileediting": "Used as warning in the EditPage page.", - "confirmrecreate": "Followed by the checkbox which has the label {{msg-mw|Recreate}}.\n\nParameters:\n* $1 - username\n* $2 - reason\nSee also:\n* {{msg-mw|Confirmrecreate-noreason}}", - "confirmrecreate-noreason": "Followed by the checkbox which has the label {{msg-mw|Recreate}}.\n\nParameters:\n* $1 - username\n* $2 - (Unused) reason\nSee also:\n* {{msg-mw|Confirmrecreate}}", + "confirmrecreate": "Followed by the checkbox which has the label {{msg-mw|Recreate}}.\n\nParameters:\n* $1 - username, also used for GENDER support\n* $2 - reason\nSee also:\n* {{msg-mw|Confirmrecreate-noreason}}", + "confirmrecreate-noreason": "Followed by the checkbox which has the label {{msg-mw|Recreate}}.\n\nParameters:\n* $1 - username, also used for GENDER support\n* $2 - (Unused) reason\nSee also:\n* {{msg-mw|Confirmrecreate}}", "recreate": "Text shown when the editor fails to save the page due to it having been deleted since they opened VE. $1 is the message {{msg-mw|ooui-dialog-process-continue}}.", "unit-pixel": "{{optional}}\npx is the abbreviation for \"pixel\".", "confirm_purge_button": "Used as Submit button text.\n{{Identical|OK}}", -- 2.20.1