By albertocirillo on
Hi People! I have a big problem: i'm not able to translate the main-menu of Bluemaster theme (drupal 7 - theme 1.1). The problem is that I can create a new menu in another language (btw all is setted correctly) but main-menu is a particular menu and so when i change language in my website, all elements change languages except for the main-menu component.
How I can resolve it? Help me!
Thanks a lot!
Comments
Hi Albertocirillo, Got the
Hi Albertocirillo,
Got the same problem using Bluemasters theme + i18n beta7, in my case the element "home" gets duplicated as well as "Contact". Did you solve this?
Need Urgent Help !!!
Hi my friends, I have the same problem.
I tried all the possible combinations both on i18n modules, localization etc.
Then I started to edit theme's php files and I found this:
It's handled by page.tpl.php (for pages, and 'front' file for the front page...)
For other places, our translation modules are handling those process by their own codes. (By looking their codes, they are able to select which menu links to display and which to not.) but that codes problem is that it handles it automatically so translation modules doesn't have a chance to read that menu's codes.
We should add a portion of codes in that code bulk that I showed. It should:
-Detect the current language,
-Hide the items those do not belong to taken language,
I'm not able to write something like this, maybe the guys who are responsible with the Bluemasters theme can help us...
--- May the Force be with us all ---
I have the same problem. I've
I have the same problem.
I've tried to replace the code in page.tpl.php with the code from built-in themes which goes like this:
and it worked but looked ugly. Still searching for a solution.
An easier way to fis this
The easiest way to fix this is by adding a new "navigation" block area to the theme. This is accomplished by adding a new region in the .info file of the theme. Add this line:
regions[navigation] = NavigationThen, in page--front.tpl.php and page.tpl.php you need to print this new region. In those files you will see something like this:
You just need to subtitute all that code by this:
Finally, go to the block admin page of your drupal and add the main menu block to the new "navigation" region.
Done
Thanks Robert, Yet easier
Thanks Robert,
Yet easier solution has been proposed here
thanks for share
thanks for share