Symfony 1.4 doctrine admin generator display i18n form fields?

I have done this before and I am not sure if this is the answer you are looking for but in order for Symfony to display i18n fields in the admin generator you need to add a line to each Form class in your project/lib folder For instance if you have a Form class in: myproject>/lib/form/doctrine/MyForm.class. Php Add this to the configure method like so: public function configure() { parent::configure(); // Add this line. $this->embedI18n(array('en', 'de')); ... } Change en and de to the languages you have set up.

You need to do this for every form object you have.

I have done this before and I am not sure if this is the answer you are looking for but in order for Symfony to display i18n fields in the admin generator you need to add a line to each Form class in your project/lib folder. For instance if you have a Form class in: /lib/form/doctrine/MyForm.class. Php Add this to the configure method like so: public function configure() { parent::configure(); // Add this line.

$this->embedI18n(array('en', 'de')); ... } Change en and de to the languages you have set up. You need to do this for every form object you have.

Read last line of my question again – palmic Dec 20 '10 at 22:24 Well I tied. And I have never heard of an i18n widget. Good luck.

– Peter D Dec 21 '10 at 16:02 BTW. Resolved my problem by letting default (~) generator. Yml setting and setting extrawidgets for my special attributes in form class, but it's not solution of this problem, so i'll let it open.

THX for your answer anyway! – palmic Dec 22 '10 at 10:08.

I had the same problem. Diving into the code, I saw that the i18n widgets are grouped into arrays where key are the culture name. So I tried to set them into my generator.

Yml: form: display: 'Name / Description (with translations)': en, es, fr, it And succes!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions