Last modified: 2007-11-28 15:24:39 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 T13730, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 11730 - Use $separatorTransformTable in convertPlural
Use $separatorTransformTable in convertPlural
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch
Depends on:
Blocks:
  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: ---


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

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.


Navigation
Links