a2lix-translation

a2lix TranslationFormBundle AND Gedmo Doctrine Extension Translatable with just one Translation table

删除回忆录丶 提交于 2019-12-25 02:37:08
问题 I am trying to use the a2lix TranslationFormBundle ( https://github.com/a2lix/TranslationFormBundle ) with a Symfony2 project. I have been looking at docs and specifically at this demo: https://github.com/a2lix/Demo/tree/master/src/A2lix/DemoTranslationBundle I noticed all examples in both the doc and the demo use specific translation tables (end entity) for each translatable entity, as set in the class annotation with @Gedmo\TranslationEntity(class="A2lix\DemoTranslationBundle\Entity

Could not determine access type for property “translations” in Symfony 3.2.* with Sonata admin project and Sonata translation bundle

江枫思渺然 提交于 2019-12-24 07:56:33
问题 I have installed Sonata admin project in Symfony 3.2.* version. Components that are being used in my project from composer.json file are as following: composer.json file's package snippet "require": { "php": ">=5.5.9", "ext-pdo_sqlite": "*", "a2lix/i18n-doctrine-bundle": "^0.1.0", "a2lix/translation-form-bundle": "^2.1", "doctrine/doctrine-bundle": "^1.6", "doctrine/doctrine-cache-bundle": "^1.2", "doctrine/doctrine-fixtures-bundle": "^2.2", "doctrine/orm": "^2.5", "erusev/parsedown": "^1.5",

How to organise translation fields and commun fields using symfony a2lix and knp doctrine behaviors

别来无恙 提交于 2019-12-11 20:40:06
问题 After a lot of research and your helps, I can use A2lix and KNP doctrine behaviors translation. All seems to work fine but... I would like to organise my fields (those for translation and common). How can I only have ONE tabMenu translation (EN|FR|NL) for my full entity. Until now I found this documentation (How to order translated with not translated fields using doctrine knp translatable extentions with A2lix translation form?) but I always have Tabs for each translation field and no tab

How to order translated with not translated fields using doctrine knp translatable extentions with A2lix translation form?

微笑、不失礼 提交于 2019-12-11 03:02:37
问题 I'm searching for a simple way to edit translated fields within a symfony2 form. I'm using the doctrine knp translatable extentions for translation of the entity. The form mixes not translated with translated properties in a special order. The form should be displayed (end edit) only in the active language. For example: $builder ->add('key') ->add('translate1','text',array( 'property_path' => 'translations[de].translate1', )) ->add('mynumber') ->add('translate2','text',array( 'property_path'

Making a A2lix translation field required in the front end in a Symfony form

守給你的承諾、 提交于 2019-12-07 19:07:17
问题 Is there a way to make a A2lix translation field required and validated through the front-end in a Symfony form? I have tried adding a property of presentation and translations to my validation.yml file, but to no avail. I find that when I don't enter anything in the translation field the form doesn't submit, but nothing happens. No FE or BE error. My form: /** * {@inheritdoc} */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder ->add('translations', 'a2lix

Making a A2lix translation field required in the front end in a Symfony form

梦想与她 提交于 2019-12-06 15:56:17
Is there a way to make a A2lix translation field required and validated through the front-end in a Symfony form? I have tried adding a property of presentation and translations to my validation.yml file, but to no avail. I find that when I don't enter anything in the translation field the form doesn't submit, but nothing happens. No FE or BE error. My form: /** * {@inheritdoc} */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder ->add('translations', 'a2lix_translationsForms', array( 'form_type' => new CourseGuideTranslationType($this->dataClass . 'Translation

How to manage multidimensional array name of fields at server side validation with a2lix translation extension?

故事扮演 提交于 2019-12-02 13:37:49
问题 I am having two tables content_page and content_page_translations . When I build the form, form field name generated is like this: content_page[translations][en][pageTitle] Now, let me know how to manage multidimensional array server-side validation with this extension? 回答1: Please have a look at my solution with symfony 3. create validation.yml file in config directory containing following lines of code: AppBundle\Entity\ContentPages: properties: status: - NotBlank: message: cms.status.not