From 795c991fbd8b6e0849621cd10d787fbbc863dc9f Mon Sep 17 00:00:00 2001 From: Simon Perdrisat Date: Fri, 22 Mar 2013 11:02:33 +0100 Subject: [PATCH] Use the passed variable in the translated text. --- book/translation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/translation.rst b/book/translation.rst index f0e2277cb83..7f78b273edd 100644 --- a/book/translation.rst +++ b/book/translation.rst @@ -775,7 +775,7 @@ You can also specify the message domain and pass some additional variables: {% trans with {'%name%': 'Fabien'} from "app" into "fr" %}Hello %name%{% endtrans %} {% transchoice count with {'%name%': 'Fabien'} from "app" %} - {0} There is no apples|{1} There is one apple|]1,Inf] There are %count% apples + {0} %name%, there is no apples|{1} %name%, there is one apple|]1,Inf] %name%, there are %count% apples {% endtranschoice %} .. _book-translation-filters: