From: Fabien Potencier Date: Fri, 13 Aug 2010 17:17:13 +0000 (+0200) Subject: added version information in the doc X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=5adc74c5dddbabc388d5f101681e34c3e67b6fdf;p=web%2Fkonrad%2Ftwig.git added version information in the doc --- 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 #}