#35389: stringformat filter in template breaks numeric localization
-------------------------------------+-------------------------------------
     Reporter:  Danic                |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Template system      |                  Version:  5.0
     Severity:  Normal               |               Resolution:  invalid
     Keywords:  locale,              |             Triage Stage:
  localization                       |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

 * resolution:   => invalid
 * status:  new => closed

Comment:

 It's explicitly
 [https://docs.djangoproject.com/en/stable/ref/templates/builtins/#stringformat
 documented] that `stringformat`:

 > ''Formats the variable according to the argument, a **string formatting
 specifier**. This specifier uses the **printf-style String Formatting
 syntax**, with the exception that the leading “%” is dropped.''

 and in Python docs you will find that `.` is always used as a decimal
 separate. `localize/unlocalize` doesn't affect strings so everything works
 as expected.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35389#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018ef292e791-3271df28-3490-407c-9246-eeb7d352e43a-000000%40eu-central-1.amazonses.com.

Reply via email to