Page MenuHomePhabricator

TranslationStats: Numbers in the graph are not properly formatted
Closed, ResolvedPublicBUG REPORT

Description

Steps to Reproduce:

  1. Go to https://translatewiki.net/w/i.php?title=Special%3ATranslationStats&preview=1&width=800&height=600&start=&days=30&scale=days&count=edits&mw-language-selector=aa&language=&mw-group-selector=ajapaik&group=
  2. Look at numbers on the Y-axes and tooltips

Actual Results:
Numbers are not formatted properly.

See:

Expected Results:
Expect numbers to be formatted properly as per language.

Implementation details

Use mw.language.convertNumber to do this.

Event Timeline

abi_ created this task.Sep 17 2020, 9:20 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 17 2020, 9:20 AM

Change 628058 had a related patch set uploaded (by Abijeet Patro; owner: Abijeet Patro):
[mediawiki/extensions/Translate@master] Show localized numbers in translation stats graph

https://gerrit.wikimedia.org/r/628058

abi_ added a comment.Sep 17 2020, 9:57 AM

Fixed locally.

Multiple datasets:

Single dataset:

Change 628058 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Show localized numbers in translation stats graph

https://gerrit.wikimedia.org/r/628058

abi_ closed this task as Resolved.Sep 28 2020, 10:55 AM

Deployed and tested on translatewiki.net