Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
plachThe 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.
Comment #2
TomGould01 CreditAttribution: TomGould01 commentedWould 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
Comment #3
TomGould01 CreditAttribution: TomGould01 commentedI 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.
Comment #4
plachAny 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() .
Comment #5
andiart CreditAttribution: andiart commentedI 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?
Comment #6
bforchhammer CreditAttribution: bforchhammer commentedSome related issues in the field collection queue, possibly duplicates:
Comment #7
bforchhammer CreditAttribution: bforchhammer commentedI 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...
Comment #8
malberts CreditAttribution: malberts commentedPlease review new patch: #1344672-13: Field Collection: Field translation (entity_translation) support..
Comment #9
plachComment #10
plachActually all the needed work is being done in:
#1865244: Allow multiple translation handlers on the same form
#1344672: Field Collection: Field translation (entity_translation) support.
Marking as duplicate.