Index: trunk/extensions/EducationProgram/specials/SpecialEnroll.php |
— | — | @@ -48,7 +48,7 @@ |
49 | 49 | $term = EPTerm::selectRow( null, array( 'id' => $args[0] ) ); |
50 | 50 | |
51 | 51 | if ( $term === false ) { |
52 | | - $this->showWarning( wfMessage( 'ep-enroll-nosuchterm' ) ); |
| 52 | + $this->showWarning( wfMessage( 'ep-enroll-invalid-id' ) ); |
53 | 53 | } |
54 | 54 | elseif ( $term->getStatus() === 'current' ) { |
55 | 55 | $token = ''; |
— | — | @@ -125,8 +125,6 @@ |
126 | 126 | protected function showTokenInput() { |
127 | 127 | $out = $this->getOutput(); |
128 | 128 | |
129 | | - // $out->addWikiMsg( 'ep-enroll-no-token' ); |
130 | | - |
131 | 129 | $out->addHTML( Html::openElement( |
132 | 130 | 'form', |
133 | 131 | array( |
Index: trunk/extensions/EducationProgram/EducationProgram.i18n.php |
— | — | @@ -339,6 +339,8 @@ |
340 | 340 | 'ep-enroll-add-token-doc' => 'In order to enroll for this term, you need a token provided by your instructor or one of the ambassadors for your term.', |
341 | 341 | 'ep-enroll-token' => 'Enrollment token', |
342 | 342 | 'ep-enroll-submit-token' => 'Enroll with this token', |
| 343 | + 'ep-enroll-term-passed' => 'This term has ended, so you can no longer enroll for it. A list of existing terms can be found [[Special:Terms|here]].', |
| 344 | + 'ep-enroll-term-planned' => 'This term has not yet started, please be patient. A list of existing terms can be found [[Special:Terms|here]].', |
343 | 345 | |
344 | 346 | // Special:MyCourses |
345 | 347 | 'ep-mycourses-enrolled' => 'You have successfully enrolled for $1 at $2.', |