mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
Use commaList() for better i18n
This commit is contained in:
parent
883bb4cdca
commit
ac8439bd8a
|
@ -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 );
|
||||
|
|
|
@ -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 )
|
||||
|
|
|
@ -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' ),
|
||||
|
|
Loading…
Reference in a new issue