• Here you are a tip to use multilanguage redirect into Menus.

    You need three plugins: qtranslate, qtranslate slug and Quick Page/Post Redirect Plugin.

    Steps:
    1. Create a page/post with content in multilanguage.
    2. Create a page without content in multilanguage.
    3. Redirect each slug of page without content to page/post with content.
    4. Add page without content into menu.

    Example:

    1. Write a page/post with content in multilanguage, in our example, the page has “equip” (catalan), “equipo” (spanish), “team” (english) for slug. Don’t type quotation mark into boxes.

    2. Write a page without content but with multilanguage titles. In our example, the page has “El nostre equip” (catalan), “Nuestro equipo” (spanish), “Our team” (english) for titles and “el-nostre-equip” (catalan), “nuestro-equipo” (spanish), “our-team” (english) for slug.

    3. Then you go to “Redirect Options”->”Quick Redirects” and type according our example the following:

    “Request” box -> “Destination” box
    /el-nostre-equip/ -> /equip/
    /nuestro-equipo/ -> /es/equipo/
    /our-team/ -> /en/team/

    Note: I use catalan as primary language and spanish and english as secondary languages.

    4. And finally we add “our-team” initial page into menu.

    Regards,
    Josep Comas

    http://wordpress.org/plugins/qtranslate-slug/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Josep:
    I’m not sure this actually solves my own little problem, but kudos for taking your time to sharing this inspiring piece of inventive thinking.
    Respect. 🙂

    Hi, I came across this post after all day of reaseach on custom link I was able to fix it by creating two menus, one in english (Nav_en) and one in spanish (Nav), which is also selected as default menu, and default language is Spanish. Then on Header.php I added this code:

    <?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 ‘es’ (Español)
    {
    wp_nav_menu( array(‘menu’ => ‘Nav’ ));
    }
    ?>
    Maybe this will work for someone too, Cheers!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multilanguage redirect into Menus’ is closed to new replies.