#24478 closed Bug (fixed)
Icelandic thousand separator not working without number grouping value
| Reported by: | Sævar Öfjörð Magnússon | Owned by: | nobody |
|---|---|---|---|
| Component: | Internationalization | Version: | 1.7 |
| Severity: | Normal | Keywords: | l10n localization |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description
The USE_THOUSAND_SEPARATOR setting is not working when format localizing Icelandic numbers.
A properly formatted number in Icelandic should be: 1.000.000,0 - however - when using the localize template tag to format numbers, no thousand separators appear. This is due to the fact that in django/utils/numberformat.py no grouping occurs unless there is a non-zero value for the NUMBER_GROUPING variable in the active locale.
This patch sets a default value for NUMBER_GROUPING = 3 to enable properly formatting of Icelandic numbers.
Attachments (1)
Change History (4)
by , 11 years ago
| Attachment: | is_formatting.patch added |
|---|
Pull request submitted: https://github.com/django/django/pull/4314