Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Page MenuHomePhabricator

mediawiki.language should respect $wgTranslateNumerals in convertNumber()
Closed, ResolvedPublic

Description

In Arabic Wikipedia, in type="number" elements (see Main Page history for instance) and the 'N more languages' line of the Compact Language Links feature are displayed Eastern numerals (٠‎ ١‎ ٢‎) instead of conventional Western numerals (0 1 2).


See Also:
T64725: Use "ar-u-nu-latn" instead "ar" for whole Arabic Wikipedia or just for its <input type="number">

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:32 AM
bzimport set Reference to bz70109.

Thanks for taking the time to report this!

Confirming: On https://ar.wikipedia.org/w/index.php?title=الصفحة_الرئيسية&action=history this can be seen in the (من سنة (وأقدم field.

and the 'N more languages' line of the Compact Language Links

Might be a separate issue; not sure.

Also not sure which codebase this falls into; bug 62725 feels related.

My quick guess that it would in core, rather than in ULS.

It looks like the JavaScript implementation of number conversion ( mw.language.convertNumber() ) indeed doesn't check for $wgTranslateNumerals, so this affects not only ULS.

Niklas, Santhosh - you are more familiar with this JS code, am I correct or am I missing something?

gerritadmin wrote:

Change 164730 had a related patch set uploaded by Amire80:
Respect $wgTranslateNumerals in JavaScript

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

  • Bug 66383 has been marked as a duplicate of this bug. ***
Krinkle updated the task description. (Show Details)
Krinkle set Security to None.
Krinkle unsubscribed.

Change 164730 had a related patch set uploaded (by Bartosz Dziewoński):
mediawiki.language: Respect $wgTranslateNumerals in convertNumber()

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

Change 212942 had a related patch set uploaded (by Siebrand):
mediawiki.language: Respect $wgTranslateNumerals in convertNumber()

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

Change 164730 merged by jenkins-bot:
mediawiki.language: Respect $wgTranslateNumerals in convertNumber()

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

Change 212942 merged by jenkins-bot:
mediawiki.language: Respect $wgTranslateNumerals in convertNumber()

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

demon subscribed.

Done in master and backported for REL1_25.