Index: trunk/extensions/Collection/Collection.php |
— | — | @@ -177,15 +177,13 @@ |
178 | 178 | $wgAjaxExportList[] = 'wfAjaxPostCollection'; |
179 | 179 | |
180 | 180 | function wfAjaxGetMWServeStatus( $collection_id = '', $writer = 'rl' ) { |
181 | | - global $wgLang; |
182 | | - |
183 | 181 | $json = new Services_JSON(); |
184 | 182 | $result = SpecialCollection::mwServeCommand( 'render_status', array( |
185 | 183 | 'collection_id' => $collection_id, |
186 | 184 | 'writer' => $writer |
187 | 185 | ) ); |
188 | 186 | if ( isset( $result['status']['progress'] ) ) { |
189 | | - $result['status']['progress'] = $wgLang->parseFormattedNumber( number_format( $result['status']['progress'], 2 ) ); |
| 187 | + $result['status']['progress'] = number_format( $result['status']['progress'], 2, '.', '' ); |
190 | 188 | } |
191 | 189 | $r = new AjaxResponse( $json->encode( $result ) ); |
192 | 190 | $r->setContentType( 'application/json' ); |
Index: trunk/extensions/Collection/Collection.templates.php |
— | — | @@ -349,7 +349,7 @@ |
350 | 350 | <span style="display:none" id="renderingArticle"><?php echo ' ' . wfMsg( 'coll-rendering_article', '%PARAM%' ) ?></span> |
351 | 351 | <span style="display:none" id="renderingPage"><?php echo ' ' . wfMsg( 'coll-rendering_page', '%PARAM%' ) ?></span> |
352 | 352 | |
353 | | -<?php echo wfMsg( 'coll-rendering_text', $GLOBALS['wgLang']->parseFormattedNumber( number_format( $this->data['progress'], 2 ) ), $this->data['status'] ) ?> |
| 353 | +<?php echo wfMsg( 'coll-rendering_text', number_format( $this->data['progress'], 2, '.', '' ), $this->data['status'] ) ?> |
354 | 354 | |
355 | 355 | <?php |
356 | 356 | if ( CollectionSession::isEnabled() ) { |