Questions tagged [a2lix-translation]
50 questions
2
votes
1 answer
A2LiX Translation on change language tab get language in form
I need language on change of A2LiX Translation tabs. If I click on "FR" then need to get Fr and on click of "NL" need Nl language in form builder ('Need Language Here').
For querybuilder in one field.
Is it possible to get the language in form type…

Shefali
- 490
- 4
- 16
2
votes
0 answers
Translations are not saved correctly using A2lix Translation + KnpLabs DoctrineBehaviors
In my Symfony project I use SonataAdminBundle and A2lixTranslationForm + KnpLabsDoctrineBehaviors bundles for multi-language support.
I have Serial and Episode entities which use standard OneToMany and ManyToOne relationship. I display episodes…

KTF
- 21
- 1
2
votes
1 answer
Using stof DoctrineExtension and a2lix TranslationFormBundle with one ext_translations table?
I know from this thread a2lix TranslationFormBundle AND Gedmo Doctrine Extension Translatable with just one Translation table that it's not possible with Gedmo (to have online one ext_translations table).
Maybe there is another option like using…

Jugali Lakota
- 88
- 9
2
votes
1 answer
Interface and Traits does not work properly
This is some weird behaviour I witnessed today and I wonder why.. I`ll get straight to the point:
So we are using a2lix translations with symfony and fos elasticabundle
class Class
{
use Translatable;
}
class ClassTranslation implements…

Filchev
- 224
- 1
- 12
2
votes
0 answers
Can't manage to work doctrine-translatable-bundle with symfony2
I read all documentation and examples at github, but i can't figure how to make doctrine-translatable-bundle + A2LiX Translation Form to work with my project.
This is my autoload.php

NTsvetkov
- 117
- 2
- 8
2
votes
0 answers
Making a A2lix translation field required in the front end in a Symfony form
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…

crmpicco
- 16,605
- 26
- 134
- 210
2
votes
1 answer
Upload file for each translation
I have a form with fields that are translated. One of this fields is a file, witch must to be uploaded (each language have different file).
I am using 'stof/doctrine-extensions-bundle' and 'a2lix/translation-form-bundle' and for uploading files…

What
- 83
- 1
- 2
- 6
2
votes
3 answers
How to order translated with not translated fields using doctrine knp translatable extentions with A2lix translation form?
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…

Hauke
- 257
- 4
- 12
1
vote
0 answers
How to override a template for a custom field in symfony (for edit in easyadmin)
I use A2lix for translation and I use easyadmin. I created a "TranslationField" :

Lionel
- 11
- 2
1
vote
1 answer
Unable to find the association target class
I'm using Symfony 3.4 and knp doctrine behaviors for translation.
My entity Article looks like:

repincln
- 2,029
- 5
- 24
- 34
1
vote
0 answers
Duplicate Entity with related translation
I am using Symfony 2.8 with some bundles installed
knplabs/doctrine-behaviors -> this is for softdelete
a2lix/translation-form-bundle -> this is for translation
CLASS Room
namespace AppBundle\Entity;
use Gedmo\Mapping\Annotation as Gedmo;
use…

user1272589
- 789
- 1
- 10
- 25
1
vote
2 answers
How to manage multidimensional array name of fields at server side validation with a2lix translation extension?
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…

jignesh prajapati
- 199
- 3
- 8
1
vote
2 answers
Could not determine access type for property "translations" in Symfony 3.2.* with Sonata admin project and Sonata translation bundle
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",
…

Nikunj Kabariya
- 840
- 5
- 14
1
vote
0 answers
Error using A2lix as an embedded form
I'm using A2lix Translation Form Bundle and Doctrine Behaviors Translatable in a project where I have two entities: company and files. Company has some translatable fields so I have a CompanyTranslations Entity for that. One company can have one…

ana-lu
- 269
- 1
- 3
- 12
1
vote
2 answers
Symfony2 embedded form, Class does not exist - A2lix translations
I'm using two entities in one form, ContentType in EstablishmentType. If I use only "classic" field type I got no errors. But when I add the field 'translations' with 'a2lix_translations_gedmo' as type in ContentType it return an ReflectionException…

Alain Provist
- 11
- 4