Use commaList() for better i18n

This commit is contained in:
Raimond Spekking 2010-03-13 17:23:08 +00:00
parent 883bb4cdca
commit ac8439bd8a
3 changed files with 3 additions and 3 deletions

View file

@ -265,7 +265,7 @@ class SpecialAbuseLog extends SpecialPage {
foreach ( $actions as $action ) {
$displayActions[] = AbuseFilter::getActionDisplay( $action );
}
$actions_taken = implode( ', ', $displayActions );
$actions_taken = $wgLang->commaList( $displayActions );
}
$globalIndex = AbuseFilter::decodeGlobalName( $row->afl_filter );

View file

@ -215,7 +215,7 @@ class AbuseFilterPager extends TablePager {
foreach ( $actions as $action ) {
$displayActions[] = AbuseFilter::getActionDisplay( $action ); ;
}
return htmlspecialchars( implode( ', ', $displayActions ) );
return htmlspecialchars( $wgLang->commaList( $displayActions ) );
case 'af_enabled':
$statuses = array();
if ( $row->af_deleted )

View file

@ -70,7 +70,7 @@ class AbuseFilterViewRevert extends AbuseFilterView {
$sk->userLink( $result['userid'], $result['user'] ),
$result['action'],
$sk->link( $result['title'] ),
implode( ', ', $displayActions ),
$wgLang->commaList( $displayActions ),
$sk->link(
SpecialPage::getTitleFor( 'AbuseLog' ),
wfMsgNoTrans( 'abusefilter-log-detailslink' ),