Changes between Version 3 and Version 4 of Ticket #25920, comment 2


Ignore:
Timestamp:
Dec 11, 2015, 7:14:53 PM (8 years ago)
Author:
Binoj David

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25920, comment 2

    v3 v4  
    1 There is a complication in adding en_IN. Number grouping in en_IN is not grouped on 'n' number of digits. First 3 (ones, tens and hundreds) are grouped as a single group and the remaining digits are grouped as 2 digits per group. This can be achieved with a NUMBER_GROUPING setting. So I don't think this can be fixed by adding a locale. I'm happy to help with a PR for the locale though, if there is a way to solve this problem.
     1There is a complication in adding en_IN. Number grouping in en_IN is not grouped on 'n' number of digits. First 3 (ones, tens and hundreds) are grouped as a single group and the remaining digits are grouped as 2 digits per group. This can't be achieved with a NUMBER_GROUPING setting. So I don't think this can be fixed by adding a locale. I'm happy to help with a PR for the locale though, if there is a way to solve this problem.
    22
    33Should format method in django.utils.numberformat be modified so that it accepts grouping also as a string and we can give GROUPING=3;2 in locale file? That is how grouping for en_IN is listed in http://lh.2xlibre.net/locale/en_IN/
Back to Top