Last modified: 2007-11-28 15:24:39 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 11730 - Use $separatorTransformTable in convertPlural
Use $separatorTransformTable in convertPlural
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch
Depends on:
  Show dependency treegraph
Reported: 2007-10-21 14:28 UTC by Alexander Sigachov
Modified: 2007-11-28 15:24 UTC (History)
1 user (show)

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

patch for langs using convertPlural (5.71 KB, patch)
2007-10-21 14:28 UTC, Alexander Sigachov

Description Alexander Sigachov 2007-10-21 14:28:09 UTC
Created attachment 4273 [details]
patch for langs using convertPlural

Magic word "PLURAL" accepts points, commas and spaces in numbers and interprets them in a site-language-specific way (depending on $separatorTransformTable in MessagesXx.php)
Comment 1 Niklas Laxström 2007-10-22 19:01:26 UTC
As far as I know the parser already does it:
	static function plural( $parser, $text = '', $arg0 = null, $arg1 = null, $arg2 = null, $arg3 = null, $arg4 = null ) {
		$text = $parser->getFunctionLang()->parseFormattedNumber( $text );
		return $parser->getFunctionLang()->convertPlural( $text, $arg0, $arg1, $arg2, $arg3, $arg4 );

So I'm puzzled why the are hacks in the language files at all.
Comment 2 Niklas Laxström 2007-11-28 15:24:39 UTC
Hacks are removed and parser indeed should normalize the numbers.

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