Hi all, I have a question regarding internationalization for drupal 7. Suppose we have a bilingual site with a language switcher block.
Will we be able to display articles from the selected language only? (ie. currently if we have a post with its translation, both will show up regardless the selected language).

Thanks in advance.

Paul

Comments

WorldFallz’s picture

Since d7 is still in alpha and there's no d7 version of i18n there's no way to know.

bitsman’s picture

This is not correct. In D6 with i18n, if you go to yoursite/admin/settings/language/i18n, you can select "Content selection mode" to "Current language and language neutral" or "Only current language". So only one node will show up.

kadimi’s picture

The module 18in does this

usep.rusnandar’s picture

Use Views

You can use views event its still in dev status. Just Enable frontpage view and add Filter
Node translation: Language = Current user's language

In Site Information set default font page to path from views (eg. /frontpage)

awm’s picture

Just came across this discussion. have you find a way to have the language switcher and display the appropriate content based on the user's selection in D7.
Also, it would be really helpful if you can later share you experiences on http://groups.drupal.org/node/118094
Cheers
I tried to post this as a reply to your thread but kept getting this message "Your submission has triggered the spam filter and will not be accepted."

jgoge’s picture

Go to /admin/config/regional/language/language_switcher (Configuration -> Languages -> Language Switcher)

There are three options:
Only current language.
Selected languages from language block.
All content. No language conditions apply.

holden321’s picture

I can't see any of these:

admin/settings/language/i18n
with options
--Content selection mode
--Current language and language neutral
--Only current language

/admin/config/regional/language/language_switcher
with options
--Only current language.
--Selected languages from language block.
--All content. No language conditions apply.

But I have i18n installed and see the block that swithes languages

bartl’s picture

I came across this thread when Googling for this problem, so I guess others will, too. I did find the solution: you need to enable the module "Multilingual select" (drush: drush en i18n_select) which comes with the Internationalization module (i18n). Bingo: instant fix. You get an extra tab under Multilingual settings, but I believe the default setting is fine (select per language: enabled).

Anonymous’s picture

To see

/admin/config/regional/language/language_switcher
with options
--Only current language.
--Selected languages from language block.
--All content. No language conditions apply.

you need the "Language Switcher" module http://drupal.org/project/language_switcher

Once you have it enabled, you'll be able to see these options and then you'll be able to see the menu for the selected language only

lil123’s picture

Hi,

I succeeded in configuring my drupal to display only the translation corresponding to the language switcher's selected choice.

But what I need is to display all articles. Suppose I have a first article translated in english, french and russian and a second article translated only in english and french.

If the user chooses "french", I want the two articles displayed in french. But if the user chooses "russian", I want also the two articles displayed. In that case, the first article should be displayed in russian and the second should be displayed in english.

Is it possible to do that?

lil123’s picture

any idea?