#19300: capfirst filter breaks translation context in template
---------------------------------+------------------------------------
Reporter: dyve | Owner: nobody
Type: Bug | Status: new
Component: Template system | Version: 1.4
Severity: Normal | Keywords: trans context capfirst
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+------------------------------------
Using the cap first filter breaks any context used in translation using
the trans template tag.
{% trans "species" context "singular" %}
# works as expected, results in translation of 'species' with context
'singular'
{% trans "species"|capfirst %}
# works as expected, results in translation of 'species' without context,
capfirst applied
{% trans "species"|capfirst context "singular" %}
# BROKEN, results in translation of 'species' without context, capfirst
applied
--
Ticket URL: <https://code.djangoproject.com/ticket/19300>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.