Language specific navigation menus?
-
Hi,
I read this article explaining how to have a menu for each language http://wiki.xiligroup.org/index.php/Xili-language:_navigation_menu#Appearance_Menus_Screen
I’ve read it more than once, but I don’t understand the instructions. I am a web developer, but I cannot understand what is being said, I think the article was not written by an English speaker.
I have followed the instruction of Case 1, the french translation of my english page is on my main menu.
Can someone please exlain to me how to remove translations from the main menu, and have a ‘french menu’ show up if the user wants the french content?
Thank you
-
thank you for the compliments to the author who has bothered to write the article in wiki 😉
If you are a web developer, I invite you to read the source of the example child theme named twentyeleven-xili… You will understand how menus location are cloned for each language… see http://2011.wpmu.xilione.com/download/
and this page http://wiki.xiligroup.org/index.php/Xili-language:_navigation_menu
Enjoy !
Thank you for your reply. I will follow your instructions.
I meant no offense or disrespect by saying the instructions were not clear, and I am sorry if it came across that way. I know a lot of work goes into creating plugins. I am merely trying to understand how this one works.
Thank you.
No offense, but that instruction is too hard to understand…
I’m reading the source code of twentyeleven-xili now…Hi!! I was having the same problem, but using qtranslate, I solved it using 2 navigation menus and calling each other with a drop down selection. Maybe you can adapt it to work with xili. Hope it helps!!
<nav id=”-main-menu”>
<?php
if(qtrans_getLanguage()==’en’) {
// put your code here if the current language code is ‘en’ (English)
wp_nav_menu( array(‘menu’ => ‘Nav_en’ ));} elseif(qtrans_getLanguage()==’es’) {
// put your code here if the current language code is ‘id’ (Español)
wp_nav_menu( array(‘menu’ => ‘Nav’ ));}?></nav><div> <?=qtrans_generateLanguageSelectCode(‘dropdown’);?> </div>
- The topic ‘Language specific navigation menus?’ is closed to new replies.