Last modified: 2014-11-13 08:46:42 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T72109, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70109 - mediawiki.language should respect $wgTranslateNumerals in convertNumber()
mediawiki.language should respect $wgTranslateNumerals in convertNumber()
Status: PATCH_TO_REVIEW
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
All All
: Normal normal (vote)
: 1.25.0 release
Assigned To: Krinkle
: i18n
: 66383 (view as bug list)
Depends on:
Blocks: 64793
  Show dependency treegraph
 
Reported: 2014-08-27 21:55 UTC by Zack
Modified: 2014-11-13 08:46 UTC (History)
17 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Zack 2014-08-27 21:55:52 UTC
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).
Comment 1 Andre Klapper 2014-08-28 15:03:55 UTC
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.
Comment 2 Amir E. Aharoni 2014-10-04 13:25:20 UTC
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?
Comment 3 Gerrit Notification Bot 2014-10-04 13:52:17 UTC
Change 164730 had a related patch set uploaded by Amire80:
Respect $wgTranslateNumerals in JavaScript

https://gerrit.wikimedia.org/r/164730
Comment 4 Amir E. Aharoni 2014-11-13 08:46:42 UTC
*** Bug 66383 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links