Skip to content

Commit 58d3c57

Browse files
gagarineweaverryan
authored andcommitted
Use the passed variable in the translated text.
1 parent 1b417c5 commit 58d3c57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/translation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ You can also specify the message domain and pass some additional variables:
746746
{% trans with {'%name%': 'Fabien'} from "app" into "fr" %}Hello %name%{% endtrans %}
747747
748748
{% transchoice count with {'%name%': 'Fabien'} from "app" %}
749-
{0} There is no apples|{1} There is one apple|]1,Inf] There are %count% apples
749+
{0} %name%, there is no apples|{1} %name%, there is one apple|]1,Inf] %name%, there are %count% apples
750750
{% endtranschoice %}
751751
752752
The ``trans`` and ``transchoice`` filters can be used to translate *variable

0 commit comments

Comments
 (0)