Index: trunk/extensions/Contest/Contest.i18n.php |
— | — | @@ -207,6 +207,7 @@ |
208 | 208 | 'contest-submission-invalid-url' => 'This URL does not match one of the allowed formats.', |
209 | 209 | 'contest-submission-new-submission' => 'You still need to enter the URL to your submission. This needs to be done before the deadline.', |
210 | 210 | 'contest-submission-current-submission' => 'This is the URL to your submission, which you can modify untill the deadline.', |
| 211 | + 'contest-submission-challenge' => 'You are currently on the $1 challenge', |
211 | 212 | |
212 | 213 | // TODO: how can this be done properly in JS? |
213 | 214 | 'contest-submission-domains' => 'Submissions are restricted to these sites: $1', |
Index: trunk/extensions/Contest/specials/SpecialMyContests.php |
— | — | @@ -302,6 +302,10 @@ |
303 | 303 | $form->setSubmitCallback( array( $this, 'handleSubmission' ) ); |
304 | 304 | $form->setSubmitText( wfMsg( 'contest-submission-submit' ) ); |
305 | 305 | |
| 306 | + $challengeId = $contestant->getField( 'challenge_id' ); |
| 307 | + $challenge = ContestChallenge::getTitlesForIds( $challengeId ); |
| 308 | + $output->addWikiMsg( 'contest-submission-challenge', $challenge[$challengeId] ); |
| 309 | + |
306 | 310 | if( $form->show() ) { |
307 | 311 | $query = is_null( $this->submissionState ) ? '' : $this->submissionState; |
308 | 312 | $output->redirect( $this->getTitle( $contest->getField( 'name' ) )->getLocalURL( $query ) ); |