Field Collection Entities are not translatable because they do not have a path there are a few notices that get generated.

I found that marking them as translatable at admin/config/regional/entity_translation causes issues.

I am now working on a patched and modified version of the module with no notices and have marked these entities as not translatable.

Will these pathless entities become translatable ?

Comments

plach’s picture

Title: Field Collection Entities are not translatable » Field Collection integration
Version: 7.x-1.0-alpha1 » 7.x-1.x-dev
Category: bug » feature

Will these pathless entities become translatable ?

The first idea that comes to my mind is that their field could be translatable in the edit form of the parent entity, however proper integration with ET will need to be addressed by the Field collection module. What we can do here is introduce any change needed to make Field Collection integration straightforward.

TomGould01’s picture

Version: 7.x-1.x-dev » 7.x-1.0-alpha1
Category: feature » bug

Would a diff of the module to my copy be any use? we are using a modified & patched version of 7.x-1.x-dev

The mods are pretty minor, just an extra test in the entity_translation_menu_alter function and a patch

TomGould01’s picture

I would also maybe put a test in the form function on admin/config/regional/entity_translation page to make sure only entities that are not going to hit this problem are displayed as translatable but that is catering for other modules shortcomings i guess.

plach’s picture

Version: 7.x-1.0-alpha1 » 7.x-1.x-dev

Any patch is welcome if the modifications it introduces make sense, please be sure the problems you are experiencing are not related with #1341314: Nested call of entity_get_info() due to menu_get_router() in entity_translation_entity_info_alter() .

andiart’s picture

I get this notice as well. There is a tab for field translation in the entities' fields. I can translate all fields with labels/titles and values/field settings (e.g. in a html-select-element)

I'm not sure if these is afford of the title or the entity collection module, because there is no documentation of these modules as far as I can see.

My idea - if I'd got rid of the notice the translation will show up. I found a thread about a module, which implements the requirements of the entity translation module here: http://drupal.org/node/1587108#comment-6180310.

Or could you, plach kindly post a pathed version of the module here, if you succeeded?

bforchhammer’s picture

I haven't sorted through all the patches in the issues mentioned in #6, but it looks like respective patches are either for the old version of ET (current alpha2) or do not work at all.

To me it looks like the first step would be to properly register all base/edit paths for different field collection bundles. With #1418076: Allow for multiple base paths being committed this should now be possible.

One potential problem: ET currently requires the definition of a "default base path", and as far as I can see "field collection item" entities do not have one common base path. We might have to add an option to avoid adding a default path if it's not defined explicitly...

malberts’s picture

plach’s picture

Category: bug » feature
plach’s picture

Status: Active » Closed (duplicate)