* status: new => closed
* resolution: => duplicate
Comment:
Looks like this is a duplicate of #24167 — Please follow-up Alex if
investigation there reveals not.
--
Ticket URL: <https://code.djangoproject.com/ticket/33554#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Carlton Gibson):
Hi Alex. Hmmm...
So, question, why is this not an issue for Jinga? (Or, equally, what could
Django do about this?) 🤔
--
Ticket URL: <https://code.djangoproject.com/ticket/33554#comment:1>
Below is an example of it working:
`{{ _('Hello World') }}` - This works fine and `'Hello World'` is added to
the translatable strings. This example has a token type VAR.
Below are 3 examples of it not working:
`{{ _('Hello World') + _('Foobar') }}` - `'Hello World'` is added to the
translatable strings but `'Foobar'` is not. This example has a token type
VAR. Seems to be only trying to find one word to match with and that's it,
should be finding all possible words.
`{{ foo(_('Hello World'), _('Foobar')) }}` - Exact same as above example.
This is our common use case of this bug.
{{{
{{ _('Hello World') +
_('Foobar') }}
}}}
This example is a bit different as this doesn't find any of the words as
this is seen as a token type TEXT which gets ignored.
--
Ticket URL: <https://code.djangoproject.com/ticket/33554>