Hi,
 I had a similar issue and solve by renaming the translation files in

messages.en_EN.php
messages.de_DE.php
messages.en_US.php

but still don't know why it doesn't work with just 'en'.

Bye
--
Alberto

On Nov 14, 6:04 pm, Bertrand Zuchuat <[email protected]> wrote:
> Hi,
>
> I would like to use the translation on my test project but i have some 
> problems.
>
> i make my dictionary into 
> src/Application/myAppBundle/Resources/translations/messages.en.php.
> content of this file:
>
> return array(
>   'A propos' => 'About',
>   'Quitter' => 'Quit',
> );
>
> my config:
>
> app.config:
>     translator:         { fallback: fr_CH }
>     ...
>
> In my template, i use this code: <?php echo 
> $view['translator']->trans('Quitter'); ?>
> but the translation doesn't work.
>
> To switch the user language, i use in my action:
> $this['request']->getSession()->setLocale('en_US');
>
> Thanks for your help
>
> Bertrand

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to