New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Number format thousands, decimal, abbreviate large numbers l10n #4114
Comments
Attachment: |
Maybe we could just display it as 22,990,872 (or 22.990.872 for German)? |
it would be awesome if we managed to run all numbers being output in Piwik. For example we could have a prettyNumeric() method which may use localeconv() function to get thousands+decimal separator for current selected language, and then use number_format() to build the string.
we could then apply this prettyNumeric() filter to all numbers found in the output of some key twig templates where applying this prettify makes sense. prettyNumeric() could also contain logic to abbreviate large numbers eg. 12.5M instead of 12,500,000 |
for nice looking numbers especially in columns see also: #4789 |
FYI: Number formatting is finally implemented in Piwik in #8857 ❤️ |
Can we close this, or are there stills tasks open for improving number formats? |
Well done Stefan! |
For sites with a lot of visits the numbers at some point get really hard to read. So instead of "22990872 visits" why not show "22.99 mio visits"?
The text was updated successfully, but these errors were encountered: