Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Translation not working #59

Closed
cayman54 opened this issue Nov 7, 2014 · 7 comments
Closed

Translation not working #59

cayman54 opened this issue Nov 7, 2014 · 7 comments
Assignees
Labels
Milestone

Comments

@cayman54
Copy link

cayman54 commented Nov 7, 2014

Hello,

I successfully managed to install and use this bundle, but translation of datatable elements doesn't work.
I have the name of the text (for example datatables.datatable.lengthMenu or datatables.datatable.search) instead of the translation.

In app/config/config.yml I have :
translator: { fallback: %locale% }
default_locale: "%locale%"

Thanks for your help!

@stwe
Copy link
Owner

stwe commented Nov 8, 2014

same as #58

@stwe stwe closed this as completed Nov 8, 2014
@cayman54
Copy link
Author

cayman54 commented Nov 8, 2014

But the #58 is for symfony 2.6, I use symfony 2.3...

@stwe
Copy link
Owner

stwe commented Nov 8, 2014

The translation with 2.3 works properly. Try to clear app cache in app/cache dir. It's a very important for first time.

@stwe stwe added the bug label Nov 9, 2014
@stwe stwe added this to the v0.5.3 milestone Nov 9, 2014
@stwe stwe self-assigned this Nov 9, 2014
@cayman54
Copy link
Author

OK it was the cache. Thanks

@mrcmorales
Copy link

Hi,

For me in sf 2.5.* translations not works, cache is cleaned :)

Thanks

@fdelapena
Copy link
Contributor

@mrcmorales are you using the bultin getTranslator() or are you trying to inject translator (which is not needed)? I use this way, e.g.:

->add('name', 'column', array('title' => $this->getTranslator()->trans('Name'),))

Records des de molt lluny.

@mrcmorales
Copy link

@fdelapena I'm refereing to bundle translations, for example datatables.datatable.lengthMenu, length select isn't rendered neither.

Salut company! si que estàs lluny!!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants