added version information in the doc

This commit is contained in:
Fabien Potencier
2010-08-13 19:17:13 +02:00
parent 1eef779e00
commit 5adc74c5dd
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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) }}
+2 -1
View File
@@ -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 #}