Index: trunk/extensions/Contest/Contest.i18n.php |
— | — | @@ -73,7 +73,7 @@ |
74 | 74 | 'contest-special-newname' => 'Contest name', |
75 | 75 | 'contest-special-add' => 'Add contest', |
76 | 76 | 'contest-special-existing' => 'Existing contests', |
77 | | - |
| 77 | + |
78 | 78 | 'contest-special-name' => 'Name', |
79 | 79 | 'contest-special-status' => 'Status', |
80 | 80 | 'contest-special-submissioncount' => 'Submission count', |
— | — | @@ -138,7 +138,7 @@ |
139 | 139 | 'contest-signup-invalid-name' => 'The name you provided is too short.', |
140 | 140 | 'contest-signup-require-challenge' => 'You must select a challenge.', |
141 | 141 | 'contest-signup-invalid-cv' => 'You entered an invalid URL.', |
142 | | - |
| 142 | + |
143 | 143 | // Special:Contest |
144 | 144 | 'contest-contest-title' => 'Contest: $1', |
145 | 145 | 'contest-contest-no-results' => 'There are no contestants to display.', |
— | — | @@ -158,7 +158,7 @@ |
159 | 159 | 'contest-contestant-commentcount' => 'Comments', |
160 | 160 | 'contest-contestant-overallrating' => 'Rating', |
161 | 161 | 'contest-contestant-rating' => '$1 ($2 {{PLURAL:$2|vote|votes}})', |
162 | | - |
| 162 | + |
163 | 163 | // Special:Contestant |
164 | 164 | 'contest-contestant-title' => 'Contestant $1 ($2)', |
165 | 165 | 'contest-contestant-header-id' => 'Contestant ID', |
— | — | @@ -193,7 +193,7 @@ |
194 | 194 | 'contest-mycontests-finished-text' => 'These are the passed contests you have participated in.', |
195 | 195 | 'contest-mycontests-header-contest' => 'Contest', |
196 | 196 | 'contest-mycontests-header-challenge' => 'Challenge', |
197 | | - 'contest-mycontests-signup-success' => 'You have successfully signed up for this contest.', |
| 197 | + 'contest-mycontests-signup-success' => 'You have successfully signed up for the $1 contest.', |
198 | 198 | 'contest-mycontests-addition-success' => 'You have successfully posted your submission! Thanks for participating in this contest.', |
199 | 199 | 'contest-mycontests-updated-success' => 'You have successfully modified your submission.', |
200 | 200 | 'contest-mycontests-sessionfail' => 'Your submission could not be saved due to loss of session data. Please try again.', |
— | — | @@ -207,7 +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 | | - |
| 211 | + |
212 | 212 | // TODO: how can this be done properly in JS? |
213 | 213 | 'contest-submission-domains' => 'Submissions are restricted to these sites: $1', |
214 | 214 | ); |
Index: trunk/extensions/Contest/specials/SpecialMyContests.php |
— | — | @@ -276,7 +276,7 @@ |
277 | 277 | */ |
278 | 278 | protected function showSubmissionPage( ContestContestant $contestant ) { |
279 | 279 | if ( $this->getRequest()->getCheck( 'new' ) ) { |
280 | | - $this->showSuccess( 'contest-mycontests-signup-success' ); |
| 280 | + $this->showSuccess( 'contest-mycontests-signup-success', $contestant->getContest()->getField( 'name' ) ); |
281 | 281 | } |
282 | 282 | else if ( $this->getRequest()->getCheck( 'added' ) ) { |
283 | 283 | $this->showSuccess( 'contest-mycontests-addition-success' ); |
Index: trunk/extensions/Contest/specials/SpecialContestPage.php |
— | — | @@ -93,9 +93,9 @@ |
94 | 94 | * |
95 | 95 | * @param string $message |
96 | 96 | */ |
97 | | - protected function showSuccess( $message ) { |
| 97 | + protected function showSuccess( $message, $subst = '' ) { |
98 | 98 | $this->getOutput()->addHTML( |
99 | | - '<div class="successbox"><strong><p>' . wfMsgExt( $message, 'parseinline' ) . '</p></strong></div>' |
| 99 | + '<div class="successbox"><strong><p>' . wfMsgExt( $message, array( 'parseinline' ), $subst ) . '</p></strong></div>' |
100 | 100 | ); |
101 | 101 | } |
102 | 102 | |