Index: trunk/extensions/AbuseFilter/special/SpecialAbuseLog.php |
— | — | @@ -437,14 +437,11 @@ |
438 | 438 | WikiMap::getForeignURL( $wgAbuseFilterCentralDB, |
439 | 439 | 'Special:AbuseFilter/' . $globalIndex ); |
440 | 440 | |
441 | | - $linkText = wfMsgExt( 'abusefilter-log-detailedentry-global', |
442 | | - 'parseinline', array( $globalIndex ) ); |
443 | | - |
| 441 | + $linkText = wfMessage( 'abusefilter-log-detailedentry-global' )->numParams( $globalIndex )->escaped(); |
444 | 442 | $filterLink = $sk->makeExternalLink( $globalURL, $linkText ); |
445 | 443 | } else { |
446 | 444 | $title = SpecialPage::getTitleFor( 'AbuseFilter', $row->afl_filter ); |
447 | | - $linkText = wfMsgExt( 'abusefilter-log-detailedentry-local', |
448 | | - 'parseinline', array( $row->afl_filter ) ); |
| 445 | + $linkText = wfMessage( 'abusefilter-log-detailedentry-local' )->numParams( $row->afl_filter )->escaped(); |
449 | 446 | $filterLink = $sk->link( $title, $linkText ); |
450 | 447 | } |
451 | 448 | $description = wfMsgExt( 'abusefilter-log-detailedentry-meta', |
Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewList.php |
— | — | @@ -187,7 +187,7 @@ |
188 | 188 | switch( $name ) { |
189 | 189 | case 'af_id': |
190 | 190 | return Linker::link( |
191 | | - SpecialPage::getTitleFor( 'AbuseFilter', intval( $value ) ), intval( $value ) ); |
| 191 | + SpecialPage::getTitleFor( 'AbuseFilter', intval( $value ) ), $wgLang->formatNum( intval( $value ) ) ); |
192 | 192 | case 'af_public_comments': |
193 | 193 | return Linker::link( |
194 | 194 | SpecialPage::getTitleFor( 'AbuseFilter', intval( $row->af_id ) ), |
Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewHistory.php |
— | — | @@ -131,6 +131,9 @@ |
132 | 132 | $row = $this->mCurrentRow; |
133 | 133 | |
134 | 134 | switch( $name ) { |
| 135 | + case 'afh_filter': |
| 136 | + $formatted = $wgLang->formatNum ( $row->afh_filter ); |
| 137 | + break; |
135 | 138 | case 'afh_timestamp': |
136 | 139 | $title = SpecialPage::getTitleFor( 'AbuseFilter', |
137 | 140 | 'history/' . $row->afh_filter . '/item/' . $row->afh_id ); |
Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewEdit.php |
— | — | @@ -235,6 +235,8 @@ |
236 | 236 | } |
237 | 237 | |
238 | 238 | function buildFilterEditor( $error, $filter, $history_id = null ) { |
| 239 | + global $wgLang; |
| 240 | + |
239 | 241 | if ( $filter === null ) { |
240 | 242 | return false; |
241 | 243 | } |
— | — | @@ -278,7 +280,7 @@ |
279 | 281 | $fields = array(); |
280 | 282 | |
281 | 283 | $fields['abusefilter-edit-id'] = |
282 | | - $this->mFilter == 'new' ? wfMsg( 'abusefilter-edit-new' ) : $filter; |
| 284 | + $this->mFilter == 'new' ? wfMsg( 'abusefilter-edit-new' ) : $wgLang->formatNum( $filter ); |
283 | 285 | $fields['abusefilter-edit-description'] = |
284 | 286 | Xml::input( |
285 | 287 | 'wpFilterDescription', |