You also need to pass a third parameter, a catalog - in your case it
is 'sf_admin'. The default is 'messages', so unless you specify
otherwise, symfony is looking for a translation in the 'messages'
file.

On Thu, Jul 1, 2010 at 21:03, fRAnKEnSTEin <shirkav...@gmail.com> wrote:
> hi there,
>
> I have added i18n support to my app's backend(generated using backend
> generator ), following next steps:
>
> 1- Create folder called "i18n" in my app's "backeng" folder
> 2- Copy/paste file called "sf_admin.es.xml" to  "i18n" folder just
> created
> 3- Set in apps/backend/config/settings.yml
>
> ...
> all:
>  .settings:
>        ...
>        ...
>        standard_helpers: ['Partial', 'I18N', 'Cache']
>        i18n: true
>        ...
>
> Now when i chage the language using the combobox, the language changes
> in all admin generator different parts, but the menu options that i
> have in my app like:
>
>  <?php echo link_to( __('Reservations'), '@something') ?>
>
> does not. in fact nothing but adim generator specific parts are
> translated(like filter section etc). for example if i just put some
> text like:
>
> <?php echo __('Reservations') ?>
>
> It does not work ether.
>
> Any idea why?
>
> Cheers
>
> --
> 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 symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to