Last modified: 2014-09-23 19:50:01 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 T42422, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40422 - Review and deploy FormatNum extension
Review and deploy FormatNum extension
Status: NEW
Product: Wikimedia
Classification: Unclassified
Extension setup (Other open bugs)
wmf-deployment
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
https://www.mediawiki.org/wiki/Extens...
: i18n
Depends on:
Blocks: 31235 32311 40386
  Show dependency treegraph
 
Reported: 2012-09-21 09:15 UTC by Dereckson
Modified: 2014-09-23 19:50 UTC (History)
8 users (show)

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


Attachments

Description Dereckson 2012-09-21 09:15:40 UTC
The FormatNum extension ([[mw:Extension:FormatNum]]) is a parser function extension adding new number formatting capabilities.

Two projects, sl.wikip and fa.wikip have requested it.

This extension should be reviewed and considered for deployment.
Comment 1 Dereckson 2012-09-22 22:35:37 UTC
I added the extension to https://www.mediawiki.org/wiki/Review_queue
Comment 2 Sumana Harihareswara 2012-09-24 14:26:19 UTC
The procedure at https://www.mediawiki.org/wiki/Writing_an_extension_for_deployment says that, since FormatNum is a user-facing feature, it needs a design review https://www.mediawiki.org/wiki/Writing_an_extension_for_deployment  . Can Dereckson or DaSch start getting that design review?

Thanks!
Comment 3 Platonides 2012-09-24 14:38:17 UTC
Why did slwiki and fawiki request it? Doesn't the core {{formatnum: }} work for them? (yes, there's a name clash, quite bad for the proposed extension)
If the number format configured for their language is wrong, it should be fixed in the language files, not workarounded with an extension.
Comment 4 Dereckson 2012-09-24 15:15:12 UTC
I don't know for fa., so I asked them recopying your question in this bug.

For sl., it's because they want to be able to format number with comma as thousand separator.

Note there could be other side reasons, as the bug 40186 description says: "Unlike English, our language uses commas as decimal mark, which is the main reason we need the extension."
Comment 5 Platonides 2012-09-24 16:26:18 UTC
> For sl., it's because they want to be able to format number with comma as
> thousand separator.
> 
> Note there could be other side reasons, as the bug 40186 description says:
> "Unlike English, our language uses commas as decimal mark, which is the main
> reason we need the extension."

Then the change should go into the message file.
Something like separatorTransformTable = array( ',' => '.', '.' => ',' ); [assuming they use . thousands mark ]
Wrong bug #?
Comment 6 reza1615 2012-09-25 04:39:52 UTC
as Dereckson said for fa.wiki we want to be able to format number with comma as
thousand separator as an additional option
Comment 7 Dereckson 2012-09-25 13:31:19 UTC
Platonides, with this new information, could you take in charge the design review and determines the cost/benefits to allow this extension or extend the core {{formatnum}}?
Comment 8 reza1615 2012-09-25 14:34:00 UTC
it will be useful in wikis that they need local number. it is used in many templates that they works with year numbers
I mentioned the details in bug 35753
In my opinion it could be extending {{formatnum}} because many wikis (Specially Asian languages) needs this option.According to maintenance it will be better to have similar wikis

with n variable it could be like {{formatnum:2010|n}}=> ۲۰۱۰
Comment 9 Greg Grossmeier 2013-08-30 22:27:54 UTC
Would this be something that would be a good fit for a Lua module?

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


Navigation
Links