Do not add thousands separators when formatting reference numbers

Bug: T253743
Change-Id: I8c4de963277895d7751d6bfe3c34ca6097ebe606
This commit is contained in:
Bartosz Dziewoński 2020-05-27 22:57:35 +02:00
parent 47b3d8fb1a
commit 1975cb3dcb
3 changed files with 2426 additions and 3 deletions

View file

@ -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";
}

View file

@ -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 )
);
}

File diff suppressed because one or more lines are too long