real multi lingual forum

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

Hi
I am trying to use forum in a multi lingual site
the problem is that i don't want the end user to select the language , i want it to be selected automatically by the "context" - i mean by the forum language

i have set up 2 groups (one for each language)
forum/1 - English
forum/2 - Hebrew

so when the user uses English site for example and enters forum/1 and presses on "add forum topic" , he needs to select the language, and i want this to be automated

one way i can do this by is by hook_from_alter()
is there another way ?
am i the first who needs this ?

Thanks , Avior

Comments

Well, you could submit it as

jax's picture

Well, you could submit it as a feature request for forum module. It seems reasonable to me that you would want that each topic has the same language as the container.

Question

avior's picture

Does any one can tell if other forum modules supports this feature ?

what's wrong with using

yhager's picture

what's wrong with using hook_form_alter() for this?

There's nothing wrong with

jax's picture

There's nothing wrong with using hook_form_alter(). It would just be nice to integrate this directly into the forum module by opening a feature request against it. And if the submitter can develop he can provide a patch in stead of developing a separate little utility module for his own site.

new i18n helper module ?

avior's picture

After investigating this, i have found that this is a general issue in multi lingual sites and effects all node types , not just forums

current state : when a user is adding a node he gets the language selection dropdown

when a regular user logs in and working in EN the lang is auto set to english
when a user is using the hebrew inteface the language is auto set to hebrew

wouldn't it be great to have the lang dropdown (css) hidden (after the auto select)

My goal is to be able to auto select the language by the interface and don't show the lang dropdown to the end user

is this enough for a new i18n helper module

That certainly is an idea

jax's picture

That certainly is an idea but it is a different one than your forum problem.

The forum problem is: If a node has a parent node and that parent node has a language, make sure the node has the same language as the parent node. I can see how this could be important for books too.

The use case you describe now is also a possibility but is somewhat incompatible with the previous problem. Take the following example. You have two forums, one Hebrew and one English. When someone adds a topic to the English forum you want the language of the topic set to English. But what if the user switches the interface while composing the English topic? Now the topic should be Hebrew because the interface is Hebrew. You could make a module that fixes the language but I think it'll give issues.

I still think the first issue is a worthwhile feature request. It would be pretty easy to integrate this in the forum module but I'm thinking it should be integrated on a higher level to be able to solve the book problem as well.

This scenario does not apply

avior's picture

Jax Thanks for replying ,

I think that this scenario does not apply , the END user usually uses one language and does not switch, so the problem you described will not happen, but just in case :
I am talking about setting the default value to a language on NEW nodes only , after the user has saved the node , the language is set and the module will not change this

(and can add a check to see if administer node access set for this user than the lang will not be hidden)

this module can help to solve book or every node type issue

what do you say ?

Internationalization

Group organizers

Group categories

Group notifications

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