@@ -102,9 +102,9 @@ for example, that you're translating a simple message from inside a controller::
102102
103103 public function indexAction()
104104 {
105- $t = $this->get('translator')->trans('Symfony2 is great');
105+ $translated = $this->get('translator')->trans('Symfony2 is great');
106106
107- return new Response($t );
107+ return new Response($translated );
108108 }
109109
110110When this code is executed, Symfony2 will attempt to translate the message
@@ -179,9 +179,9 @@ Sometimes, a message containing a variable needs to be translated::
179179
180180 public function indexAction($name)
181181 {
182- $t = $this->get('translator')->trans('Hello '.$name);
182+ $translated = $this->get('translator')->trans('Hello '.$name);
183183
184- return new Response($t );
184+ return new Response($translated );
185185 }
186186
187187However, creating a translation for this string is impossible since the translator
@@ -195,12 +195,12 @@ variable with a "placeholder"::
195195
196196 public function indexAction($name)
197197 {
198- $t = $this->get('translator')->trans(
198+ $translated = $this->get('translator')->trans(
199199 'Hello %name%',
200200 array('%name%' => $name)
201201 );
202202
203- return new Response($t );
203+ return new Response($translated );
204204 }
205205
206206Symfony2 will now look for a translation of the raw message (``Hello %name% ``)
@@ -391,9 +391,9 @@ Symfony2 will discover these files and use them when translating either
391391 This example illustrates the two different philosophies when creating
392392 messages to be translated::
393393
394- $t = $translator->trans('Symfony2 is great');
394+ $translated = $translator->trans('Symfony2 is great');
395395
396- $t = $translator->trans('symfony2.great');
396+ $translated = $translator->trans('symfony2.great');
397397
398398 In the first method, messages are written in the language of the default
399399 locale (English in this case). That message is then used as the "id"
@@ -648,7 +648,7 @@ all the forms as a string separated by a pipe (``|``)::
648648To translate pluralized messages, use the
649649:method: `Symfony\\ Component\\ Translation\\ Translator::transChoice ` method::
650650
651- $t = $this->get('translator')->transChoice(
651+ $translated = $this->get('translator')->transChoice(
652652 'There is one apple|There are %count% apples',
653653 10,
654654 array('%count%' => 10)
@@ -798,7 +798,7 @@ texts* and complex expressions:
798798 Using the translation tags or filters have the same effect, but with
799799 one subtle difference: automatic output escaping is only applied to
800800 translations using a filter. In other words, if you need to be sure
801- that your translated is *not * output escaped, you must apply the
801+ that your translated is *not * output escaped, you must apply the
802802 ``raw `` filter after the translation filter:
803803
804804 ..code-block ::jinja