mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-27 16:30:12 +00:00
Do not add thousands separators when formatting reference numbers
Bug: T253743 Change-Id: I8c4de963277895d7751d6bfe3c34ca6097ebe606
This commit is contained in:
parent
47b3d8fb1a
commit
1975cb3dcb
|
@ -59,7 +59,7 @@ class FootnoteMarkFormatter {
|
|||
public function linkRef( Parser $parser, string $group, array $ref ) : string {
|
||||
$label = $this->getLinkLabel( $parser, $group, $ref['number'] );
|
||||
if ( $label === null ) {
|
||||
$label = $this->messageLocalizer->formatNum( $ref['number'] );
|
||||
$label = $this->messageLocalizer->localizeDigits( $ref['number'] );
|
||||
if ( $group !== Cite::DEFAULT_GROUP ) {
|
||||
$label = "$group $label";
|
||||
}
|
||||
|
|
|
@ -265,8 +265,8 @@ class ReferencesFormatter {
|
|||
int $max
|
||||
) : string {
|
||||
return $this->messageLocalizer->localizeDigits( $base ) .
|
||||
$this->messageLocalizer->formatNum(
|
||||
'.' .
|
||||
$this->messageLocalizer->formatNum( '.' ) .
|
||||
$this->messageLocalizer->localizeDigits(
|
||||
str_pad( (string)$offset, strlen( (string)$max ), '0', STR_PAD_LEFT )
|
||||
);
|
||||
}
|
||||
|
|
2423
tests/parser/1000References.txt
Normal file
2423
tests/parser/1000References.txt
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue