By doomed on
Hello, i have the following menu (Primary Links):
- Home (set as english) - points to front
- Inicio (set portuguese) - points to front
- Contacts (not set, neutral) - points to contact
This menu appears on two areas of my theme:
- One is hardcoded on the top of my page - this one does not work well and is the reason of this post.
I believe this is the code that shows the menu:
<?php if (isset($primary_links)) { print theme('links', $primary_links, array('class' =>'links', 'id' => 'primary-links')); } ?>
- The second is a block and stays on my left bar - this one works well.
What doesnt work well you ask?
The problem is that all three items appear at the same time, even i'm forcing the language by going to mydrupalsite.xxx/en or mydrupasite.xxx/pt-pt .
I want only two items to appear at one time.
In fact, this is working well on the second coming of the menu (as i said, on the left bar).
Comments
posting the entire page-front.php.tpl
Just in case:
what are ur i18n settings? if
what are ur i18n settings?
if not, set them to "show active language and no language" or something like that
and uhm... node_load in page.tpl.php is rly bad, should be no php in there but stuff like
rest should be handled in template.php, u can see how messy this is
Thanks, but i didnt really
Thanks, but i didnt really understand your post.
Yes, i'm using i18n 6.x-1.0.
No, there's no option like "show active language and no language" .
There's not much i can do about the rest of the code in the template page, no matter how ugly it is. I mean, that's not the concern right now.
Anyway, I just found this is happening with all themes. So it's probably something very simple to fix.
Ok, i've tried different
Ok, i've tried different themes and even created new menus.
Same behaviour.
The thing that bothers me is that the menu shown as a block works fine.
But the menu being shown as the Primary Links have this annoying problem of ignoring the language settings.
Since i dont know the
Since i dont know the solution for this problem, I have decided to have only one menu and translate via "Translate interface" on /admin/build/translate .