Index: trunk/extensions/Contest/Contest.i18n.php |
— | — | @@ -179,11 +179,10 @@ |
180 | 180 | 'contest-contest-reminder-send' => 'Send reminder', |
181 | 181 | 'contest-contest-reminder-cancel' => 'Cancel', |
182 | 182 | 'contest-contest-reminder-sending' => 'Sending...', |
183 | | - // We really want // {{PLURAL:$1|contestant|contestants}} here, but the JS i18n shizzle does not support it yet :/ |
184 | | - 'contest-contest-reminder-success' => 'Successfully sent the reminder e-mail to $1 contestants', |
| 183 | + 'contest-contest-reminder-success' => 'Successfully sent the reminder e-mail to $1 {{PLURAL:$1|contestant|contestants}}', |
185 | 184 | 'contest-contest-reminder-close' => 'Close', |
186 | 185 | 'contest-contest-reminder-retry' => 'Retry sending', |
187 | | - 'contest-contest-reminder-failed' => 'Could not send the reminder e-mails.', |
| 186 | + 'contest-contest-reminder-failed' => 'Could not send the reminder {{PLURAL:$1|e-mail|e-mails}}.', |
188 | 187 | 'contest-contest-reminder-subject' => 'Subject:', |
189 | 188 | |
190 | 189 | // Contestant pager |
Index: trunk/extensions/Contest/Contest.php |
— | — | @@ -175,7 +175,7 @@ |
176 | 176 | 'contest-contest-reminder-subject', |
177 | 177 | ), |
178 | 178 | 'dependencies' => array( |
179 | | - 'jquery.ui.button', 'jquery.ui.dialog', |
| 179 | + 'jquery.ui.button', 'jquery.ui.dialog', 'mediawiki.jqueryMsg', |
180 | 180 | ) |
181 | 181 | ); |
182 | 182 | |
Index: trunk/extensions/Contest/resources/contest.special.contest.js |
— | — | @@ -46,7 +46,7 @@ |
47 | 47 | |
48 | 48 | _this.sendReminder( function( data ) { |
49 | 49 | if ( data.success ) { |
50 | | - $dialog.text( mw.msg( 'contest-contest-reminder-success', data.contestantcount ) ); |
| 50 | + $dialog.msg( 'contest-contest-reminder-success', data.contestantcount ); |
51 | 51 | $send.remove(); |
52 | 52 | $cancel.button( 'option', 'label', mw.msg( 'contest-contest-reminder-close' ) ); |
53 | 53 | } |
— | — | @@ -54,7 +54,7 @@ |
55 | 55 | $send.button( 'option', 'label', mw.msg( 'contest-contest-reminder-retry' ) ); |
56 | 56 | $send.button( 'option', 'disabled', false ); |
57 | 57 | |
58 | | - alert( mw.msg( 'contest-contest-reminder-failed' ) ); |
| 58 | + alert( window.gM( 'contest-contest-reminder-failed', data.contestantcount ) ); |
59 | 59 | } |
60 | 60 | } ); |
61 | 61 | } |