Last modified: 2013-12-16 08:37:58 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 T36093, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34093 - jquery.tablesorter should guess decimal point and thousand separator from date string instead of global setting
jquery.tablesorter should guess decimal point and thousand separator from dat...
Status: NEW
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.19
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
http://translatewiki.net/sw/Special:J...
:
Depends on:
Blocks: 31601
  Show dependency treegraph
 
Reported: 2012-01-31 11:09 UTC by Michael M.
Modified: 2013-12-16 08:37 UTC (History)
8 users (show)

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


Attachments

Description Michael M. 2012-01-31 11:09:23 UTC
Running tests from the special page in a German wiki causes all tablesorter tests with numbers to fail, simply because
 wgSeparatorTransformTable = [",\t.",".\t,"]
transforms all the numbers before sorting. Set this variable explicitly in the tests.
It seems related to Bug 33903 in some way.
Comment 1 Antoine "hashar" Musso (WMF) 2012-03-16 08:15:33 UTC
Moving bug back in the pool.
Comment 2 Niklas Laxström 2012-03-16 08:37:13 UTC
Bunny jumps over the carrot (back to confirmed)
Comment 3 Krinkle 2012-07-03 16:36:31 UTC
Failing tests with a non-English uselang or content lang:

* jquery.tablesorter: Basic planet table: ascending radius
* jquery.tablesorter: Basic planet table: descending radius
* jquery.tablesorter: bug 8115: sort numbers with commas (ascending)
* jquery.tablesorter: bug 8115: sort numbers with commas (descending)

Moving bug from Unit tests to JavaScript and renaming bug accordingly. These failing tests are most likely an actual bug and not related to the unit test.
Comment 4 Michael M. 2012-07-14 08:23:45 UTC
*** Bug 38370 has been marked as a duplicate of this bug. ***
Comment 5 Michael M. 2012-07-14 08:31:10 UTC
Like bug 36991:
Currently the tablesorter just trust the global variable wgSeparatorTransformTable.
Instead the char used as decimal point should be guessed from the data where possible.
Only for cases like 1.234 (which could be either a German/Dutch/... number greater than one thousand or an Englisch/... number between 1 and 2) it should rely on that variable.
Comment 6 Niklas Laxström 2012-09-06 08:24:03 UTC
The bug title describes a solution or feature, not an bug. Setting priority to enhancement.
Comment 7 Umherirrender 2012-12-06 17:09:20 UTC
Setting page language to 'en' of that special page should help here. But I have no idea, how to do that for a special page.
Some php tests set the language to ensure, that special page links are equals to the expected string.
Comment 8 Bartosz Dziewoński 2013-11-12 20:20:27 UTC
(In reply to comment #5)
> Instead the char used as decimal point should be guessed from the data where
> possible.

I am positive that this is not possible in general. For example, how would you order 1,234.567 and 1.234,567? Either could mean '1.234567' or '1234.567' in different locales.

I suggest WONTFIX.
Comment 9 Umherirrender 2013-11-30 22:43:14 UTC
The tests where already fixed with Gerrit change #63482, but now broken again (but that is bug 57776). Not sure, if this bug is resolved with that patch.
Comment 10 Derk-Jan Hartman 2013-12-16 08:37:58 UTC
I think the best way to solve this is to have postfixes for the sorttype. You could have: date, date-dmy, date-mdy etc. That should solve a lot of problems.

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


Navigation
Links