Page MenuHomePhabricator

Radix/Decimal character configuration
Closed, ResolvedPublic

Description

Currently parserfunctions only support . as the decimal separator. This is highly annoying to some languages which use the , as the decimal separator. There should be a way to configure this under MediaWiki:Radix-character or something, so that locale's can use their own radix character.


Version: unspecified
Severity: enhancement

Details

Reference
bz20386

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:46 PM
bzimport added a project: ParserFunctions.
bzimport set Reference to bz20386.
bzimport added a subscriber: Unknown Object (MLST).

galder158 wrote:

If you can also e-mail me as I'm interested on this bug for developing a calculation on basque wikipedia I would be glad.

In my opinion this isn't a good idea, and it would not be possible to keep backwards compatibility. If you want users to be able to input localised numbers, convert them first ({{FORMATNUM:##|R}} can do something, but be aware it is not indented for that use).

I think the point was input AND output.

galder158 wrote:

In fact we have made the calculation using {{formatnum}}, but this is not the best solution, as for many users it's not intuitive to inter the area with a point instead of a comma and the population without punctuation. The result is OK, but all users must know this trick, and it's not very useful for most wikis.

  • This bug has been marked as a duplicate of bug 10454 ***