Page MenuHomePhabricator

Sort and #expr doesn't work on comma-separated decimals
Closed, ResolvedPublic

Description

Indonesian language is one of the language that uses dot to separate thousands and commas to separate decimals (opposite to US), and it didn't reflect well on sorting and #expr parserfunction. I've only tested it on 1.16, but I think I saw the same bug on 1.17. Not sure about 1.18 have been resolved or not. Will post examples as soon as I can find one.


Version: unspecified
Severity: normal

Details

Reference
bz32807

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:00 AM
bzimport set Reference to bz32807.
bzimport added a subscriber: Unknown Object (MLST).

Garbage in, garbage out. Please don't feed formatted numbers to #expr.

Please take a look at Indonesian Wiktionary's Main Page for example

http://id.wiktionary.org/w/index.php?title=Halaman_Utama&action=edit

In order to get the total number of Indonesian words & phrases, I have to add the two categories. To make it work, I have to multiply the {{PAGESINCATEGORY}} by 1000

[[:Kategori:Kata bahasa Indonesia|Indonesia]] ({{#expr:{{PAGESINCATEGORY:Kata bahasa Indonesia}}*1000+{{PAGESINCATEGORY:Frasa bahasa Indonesia}}}}) -

For the sorting error, it seems like it has been fixed on 1.18 (?)

Example here:

http://id.wiktionary.org/wiki/Wiktionary:Statistik

Use {{PAGESINCAT:Frasa bahasa Indonesia|R}} instead.

  • This bug has been marked as a duplicate of bug 34193 ***