#17053 closed Cleanup/optimization (fixed)
Add a note about USE_THOUSAND_SEPARATOR in localization docs
Reported by: | Sergiy Kuzmenko | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.3 |
Severity: | Normal | Keywords: | |
Cc: | Sergiy Kuzmenko | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
I've had a bit of a difficult time figuring out why my numbers did not localize with thousand separator in templates. After poking around I've found my way around. I would like to add little clarification to the docs summarizing my findings.
Attachments (2)
Change History (9)
by , 13 years ago
Attachment: | localization-doc-patch.diff added |
---|
comment:1 by , 13 years ago
Cc: | added |
---|
comment:2 by , 13 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:3 by , 13 years ago
Patch needs improvement: | set |
---|
comment:4 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I've closed this ticket because there is proper annotation on https://docs.djangoproject.com/en/1.3/topics/i18n/localization/#creating-custom-format-files.
comment:5 by , 13 years ago
Patch needs improvement: | unset |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
The link above tell us how to apply custom formats. My patch was about enabling thousand separator. From the docs it looks like simply setting USE_L10N should do the trick. However this is not enough to trigger number formatting with thousand separator.
Adding new patch.
by , 13 years ago
Attachment: | formatting.txt.patch added |
---|
New patch because doc structure has changed.
comment:6 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
The patch does not apply, it looks as if the localization docs were re-arranged in [17026].