﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
33554	Only first translation being found in Jinja handlebars when multiple strings are defined	Alex Ford	nobody	"When running makemessages on our project we found some strings were missing from translations in our Jinja files. After diving into ''utils/translation/template.py'' we found examples of where the translations were going wrong.

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. "	Bug	closed	Utilities	3.2	Normal	duplicate	translations, makemessages, jinja, handlebars, multiple strings		Unreviewed	0	0	0	0	0	0
