Page MenuHomePhabricator

[S] MediaSearch: page size information displays Arabic numerals for UI languages with different numeral script
Closed, ResolvedPublic

Description

The similar issue was resolved for GrowthExperiments Guidance panel - T274379: Numbers on the help panel in bn wiki are Arabic numerals instead of Bengali numerals

  1. On Special:MediaSearch perform a search that returns some results in Categories and Pages and Other filters, e.g. Art.
  2. Change the UI language to Farsi or Bangla - the languages that do not use Arabic numerals. The page size information will be using Arabic numbers:
BanglaFarsi
Screen Shot 2021-02-11 at 4.43.03 PM.png (591×1 px, 69 KB)
Screen Shot 2021-02-11 at 3.23.21 PM.png (528×465 px, 51 KB)

Notes:

  • the page size information seems the only place that displays Arabic numerals. The result count, the word count, and the members/subcategories/files - all display the correct script.
  • when the page loads is seems that the numbers are displayed in correct script, but then get replaced with Arabic.

count_bytes2.gif (588×872 px, 48 KB)

  • the same issue is present on Other filter page

Screen Shot 2021-02-11 at 5.14.35 PM.png (620×1 px, 176 KB)

Acceptance Criteria:

  • All numbers in MediaSearch are translated properly

Event Timeline

The search landing page displays Arabic numerals for Bangla (but not for Farsi):

Screen Shot 2021-02-11 at 5.23.27 PM.png (328×1 px, 29 KB)

CBogen renamed this task from MediaSearch: page size information displays Arabic numerals for UI languages with different numeral script to [S] MediaSearch: page size information displays Arabic numerals for UI languages with different numeral script.Feb 24 2021, 5:40 PM
CBogen updated the task description. (Show Details)

Change 672546 had a related patch set uploaded (by Eric Gardner; owner: Eric Gardner):
[mediawiki/extensions/WikibaseMediaInfo@master] Use mw.language.convertNumber for digits in page size information

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

Change 672546 merged by jenkins-bot:
[mediawiki/extensions/WikibaseMediaInfo@master] Use mw.language.convertNumber for digits in page size information

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

Checked on commons betalabs - looks good.