[Django] #30119: Filter floatformat seems to ignore the localize off tag

6 views
Skip to first unread message

Django

unread,
Jan 19, 2019, 2:26:43 PM1/19/19
to django-...@googlegroups.com
#30119: Filter floatformat seems to ignore the localize off tag
-------------------------------------+-------------------------------------
Reporter: Marc | Owner: nobody
Parizeau |
Type: Bug | Status: new
Component: | Version: 2.1
Uncategorized | Keywords: localization
Severity: Normal | floatformat
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
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?

--
Ticket URL: <https://code.djangoproject.com/ticket/30119>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 20, 2019, 8:24:40 PM1/20/19
to django-...@googlegroups.com
#30119: Filter floatformat seems to ignore the localize off tag
-------------------------------------+-------------------------------------
Reporter: Marc Parizeau | Owner: nobody
Type: Bug | Status: closed
Component: Template system | Version: 2.1
Severity: Normal | Resolution: duplicate
Keywords: localization | Triage Stage:
floatformat | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* status: new => closed
* resolution: => duplicate
* component: Uncategorized => Template system


Comment:

Duplicate of #30086 which suggests to document the behavior.

--
Ticket URL: <https://code.djangoproject.com/ticket/30119#comment:1>

Reply all
Reply to author
Forward
0 new messages