Language selection (from block) doesn't filter content by language ?? (D6)

GiorgosK's picture

I was under the impression that when selecting a language, from the language selection block (in drupal6), the content is also filtered to display only the nodes in the selected language

This behaviour is also confirmed by this handbook page http://drupal.org/handbook/modules/translation

Use the language switcher block provided by locale module to allow users to select a language. If available, both the site interface and site content are presented in the language selected.

(maybe this is not really for drupal 6.x as it states ??)

I have also looked for any configuration setting that enables such a thing but found nothing ....

I finally filled out a bug report http://drupal.org/node/233242 but did not get any response yet ...

This is happening on a clean install so it could not be a bug originating from another module ...

What is your experience, am I missing something obvious ??

Login to post comments

Try selecting another setting for Content selection node

O_o - Wed, 2008-03-19 08:00

This might not solve your problem, but you could give it a try. Go to Administer -> Site Configuration -> Multilingual system. At the bottom of the page, expand Advanced settings and select "Only current and default languages and no language" for Content selection node. This is how I have configured it. Try other settings also if this does not solve your problem.

Mind that I do not promote my content to the frontpage as you do, so the case is a bit different from yours. I'm using Views/Panels for a custom frontpage. I'm running Drupal 5.7 with i18n 5.x-2.2 and have not tested this for Drupal 6.1.


0_o

GiorgosK's picture
GiorgosK - Sat, 2008-03-22 21:17

0_o
Administer -> Site Configuration -> Multilingual system
this does not exist in Drupal 6

You need the contributed module i18n
http://drupal.org/project/i18n


The same applies to translated menu items using i18n

nonsie's picture
nonsie - Fri, 2008-03-21 23:54

For example if you have a link to blogs (/blog) or to any other external site in your primary links and you want it to be displayed differently in different languages it will only show up in the default language in default language version and not at all in others. As long as a menu has it's own node its translated menu will show up. This definitely looks like a bug.

You can not have translated menus with D6 just out of the box.


nonsie

GiorgosK's picture
GiorgosK - Sat, 2008-03-22 21:06

nonsie
yes you translate menus in drupal 6 out of the box
please follow step by step
http://drupal.org/node/233242#comment-779408


translated menus yet not on correct chosen languages

nonsie's picture
nonsie - Wed, 2008-05-14 03:21

After some testing here's what I have discovered:
If a menu is created from admin->build->menu it can be translated but it will show up no matter what language is chosen on the site. For example create two primary menu items in different languages - both will show up in any display language chosen on the site.
If a menu is created from create node form it shows up in the language defined for the node.

I'm using D6.1 and i18n with language set to path+language callback and multilingual system set to only current language and no language


wow really old post

franckmercado - Tue, 2009-11-24 06:56

2009 and I am experiencing the same problem. If I create menus inside primary menu, from admin->build->menu all of them appear in every language but I I create a menu inside the node then the menu displays correctly in the defined language.

I've tried to figured this out but nothing works. Any help please?


hello,

drozzy's picture
drozzy - Mon, 2008-04-28 16:41

Hi,
I was wandering if this is the usual behaviour in 5.7?
I also find that the language switcher block only switches interface language.
Is there any way to switch both the Interface and the Content Languages at the same time?

Regards,
-VVvvvvvvv v v


I've created a new PHP block

drozzy's picture
drozzy - Mon, 2008-04-28 18:23

I've created a new PHP block with the following code:

  <?php //get listed links of languages
     
$query = drupal_query_string_encode($_GET, array('q'));
      print
theme('item_list', translation_get_links($_GET['q'], empty($query) ? NULL : $query));
 
?>

Source:
http://drupal.org/node/188269
-VVvvvvvvv v v