Index: trunk/extensions/SecurePoll/includes/entities/Election.php |
— | — | @@ -159,6 +159,7 @@ |
160 | 160 | * @return Status |
161 | 161 | */ |
162 | 162 | function getQualifiedStatus( $params ) { |
| 163 | + global $wgLang; |
163 | 164 | $props = $params['properties']; |
164 | 165 | $status = Status::newGood(); |
165 | 166 | |
— | — | @@ -166,14 +167,13 @@ |
167 | 168 | $minEdits = $this->getProperty( 'min-edits' ); |
168 | 169 | $edits = isset( $props['edit-count'] ) ? $props['edit-count'] : 0; |
169 | 170 | if ( $minEdits && $edits < $minEdits ) { |
170 | | - $status->fatal( 'securepoll-too-few-edits', $minEdits, $edits ); |
| 171 | + $status->fatal( 'securepoll-too-few-edits', $wgLang->formatNum( $minEdits), $wgLang->formatNum( $edits ) ); |
171 | 172 | } |
172 | 173 | |
173 | 174 | # Registration date |
174 | 175 | $maxDate = $this->getProperty( 'max-registration' ); |
175 | 176 | $date = isset( $props['registration'] ) ? $props['registration'] : 0; |
176 | 177 | if ( $maxDate && $date > $maxDate ) { |
177 | | - global $wgLang; |
178 | 178 | $status->fatal( |
179 | 179 | 'securepoll-too-new', |
180 | 180 | $wgLang->timeanddate( $maxDate ), |
— | — | @@ -193,7 +193,7 @@ |
194 | 194 | $centralBlockCount = isset( $props['central-block-count'] ) ? $props['central-block-count'] : 0; |
195 | 195 | $centralBlockThreshold = $this->getProperty( 'central-block-threshold', 1 ); |
196 | 196 | if ( $centralBlockCount >= $centralBlockThreshold ) { |
197 | | - $status->fatal( 'securepoll-blocked-centrally', $centralBlockThreshold ); |
| 197 | + $status->fatal( 'securepoll-blocked-centrally', $wgLang->formatNum( $centralBlockThreshold ) ); |
198 | 198 | } |
199 | 199 | |
200 | 200 | # Bot |