I don't know if this is a bug or a setting that I missed..but here is my issue;
I enabled entity translation for articles.
When i create a new article, I see a language selection dropdown that is shows 'language neutral' by default.
(Would be nice to have the current users language preselected, but thats another issue I guess).
When I select Dutch, fill in title and body and hit save, the article is created, but no language is applied to it, no translation tab is visible.
When I edit that node, I see that the language selection dropdown is still 'language neutral'.
When I select Dutch again, and save, the node is finally showing the translate tab and has content assigned to a language.
What am I missing here?
Comments
Comment #1
plachThis is not the normal behavior and I've not experienced somehitng like this before. Have you installed any module that might mess with the node language widget?
Comment #2
GN CreditAttribution: GN commentedIt hasn't happened to me before, either, but now I see this problem, too.
I have not installed any new modules, only latest updates (Drupal, Views, Variable, etc.).
Comment #3
fricca CreditAttribution: fricca commentedI think this depends on a setting in i18n/Multilingual Content (/admin/config/regional/i18n/node):
For "Default language for content types with Multilingual support disabled." you have to use the first option "The site's default language (Default behaviour) "
With the second setting "Language neutral (Recommended)" you get the described behaviour.
For i18n, content with entity translation enabled seems to have no "Multilingual support". Which one causes this -- i18n or Entity Translation?
Comment #4
GN CreditAttribution: GN commentedYes, you are right, thank you - switching "Default language for content types with Multilingual support disabled" from "Language neutral (Recommended)" to "The site's default language (Default behaviour)" fixes this problem.
Formally, this should not affect entity-translated content types (because their "Multilingual support" setting is not "Disabled", it is "Enabled, with field translation"). But it does.
Comment #5
olafkarsten CreditAttribution: olafkarsten commentedI can confirm the issue, but not the "fix". If you change the settings, than the node will saved in the sites default language and not in language neutral. But if you select another language than sites default language in the node creation form, it will be ignored. So the bug is - the language selection on node creation will simple ignored. The saved node will have the language from the default settings (see #3). On node edit form it works.
Comment #6
olafkarsten CreditAttribution: olafkarsten commentedI have tried to reproduce this on a fresh drupal install with enabling some of the main modules like entity, i18n, views - but without luck. So I guess it's something in another module.
I'm willing to search further. Any Hints where to start debugging? I have stepped through the node validation process after submitting the node, but didn't find something. (BTW: This is really a crazy experience. ;) )
Comment #7
plachFirst of all I'd try and disable i18n_node to see if the problem is originated by some conflict with it as suggested in #3. If that doesn't work I'd just disable one module at a time and check whether things work properly. This should help to identifiy which module is conflicting with ET.
Comment #8
Yuri CreditAttribution: Yuri commentedI have checked this out..disabling modules one by one. In my drupal site I use internationalization and entity translation together. It's an organig groups site, which needs entity translation for the groups (to prevent multiple group id's for the same group). In the meanwhile, group content uses normal node translation. This is the most effective setup for my use case, as far as I know.
It appears that when the module 'multilingual content' is enabled, and a node is created that uses entity translation, the language field is ignored and the translate tab does not appear, just like the current issue describes.
When multilingual content module is disabled, a created node keeps its language setting and shows the translate tab. Hitting the translate tab shows the translation correctly.
Multilingual content is depending on internationalization and string translation, but with those modules enabled and multilingual content disabled, it still works correctly, so those are not causing this issue.
This is as far as my expertise goes, please have a look at this. Thanks.
Comment #9
Yuri CreditAttribution: Yuri commentedThe multilingual content module does this: http://drupal.org/node/1279644
Not an essential module, but still obvious in most cases (Set current language as default for new content, require language etc.)
Comment #10
olafkarsten CreditAttribution: olafkarsten commentedYes it is the i18n_node module. I think its _i18n_node_form_node_form_alter, which sets the language to neutral. fricca in #3 is right, with the settings. (I guess I forget a drush cc earlier one). So if you follow fricca's advice in #3, it should work.
Comment #11
Yuri CreditAttribution: Yuri commentedYes, i confirm that #2 works, although that should be a workaround, since many people will encounter this issue.
@olaf in #5 you write "But if you select another language than sites default language in the node creation form, it will be ignored".
I can't reproduce that, in my case also the non-default language set in the node creation form, is creating a translation correctly.
Comment #12
olafkarsten CreditAttribution: olafkarsten commentedYes #2/3 works. Was an cache issue I guess.
Comment #13
plachI suspect this might be fixed by http://drupalcode.org/project/entity_translation.git/tree/refs/heads/7.x... (click the snapshot link to get an installable package): it's the topic branch for #1280546: Introduce a language selection widget for every entity. Backup your site before installing!
Comment #14
bforchhammer CreditAttribution: bforchhammer commentedI think we now have the all features provided by "multilingual content" in ET core (correct my if I'm wrong)... can we close this as "works as designed"?
Comment #15
plachYes :)
Comment #16
MXTI'm very sorry to reopen this, but I'm using last entity_translation 7.x-1.0-beta2 version (2012-Nov-21) and the issue is still present.
Using workaround suggested in #3 all works fine, but:
Thank you very much for considering this.
(please ignore and close this if the issue have been already resolved in latest DEV)
Comment #17
plach#1852102: Clarify that Multilingual Content (i18n_node) and ET are not compatible :)
Comment #18
baso CreditAttribution: baso commentedFor Content types with option Multilingual support set to 'Disabled' (under Edit » Publishing options), #3 will make new content of these types have a specific language instead of an undefined language. I prefer to have an undefined language.
Furthermore, I understand that module Multilingual select (i18n_select) is incompatible with Entity Translation but I do want to use Multiligual content (i18n_node). See #18 in issue https://www.drupal.org/node/1852102.
To solve these problems, instead of #3 I use the following workaround:
This also solves issue https://www.drupal.org/node/2301649.
Comment #19
lmeurs CreditAttribution: lmeurs commentedAdded related issue, see #1662884: i18n_node_type_enabled is incompatible with Entity Translation (field translation) type.
Comment #20
rv0 CreditAttribution: rv0 commentedThe "fix" is in #23 here:
https://www.drupal.org/node/1852102#comment-9612303