From 335dbff81efc5c8d3af55561f8f4dc5e4c651005 Mon Sep 17 00:00:00 2001 From: Anne Haunime Date: Fri, 9 Aug 2024 05:58:23 +0000 Subject: [PATCH] Log entry IDs should not have thousands separators MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Per discussion, as a compromise (that I’m fine with), I’m leaving these IDs localized (i.e. the digits may be other than arabic), and I’m only removing the thousands separators. Bug: T348717 Change-Id: I77b484fec2071267c53a139104c23755a13f0129 --- includes/Special/SpecialAbuseLog.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Special/SpecialAbuseLog.php b/includes/Special/SpecialAbuseLog.php index 4976ab4d3..66de04639 100644 --- a/includes/Special/SpecialAbuseLog.php +++ b/includes/Special/SpecialAbuseLog.php @@ -775,7 +775,7 @@ class SpecialAbuseLog extends AbuseFilterSpecialPage { 'legend', [], $this->msg( 'abusefilter-log-details-legend' ) - ->numParams( $id ) + ->params( $this->getLanguage()->formatNumNoSeparators( $id ) ) ->text() ); $output .= Html::rawElement( 'p', [], $pager->doFormatRow( $row, false ) ); @@ -912,7 +912,7 @@ class SpecialAbuseLog extends AbuseFilterSpecialPage { ) . Html::rawElement( 'td', [], $linkRenderer->makeKnownLink( $this->getPageTitle( $row->afl_id ), - $this->getLanguage()->formatNum( $row->afl_id ) + $this->getLanguage()->formatNumNoSeparators( $row->afl_id ) ) ) );