From 5adc74c5dddbabc388d5f101681e34c3e67b6fdf Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 13 Aug 2010 19:17:13 +0200 Subject: [PATCH] added version information in the doc --- doc/02-Twig-for-Template-Designers.markdown | 2 +- doc/06-Recipes.markdown | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/02-Twig-for-Template-Designers.markdown b/doc/02-Twig-for-Template-Designers.markdown index 2eefee4..95a7a3a 100644 --- a/doc/02-Twig-for-Template-Designers.markdown +++ b/doc/02-Twig-for-Template-Designers.markdown @@ -882,7 +882,7 @@ Within the translatable string, the special `count` variable always contain the count value (here the value of `apple_count`). Within an expression or in a tag, you can use the `trans` filter to translate -simple strings or variables: +simple strings or variables (new in Twig 0.9.9): [twig] {{ var|default(default_value|trans) }} diff --git a/doc/06-Recipes.markdown b/doc/06-Recipes.markdown index 1ef180f..eb16080 100644 --- a/doc/06-Recipes.markdown +++ b/doc/06-Recipes.markdown @@ -249,7 +249,8 @@ Complex Translations within an Expression or Tag Translations can be done with both the `trans` tag and the `trans` filter. The filter is less powerful as it only works for simple variables or strings. For -more complex scenario, like pluralization, you can use a two-step strategy: +more complex scenario, like pluralization, you can use a two-step strategy +(new in Twig 0.9.9): [twig] {# assign the translation to a temporary variable #} -- 1.7.2.5