I am not sure how this is designed to work. In a multilingual site with content translation, nodes with an assigned language, set the language of their comments to their own. And even though the "Filter comments per language" checkbox is unchecked in the node content type, comments are not shown when the node is viewed while language is switched away from its own.

To replicate:

  1. Set content type of a node to support multilanguage through content translation and uncheck "Filter comments per language" in the type's comment settings.
  2. Switch to language 1.
  3. Create a node which is in language 1.
  4. Add comments to that node.
  5. View the node and you can see the comments.
  6. Switch to language 2. You cannot see the comments.
  7. Edit the node and switch its language to language 2.
  8. Switch to language 1. View the node and comments will not be there.
  9. Switch to language 2. View the node and comments are there.
  10. If you change node language to neutral, comments will be shown in both languages.

I would like comments to be language neutral and show in any interface language regardless of node language (I am using entity translation). I thought unchecking "Filter Comments Per Language" was enough to achieve this, but it seems it is not behaving in that expected manner.

Comments

elmadah’s picture

I'm getting the same error.

brainbowmedia’s picture

I have the same Issue. Any Ideas how to make comments "Language neutral"?

GiorgosK’s picture

Issue summary: View changes

Comments and view per language are still "Broken" in some sense as I understand it
Especially if used with entity_translation so I actually think that its a bug but it might be related to #2462457: Comments don't display

Entity translation would allow you to set comments language if properly set in admin/config/regional/entity_translation
but still the comments all appear ONLY on the original (source) language of the content regardless of the language of the comment
and despite the setting in each content type "Filter comments per language"

A workaround would be to use the actual core comments but display them using the https://www.drupal.org/project/eva

Settings summary
- in admin/config/regional/entity_translation in TRANSLATABLE ENTITY TYPES check comment save
- on the same screen for the comment for the content types that you want set "default language": "current language" and check "Hide language selector"
- you create a view with EVA field as display
- set the comment fields you want to appear in the view
- add filter for "Comment: Language" and set it to Current user's language
- go into the display settings of the node (admin/structure/types/manage/CONTENTTYPE/display) that you have setup EVA field to appear and arrange where exactly it should appear (its draggable like any other field)
- you still keep the core comment form
- but only problem is that core node still displays the comments its own default way. This can be solved with modifying the comment-wrapper.tpl.php and make it only print the comment form

<div id="comments" class="<?php print $classes; ?>"<?php print $attributes; ?>>
  <?php if ($content['comment_form']): ?>
    <h2 class="title comment-form"><?php print t('Add new comment'); ?></h2>
    <?php print render($content['comment_form']); ?>
  <?php endif; ?>
</div>

now you only need to theme the EVA field view

Version: 7.12 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.