Closed fatmah closed 10 years ago
Hi you just have to add it in your parametres.yml like :
locales : [fr, en, de]
I will add a doc after my holiday
Hi,happy new year, no I have this param in my parameters.yml this exception appear when I try to edit a block from my admin thank you
Hi , the correct variable name is "presta_sonata_admin_extended_locales" it works for me
Hi,
Anyway there is a bug there.
First it should not appears in the block edition as locales is set at the page level. Sonata new block events as been made so I should refactor this part to have some thing cleaner.
But I maintains the "locales" parameter is the solution, I guess you don't have the last version of the bundle.
Just have a look there to checkout :
In 2014 I'll do my best to tag and make proper documentation of all this bundles
Nico
On 2 January 2014 16:14, fatmah notifications@github.com wrote:
Hi , the correct variable name is "presta_sonata_admin_extended_locales" it works for me
— Reply to this email directly or view it on GitHubhttps://github.com/prestaconcept/PrestaSonataGedmoDoctrineExtensionsBundle/issues/2#issuecomment-31458396 .
Hi, no i am using the last version
If it's any help:
f0220585c0943ae749a4f6ab31064bd3a85e5028
) and experience the same issuelocales
and presta_sonata_admin_extended.locales
set to an array of locale codes.presta_sonata_admin_extended_locales
(as suggested in the comments here) does not helplocales
variable in the template makes everything okay again.I don't understand enough of this yet to suggest a fix for this.
Hi, so finally I have time to do this.
So as I said presta_sonata_admin_extended.locales are for admin translations and locales for the front (so your entities too)
What you have to do is to make 'locales' global for twig like this :
twig:
global:
locales: %locales%
I will make a documentation for this and correct symfony-prestacms too.
Sorry for being so long....
hello, in "locale_switcher.html.twig" variable "locales" does not exist. thank you