@diosmosis opened this Issue on May 26th 2012 Member

Piwik::getPrettyNumber, which turns 1000000 into 1,000,000 or 1.000.000 should be used on every numeric value in Piwik to make report data more readable. I think this can be done by:

  • Modifying existing prettify-ing functions so they make use of Piwik::getPrettyNumber.
  • Creating a generic DataTable filter that applies getPrettyNumber to metrics that have no unit (ie, visits). Would have to be applied by ViewDataTable, not the API.

Should probably be done after widget integration testing is up and running.

@mattab commented on May 28th 2012 Member

Sounds like a good plan! Alternatively we could do it in a Smarty filter with a regex... but hoooking in datatatable is doable too (and yes, not in the API result)

@mattab commented on December 14th 2012 Member

Merged in: #1254 (Nunber internationalization)

This Issue was closed on December 14th 2012
Powered by GitHub Issue Mirror