well the title says it all.
I have a problem on my website. We have some content types that don't have multilanguage support enabled (such as Forum Threads) but I get the "Translation Note: The English version of this content is being displayed because the Italian translation is unavailable." message on those nodes too.
I'm not sure this is a bug or a feature request but shouldn't that message appear on content types that don't have multilanguage enabled?

Comments

Stefano’s picture

I'm not sure this is a bug or a feature request but shouldn't that message appear on content types that don't have multilanguage enabled?

I'm not sure this sentence really means what I wanted to say XD Sorry I'm Italian ^^
I meant that that Translation Note shouldn't appear on that kind of nodes

To solve this issue I have added a control using: translation_supported_type in the active_translation_nodeapi_view function. I'm still a newbie to Drupal programming so I'm not sure this is right (but it seems to work).
This is how the original code is:

function active_translation_nodeapi_view(&$node, $teaser, $page) {
  if ($page && !empty($node->language) && variable_get('active_translation_show_status', 1) ) {

and I have change it like this:

function active_translation_nodeapi_view(&$node, $teaser, $page) {
  if ($page && !empty($node->language) && variable_get('active_translation_show_status', 1) && translation_supported_type($node->type)) {