https://bugzilla.wikimedia.org/show_bug.cgi?id=35523

       Web browser: ---
             Bug #: 35523
           Summary: data-sort-value in broadtable-fields doesn't consider
                    "," as decimal separator
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: Semantic MediaWiki
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---


If you have an ask statement which outputs a sortable table SMW adds
"data-sort-value"-attributes to the table cells. Unfortunately SMW itself
recognizes the "," in our properties as decimal separator but when passing the
value to the HTML-attribute it prints the decimal separator as ".". So a value
of "4,2" in an property is passed as "4.2" to the "data-sort-value"-attribute.

Now when using MW's JavaScript sort function it interprets the "." as "thousand
separator" (as it is in German) so it just ignores it which makes it interpret
the "4.2" as "42" and the resulting sorting is wrong.

Therefore SMW should use the correct locale when printing out the column value
to the "data-sort-value"-attribute.

Regards,
Chris

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to