Index: trunk/extensions/EducationProgram/specials/SpecialMasterCourse.php |
— | — | @@ -76,7 +76,7 @@ |
77 | 77 | EPMC::displayPager( $this->getContext(), array( 'id' => $masterCourse->getId() ) ); |
78 | 78 | |
79 | 79 | if ( $this->getUser()->isAllowed( 'ep-mc' ) ) { |
80 | | - $out->addHTML( Html::element( 'h2', array(), wfMsg( 'ep-mc-add-term' ) ) ); |
| 80 | + $out->addHTML( Html::element( 'h2', array(), wfMsg( 'ep-mc-add-course' ) ) ); |
81 | 81 | |
82 | 82 | EPMC::displayAddNewControl( $this->getContext(), array( 'mc' => $masterCourse->getId() ) ); |
83 | 83 | } |
— | — | @@ -105,7 +105,7 @@ |
106 | 106 | htmlspecialchars( $org ) |
107 | 107 | ); |
108 | 108 | |
109 | | - $stats['status'] = wfMsgHtml( $masterCourse->getField( 'active' ) ? 'ep-course-active' : 'ep-course-inactive' ); |
| 109 | + $stats['status'] = wfMsgHtml( $masterCourse->getField( 'active' ) ? 'ep-mc-active' : 'ep-mc-inactive' ); |
110 | 110 | |
111 | 111 | $lang = $this->getLanguage(); |
112 | 112 | |
— | — | @@ -156,12 +156,12 @@ |
157 | 157 | } |
158 | 158 | } |
159 | 159 | else { |
160 | | - $html = wfMsgHtml( 'ep-course-no-instructors' ); |
| 160 | + $html = wfMsgHtml( 'ep-mc-no-instructors' ); |
161 | 161 | } |
162 | 162 | |
163 | 163 | return Html::rawElement( |
164 | 164 | 'div', |
165 | | - array( 'id' => 'ep-course-instructors' ), |
| 165 | + array( 'id' => 'ep-mc-instructors' ), |
166 | 166 | $html |
167 | 167 | ); |
168 | 168 | } |
— | — | @@ -192,7 +192,7 @@ |
193 | 193 | 'data-coursename' => $masterCourse->getField( 'name' ), |
194 | 194 | 'data-mode' => 'self', |
195 | 195 | ), |
196 | | - wfMsg( 'ep-course-become-instructor' ) |
| 196 | + wfMsg( 'ep-mc-become-instructor' ) |
197 | 197 | ); |
198 | 198 | } |
199 | 199 | |
— | — | @@ -205,7 +205,7 @@ |
206 | 206 | 'data-courseid' => $masterCourse->getId(), |
207 | 207 | 'data-coursename' => $masterCourse->getField( 'name' ), |
208 | 208 | ), |
209 | | - wfMsg( 'ep-course-add-instructor' ) |
| 209 | + wfMsg( 'ep-mc-add-instructor' ) |
210 | 210 | ); |
211 | 211 | } |
212 | 212 | |
Index: trunk/extensions/EducationProgram/includes/EPMCPager.php |
— | — | @@ -119,8 +119,8 @@ |
120 | 120 | 'type' => 'select', |
121 | 121 | 'options' => array( |
122 | 122 | '' => '', |
123 | | - wfMsg( 'epcoursepager-yes' ) => '1', |
124 | | - wfMsg( 'epcoursepager-no' ) => '0', |
| 123 | + wfMsg( 'epmcpager-yes' ) => '1', |
| 124 | + wfMsg( 'epmcpager-no' ) => '0', |
125 | 125 | ), |
126 | 126 | 'value' => '', |
127 | 127 | ), |
Index: trunk/extensions/EducationProgram/includes/EPCoursePager.php |
— | — | @@ -184,7 +184,7 @@ |
185 | 185 | wfMsgHtml( 'view' ) |
186 | 186 | ); |
187 | 187 | |
188 | | - if ( $this->getUser()->isAllowed( 'ep-term' ) ) { |
| 188 | + if ( $this->getUser()->isAllowed( 'ep-course' ) ) { |
189 | 189 | $links[] = $value = Linker::linkKnown( |
190 | 190 | SpecialPage::getTitleFor( 'EditCourse', $item->getId() ), |
191 | 191 | wfMsgHtml( 'edit' ) |