Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#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)

is_formatting.patch (1.1 KB ) - added by Sævar Öfjörð Magnússon 9 years ago.

Download all attachments as: .zip

Change History (4)

by Sævar Öfjörð Magnússon, 9 years ago

Attachment: is_formatting.patch added

comment:1 by Sævar Öfjörð Magnússon, 9 years ago

comment:2 by Claude Paroz <claude@…>, 9 years ago

Resolution: fixed
Status: newclosed

In d8de9a64:

Fixed #24478 -- Added NUMBER_GROUPING value for Icelandic

comment:3 by Claude Paroz <claude@…>, 9 years ago

In 8fe451d1:

[1.8.x] Fixed #24478 -- Added NUMBER_GROUPING value for Icelandic

Backport of d8de9a64d7 from master.

Note: See TracTickets for help on using tickets.
Back to Top