Last modified: 2007-01-07 15:54:57 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 T10474, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8474 - Formatnum function fails for languages with space as 1000-separator
Formatnum function fails for languages with space as 1000-separator
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
  Show dependency treegraph
Reported: 2007-01-03 23:08 UTC by Raimond Spekking
Modified: 2007-01-07 15:54 UTC (History)
0 users

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

Patch for LanguageKsh.php (536 bytes, patch)
2007-01-03 23:59 UTC, Raimond Spekking

Description Raimond Spekking 2007-01-03 23:08:15 UTC
The formatnum function gives a wrong output in languages with a space as

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

Same effect on recentchanges and watchlist (sizechange)
Comment 1 Raimond Spekking 2007-01-03 23:59:30 UTC
Created attachment 3011 [details]
Patch for LanguageKsh.php

I am unsure if this patch works or if I made nonsense...
Comment 2 Brion Vibber 2007-01-04 07:47:45 UTC
Patch is bad, but the existing code is horrendous.

Note that   is invalid for the output of formatNum(), which produces *text*
not HTML.
Comment 3 Raimond Spekking 2007-01-07 15:54:57 UTC
Fixed with r18872 by nikerabbit

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