Last modified: 2013-04-22 16:17:05 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 T37753, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35753 - Add a way to use {{FORMATNUM}} to just do digit transform
Add a way to use {{FORMATNUM}} to just do digit transform
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.20.x
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Pavel Selitskas [wizardist]
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-06 08:47 UTC by Niklas Laxström
Modified: 2013-04-22 16:17 UTC (History)
6 users (show)

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


Attachments

Description Niklas Laxström 2012-04-06 08:47:30 UTC
Currently {{FORMATNUM}} always adds thousand separators, even though in PHP you can avoid adding those.
Comment 1 reza1615 2012-09-25 04:31:02 UTC
it will useful for wikis that they needs to convert numbers to local numbers without thousand separators.

for example in fa.wiki converting year's number are not satisfactory 

{{formatnum:2011}}==>۲،۰۱۱

with an option it should be (n could be an option for No thousand separators)

{{formatnum:2011|n}}==>۲۰۱۱
Comment 2 Pavel Selitskas [wizardist] 2012-11-28 11:25:30 UTC
Added NC parameter for it in Gerrit change #35603, but something wrong with the testcase (probably non-breakable spaces messed).
Comment 3 Pavel Selitskas [wizardist] 2013-02-26 11:16:41 UTC
Ic882d5ba merged.

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


Navigation
Links