By pavloukos on
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
_
Since d7 is still in alpha and there's no d7 version of i18n there's no way to know.
Current language only
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.
The module 18in does this
The module 18in does this
Use Views You can use views
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)
Just came across this
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."
Go to Content Selection
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.
the same problem
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
Found it...
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).To
To see
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
Default language if no translation ?
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?
any idea?
any idea?