Closed (fixed)
Project:
Internationalization
Version:
7.x-1.x-dev
Component:
Synchronization
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Feb 2012 at 10:47 UTC
Updated:
28 Feb 2013 at 16:17 UTC
Jump to comment: Most recent file
Comments
Comment #1
C. Lee commentedMaybe #1046234: node reference issue with content translation is related.
Comment #2
C. Lee commentedThe workaround is implementing hooks:
Comment #3
webflo commentedTagging with i18n compatibility.
Comment #4
netsensei commentedYou actually don't need to create a separate module with you own i18n_sync_callback implementation:
i18n_sync.module should implement this:
And the references module needs the patch from #1046234: node reference issue with content translation
Done!
Comment #5
ThomasColliers commentedThank you C. Lee, your workaround module works like a charm.
Comment #6
aacraig commentedUntil i18n_sync actually implements the change mentioned in #4, you still need to create a separate module, unless you want to modify i18n_sync on your own.
#2 works great. Download and enable and you're done.
Comment #7
husumiao-1 commentedThe solution for #2 is perfect worked. Maybe you can also merge the code to i18n_sync module.
But why i still found it's doesn't fixed on 7.x-1.x-dev version for i18n(It's updated on date 2012-Mar-22). Nobody hand up this issue?
In short, Thanks to C. Lee.
Comment #8
drupalok commenteddoes this work for Drupal 6 too?
Comment #9
jose reyero commentedThis looks pretty good. However we don't want i18n, which is meant to be an API module and deals mainly with Drupal core issues to be plagued with dependencies on other contributed modules.
So I've created a new module and put the code (with some changes) there, see https://drupal.org/sandbox/reyero/1511088
@C. Lee,
If you wish to become a maintainer of that new module, just let me know.
About the 'node reference' code in i18n_sync, I think we should get rid of it as it doesn't do anything at all, right?
This new module implements the whole thing so we don't need anymore i18n_sync_node_translation_nodereference_field() and i18n_sync_node_translation_reference_field()
If this patch is eventually committed to references we may be able to reuse some of it too and make the module smaller, #1046234: node reference issue with content translation
Comment #10
jose reyero commentedPlease give a try to this new module, http://drupal.org/project/i18n_contrib
Comment #12
finex commentedWhat about entity references? The suggested module (i18n_contrib) only works for node reference fields.
Comment #13
HakS commentedi18n_contrib now supports entity references in dev version.