Strange problem with Forums in a multilangual site - help please

Events happening in the community are now at Drupal community events on www.drupal.org.
menros's picture

Hello,

I’m building with Drupal 6.9 a multilingual (English, Hebrew, Arab, Greek & Turkish) site for a Middle Eastern NGO (http://b1.mideastpan.org).

Setting of a multilingual site with I18 pack was, for a non-programmer ‘Drupal newbie’, pretty straightforward. It seems that content translation and switching between interface & menu languages are working fine (Bravo).

After setting a forum, the following ‘strange’ problems appear:

Initially I’ve set the Forum content type to ‘Multilanguage enabled + translation’ which followed with the creation of 3 nodes for every new forum-topic node I tried to create.

I thought that this would be to complicated for me to tweak, so I continued to set the Forum content type to be language disabled but to allow input in all languages:

Multilingual support:
Disabled

Extended language support:
Extended - All defined languages will be allowed.

Which seems to generally work-
When you’re in English or in Arabic modes (/en/ or /ar/) You can go to Forum in the menu and post a new forum topic. Then you are returned safely and your topic will show on the forums. If you’ll switch languages ( /ar/-/en/-/he/ prefixes or with language switchers at the bottom of the pages), you’ll still see the forum post that was entered.

But, stangely, this doesn’t seem to work in Hebrew mode:
1. After posting a new forum topic in /he/ the menu gets messed-up.
2. In /he/ you wouldn’t see any forum topics (the lists will show 0).

tried to ‘reset to default’ the Forum content type…
disabled and reenabled the Forum module…
searched forums and the web…

no solution yet…

posted on Drupal's main forums too (http://drupal.org/node/362026)

any suggestions, insights or advises?

many thanks in advance,

menros

Comments

questions

pasqualle's picture
  1. what is the default language? (check: admin/settings/language)
  2. which languages are enabled? (check: admin/settings/language)
  3. what is the path prefix for Hebrew language? (check: admin/settings/language/edit/he)
  4. what is the path prefix for English language? (check: admin/settings/language/edit/en)
  5. what is set for the Language negotiation? (check: admin/settings/language/configure)

answers

menros's picture

hello
and thank you

  1. english.
  2. english, Hebrew & Arabic.
  3. he
  4. en
  5. Path prefix only, although it was before (i think till couple of days ago) on Path prefix with language fallback.

disabled Multilingual support

pasqualle's picture

Your language settings are fine.

I am not familiar with the "Extended language support" (as it is not part of the Drupal core, it comes from i18n) but when you set Multilingual support to Disabled, then the node will be saved with default language, what could explain why don't you see any Hebrew posts..

I would try to enable the multilingual support for forum content type, and try to use Drupal6 first without the i18n module.

I am having a similar

cronix's picture

I am having a similar problem. I have tried all language settings for the forum content type. My problem is that all forum posts are posted in my sites default language and not in the current site language.

You can set Extended - All defined languages will be allowed

But then you get a language drop-down and that is not what I need.

Any help is deeply appreciated.

node language

pasqualle's picture

all forum posts are posted in my sites default language and not in the current site language

yes, that is the Drupal's default behavior (when creating a non-multilingual node).

you get a language drop-down and that is not what I need

but you need to set the language. The only option to set the node language is with that language drop-down, or hook_form_alter on node_form..
check locale_form_alter() to see how can you modify the node language..

note: when you set the forum content type to multilingual you will see that language drop-down..

I have found an answer

cronix's picture

I have found an answer similar like this. But I am new to drupal module development. I have not found a module that implements what you are describing.

it's not a module

pasqualle's picture

it is a Drupal function to override any form in your own module..
http://api.drupal.org/api/function/hook_form_alter/6

But if you are new to Drupal development, then it probably won't help you. And I do not know about any module which would set the node language based on the active language (http://drupal.org/taxonomy/term/97), so the only option for now is that language drop-down..

I understand. But it would

cronix's picture

I understand. But it would be nice to have a simple module that implements the functionality that I need. I will give that a try I am afraid :-).

Drupal for Good

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: