#24181 closed Bug (fixed)
THOUSAND_SEPARATOR strings are reversed
Reported by: | Kay Cha | Owned by: | Varun Sharma |
---|---|---|---|
Component: | Utilities | Version: | 1.7 |
Severity: | Normal | Keywords: | l10n |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | yes | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description (last modified by )
Hi.
numberformat moduler returns a reversed number as a string when THOUSAND_SEPARATOR has letters with l18n.
# mysite/formats/ko/formats.py THOUSAND_SEPARATOR = 'comma'
{% load humanize %} {{10000|intcomma}}
- current output : 10ammoc000
- correct output : 10comma000
Attachments (1)
Change History (14)
comment:1 by , 10 years ago
Description: | modified (diff) |
---|
comment:2 by , 10 years ago
Has patch: | set |
---|
comment:3 by , 10 years ago
comment:5 by , 10 years ago
Would you mind saying a bit more about that use case -- e.g. in what language or country it happens?
comment:6 by , 10 years ago
Oh, it was related to Korea and Korean, but only just for some people. So I don't think my case is normal.
(NUMBER_GROUPING=4
and THOUSAND_SEPARATOR
is assigned by one comma and one space for visibility)
Whether a length of THOUSAND_SEPARATOR
is 1 or not(THOUSAND_SEPARATOR
isn't restrcited by a length), the case is not my intention.
follow-up: 8 comment:7 by , 10 years ago
Why is "has patch" set? hannal, is there a patch somewhere?
comment:8 by , 10 years ago
https://github.com/hannal/django/commit/f610ca66c622e2fc8059c4c2960fe1a3897987c0
I'm sorry I didn't know how I can attach the patch with "has patch".
Replying to claudep:
Why is "has patch" set? hannal, is there a patch somewhere?
comment:9 by , 10 years ago
Component: | Uncategorized → Utilities |
---|---|
Easy pickings: | set |
Needs tests: | set |
Triage Stage: | Unreviewed → Accepted |
Thanks, could you write a test for it, please?
comment:10 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:12 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Is there a real use case for a
THOUSAND_SEPARATOR
of length > 1?