Opened 7 years ago
Closed 7 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 , 7 years ago
| Component: | Uncategorized → Template system |
|---|---|
| Resolution: | → duplicate |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Duplicate of #30086 which suggests to document the behavior.