Page MenuHomePhabricator

Formatnum function fails for languages with space as 1000-separator
Closed, ResolvedPublic

Description

The formatnum function gives a wrong output in languages with a space as
1000-separator:

{{formatnum:123456}} = 123;psbn&456

Same effect on recentchanges and watchlist (sizechange)


Version: 1.9.x
Severity: normal
URL: http://ksh.wikipedia.org/wiki/Medmaacher:Raymond

Details

Reference
bz8474

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:32 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz8474.
bzimport added a subscriber: Unknown Object (MLST).

Created attachment 3011
Patch for LanguageKsh.php

I am unsure if this patch works or if I made nonsense...

Attached:

Patch is bad, but the existing code is horrendous.

Note that   is invalid for the output of formatNum(), which produces *text*
not HTML.

Fixed with r18872 by nikerabbit