Hi, I want to have a different menu displayed on my page depending on which language is selected.

The idea is to have the following PHP query in my page.php.tpl:

IF (language is english) PRINT (menu a)
ELSE print (menu b)

How do I do this with Drupal 6 only core modules installed?

I have a very basic drupal 6 2-language installation, you can see it here: www.ip-lex.de

Thanks in advance!

Comments

jpewert’s picture

Ok, so I found this page on drupal.org:

http://drupal.org/node/222199

It suggests using the following code, but entering it in the blocks preferences (only show if the following php returns "true") does not work. Is $locale still basically the right variable I have to go for?

global $locale;
if($locale=='ja') return TRUE;
return FALSE;

Any other way to identify a language? I also tried another way:

I chose "Show on every page except the listed pages" on the blocks page an entered the page "en/*", which I thought would rule out all pages under the submenu /en/, which I use for the English language version, but it didn't.