Questions tagged [a2lix-translation]
50 questions
0
votes
1 answer
What is the correct buildViolation property path when having translatable properties
I am not sure, what atPath() parametr to provide in this code:
/**
* @Assert\Callback
*/
public function validate(ExecutionContextInterface $context, $payload)
{
$title = $this->getTitle();
if ($this->getTitle() !== 'aaa') {
…

František Heča
- 386
- 3
- 16
0
votes
2 answers
A2LiX Translations validation not working when all fields are submited as empty
When I don't provide any of the translatable properties through my submit form, then I get no validation checking, even when I have implemented:
/**
* @Assert\Valid
*/
protected $translations;
In config.yml I have:
default_locale:…

František Heča
- 386
- 3
- 16
0
votes
2 answers
Symfony / a2lix_translations / customize
can someone help me.
How can I modify default template to bootstrap version?
Because input's doesn't have a class "form-control".
Here is defaul:
{% block a2lix_translations_widget %}
{{ form_errors(form) }}
user3703456
0
votes
2 answers
A2Lix Translation Form in Sublime3
I am developing a multilanguage site in Symfony3 with KnpDoctrineExtension and a2lix/translation-form-bundle.
I followed the documentation both for KNP and A2Lix: controller and entities are OK but when I try to build and render the form I get a 500…

chieroz
- 63
- 8
0
votes
1 answer
Is required true possible with A2lix Translation Form?
I have an entity in My Symfony project with a field "brand' that is nullable false. I want it to be required true for the client side. However, it isn't working. Did something change in the bundle? I can't find what the problem is.
The entity:
/**
…

unadivadantan
- 363
- 4
- 14
0
votes
0 answers
A2lix form translation image upload in each translation
I am trying to upload image in each translation but it is not working
my translation entity is

Manoj
- 118
- 12
0
votes
1 answer
Symfony session cannot be retrieve in twig
I'm trying to make a two language app with symfony2.
I'm using Doctrine behavior and A2lixtranslationformbundle.
I have a listener which listen to change the locale:
namespace George\CoreBundle\EventListener;
use…

George Plamenov Georgiev
- 692
- 1
- 11
- 27
0
votes
1 answer
No relation between messages and messages_translation
I'm trying to get a multilingual site up with A2lix-i18 & a2lix-form, but I've seem to hit a bump.
I'm able to persist the records, but the translatable_id never gets set.
Any ideas on how this could be occuring?

nielsvermaut
- 71
- 1
- 1
- 5
0
votes
2 answers
A2lix form not working with KNP Doctrine Behaviors
I'm using A2lix translation form among with KNP Doctrine behaviors.
The fields are displayed correctly in the form and they're sent correctly as well (I've checked in the debug) but they're not saved in the database.
Here's my code:
Form Type
/**
…

petekaner
- 8,071
- 5
- 29
- 52
0
votes
1 answer
How to make queryBuilder in build form using A2lix Translated Entity
In a form, I'm trying to display an items list for the connected user using a2lix. When I try the code bellow, I get error.
Error message
Could not parse property path "translations[en].". Unexpected token "." at position 16
Part of build…

Benjamin Lucas
- 370
- 5
- 20
0
votes
0 answers
How to organise translation fields and commun fields using symfony a2lix and knp doctrine behaviors
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…

Benjamin Lucas
- 370
- 5
- 20
0
votes
3 answers
How to retrieve translation of a "sub entity" using Symfony a2lix knp doctrine behaviors translatable
I'm new in symfo but I need to translate content of my site.
I'm using a2lix (last version) and KNP doctrine behaviors (Translatable).
Let's say that I have 2 entities (e.g. Articles and Categories).
As in the doc…

Benjamin Lucas
- 370
- 5
- 20
0
votes
2 answers
Sonata admin with a2lix_translatable. How to do relationships?
I want to create table Pracownik which can contain zero or few instances of Zaklady and control it using Sonata Admin. Both of tables are translated using a2lix_translatable.
So I have classes:

Józef Curyłło
- 59
- 1
- 6
0
votes
1 answer
A2lix relations manytomany with entites
I translate my entities with A2LiX I18n Doctrine and edit/create it with A2lixTranslationBundle, but I have a problem with ontomany and manytomany relations.
Product.php
/**
* @ORM\ManyToMany(targetEntity="hello\PlatformBundle\Entity\Base",…

Ugo Mare
- 442
- 5
- 15
0
votes
1 answer
Sonata Admin & KNP Doctrine Behaviour Translations
We have configured the translations using Doctrine Behaviours. But in the sonata admin list view it displayed all the translations of the entity those are saved using the Doctrine behaviour. But we only need to show the current locale translations.…

Baran
- 1,114
- 1
- 10
- 25