Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.

Commit 5dd1075

Browse files
committed
Less generic submit message and fix textarea styling
1 parent eeb2418 commit 5dd1075

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

SpecialReport.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public function execute( $par ) {
1010
$user = $this->getUser();
1111
$out = $this->getOutput();
1212
$out->setPageTitle( wfMessage('report-title')->escaped() );
13+
$out->addModules( 'ext.report' );
1314
if ( !$user->isAllowed( 'report' ) ) {
1415
$out->addHTML(Html::rawElement(
1516
'p',
@@ -89,7 +90,8 @@ public function execute( $par ) {
8990
'input',
9091
[
9192
'type' => 'submit',
92-
'id' => 'mw-report-form-submit'
93+
'id' => 'mw-report-form-submit',
94+
'value' => wfMessage( 'report-submit' )
9395
]
9496
));
9597
$out->addHTML(Html::closeElement( 'form' ));

i18n/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@
3434
"report-already-reported": "You have already reported this revision.",
3535
"report-reports-awaiting": "<b>$2</b> unhandled $1 {{PLURAL:$2|is|are}} awaiting. <b>Your attention is needed!</b>",
3636
"report-reports-awaiting-linktext": "{{PLURAL:$1|report|reports}}",
37-
"report-has-been-handled": "The report has been marked as handled."
37+
"report-has-been-handled": "The report has been marked as handled.",
38+
"report-submit": "Submit report"
3839
}

i18n/qqq.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@
3434
"report-already-reported": "Error text for when a user attempts to re-report a revision",
3535
"report-reports-awaiting": "Contents of at the top of Special:RecentChanges and Special:Watchlist notifying admins that there are reports needing handling. $1 is the link to the special page, $2 is the number of reports.",
3636
"report-reports-awaiting-linktext": "Link text for the admin's box link leading to Special:HandleReports. $1 is the number of reports.",
37-
"report-has-been-handled": "Contents of paragraph stating handling success"
37+
"report-has-been-handled": "Contents of paragraph stating handling success",
38+
"report-submit": "Button text for submitting a report"
3839
}

resources/main.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
.mw-report-handling-textarea {
2-
resize: none;
1+
textarea {
2+
resize: vertical;
3+
display: block;
34
}
45
table {
56
text-align: center;

0 commit comments

Comments
 (0)