Index: trunk/extensions/EducationProgram/EducationProgram.i18n.php |
— | — | @@ -234,8 +234,8 @@ |
235 | 235 | // ep.pager |
236 | 236 | 'ep-pager-confirm-delete' => 'Are you sure you want to delete this item?', |
237 | 237 | 'ep-pager-delete-fail' => 'Could not delete this item.', |
238 | | - 'ep-pager-confirm-delete-selected' => 'Are you sure you want to delete the selected items?', |
239 | | - 'ep-pager-delete-selected-fail' => 'Could not delete the selected items.', |
| 238 | + 'ep-pager-confirm-delete-selected' => 'Are you sure you want to delete the selected {{PLURAL:$1|item|items}}?', |
| 239 | + 'ep-pager-delete-selected-fail' => 'Could not delete the selected {{PLURAL:$1|item|items}}.', |
240 | 240 | |
241 | 241 | // Special:Institution |
242 | 242 | 'ep-institution-none' => 'There is no institution with name "$1". See [[Special:Institution|here]] for a list of institutions.', |
Index: trunk/extensions/EducationProgram/EducationProgram.php |
— | — | @@ -206,6 +206,7 @@ |
207 | 207 | ), |
208 | 208 | 'dependencies' => array( |
209 | 209 | 'ep.api', |
| 210 | + 'mediawiki.jqueryMsg', |
210 | 211 | ), |
211 | 212 | 'messages' => array( |
212 | 213 | 'ep-pager-confirm-delete', |
Index: trunk/extensions/EducationProgram/resources/ep.pager.js |
— | — | @@ -43,7 +43,7 @@ |
44 | 44 | } |
45 | 45 | } |
46 | 46 | else { |
47 | | - alert( mw.msg( 'ep-pager-delete-fail' ) ); // TODO |
| 47 | + alert( mw.msg( 'ep-pager-delete-fail' ) ); |
48 | 48 | } |
49 | 49 | } |
50 | 50 | ); |
— | — | @@ -65,7 +65,7 @@ |
66 | 66 | ids.push( $( element ).val() ); |
67 | 67 | } ); |
68 | 68 | |
69 | | - if ( ids.length < 1 || !confirm( mw.msg( 'ep-pager-confirm-delete-selected' ) ) ) { |
| 69 | + if ( ids.length < 1 || !confirm( window.gM( 'ep-pager-confirm-delete-selected', ids.length ) ) ) { |
70 | 70 | return; |
71 | 71 | } |
72 | 72 | |
— | — | @@ -93,7 +93,7 @@ |
94 | 94 | } |
95 | 95 | } |
96 | 96 | else { |
97 | | - alert( mw.msg( 'ep-pager-delete-selected-fail' ) ); // TODO |
| 97 | + alert( window.gM( 'ep-pager-delete-selected-fail', ids.length ) ); |
98 | 98 | } |
99 | 99 | } |
100 | 100 | ); |