Opened 6 years ago

Closed 6 years ago

#30119 closed Bug (duplicate)

Filter floatformat seems to ignore the localize off tag

Reported by: Marc Parizeau Owned by: nobody
Component: Template system Version: 2.1
Severity: Normal Keywords: localization floatformat
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Using the following localization config:

LANGUAGE_CODE = 'fr-ca'
USE_L10N = True

The following in a template:

{% localize off %}{{value}}{% endlocalize %}

produces an unlocalized float, but not:

{% localize off %}{{value|floatformat}}{% endlocalize %}

Is this expected behavior?

Change History (1)

comment:1 by Tim Graham, 6 years ago

Component: UncategorizedTemplate system
Resolution: duplicate
Status: newclosed

Duplicate of #30086 which suggests to document the behavior.

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