Page MenuHomePhabricator

Use proper decimal and thousands separators
Closed, ResolvedPublic

Description

At least Special:Search shows the relevance in form 100.0 % while in many languages it should be 100,0 %.


Version: unspecified
Severity: normal

Details

Reference
bz10869

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:49 PM
bzimport set Reference to bz10869.
bzimport added a subscriber: Unknown Object (MLST).

Created attachment 3983
Format percent and size

This patch should does the job, but it's untested as I have no LuceneSearch 2.0 installed for my testwiki.

attachment LuceneSearch_formatnum.patch ignored as obsolete

One problem I see with this patch is that if [[MediaWiki:Searchsize]] is already customized (as for instance on English Wikipedia), then you'll get the KB or KiB or Ko or whatever's already there duplicated after the size marker that's added by the new code.

The best way to handle messages that are incompatible with previous versions is usually to change the message name, so the old customized value doesn't interfere with the new functionality. For instance, changing 'searchsize' to 'search-result-size' or similar would do the job.

Created attachment 4085
Format percent and size (Message renamed)

Message renamed per comment #2.

Attached:

[Merging "MediaWiki extensions/Lucene Search" into "Wikimedia/lucene-search2", see bug 46542. You can filter bugmail for: search-component-merge-20130326 ]