• Resolved kostasmorph13

    (@kostasmorph13)


    Hello,

    1 want to make a site in 2 languages using onetone.
    I installed a plugin like mqtranslate and works fine for pages.
    The thing is that i cannot have the onenote homepage menu work in 2 languages and also the homepage sections.

    Any help would be appreciated.
    Thank you in advance.

    Regards.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter kostasmorph13

    (@kostasmorph13)

    The key to that is that i must “take” the menu_title_ from the following sentence in 2 languages using mqtranslate or qtranslate.

    $options[] = array(‘name’ => __(‘Menu Title’, ‘onetone’),’id’ => ‘menu_title_’.$i.”,’type’ => ‘text’,’std’=>$section_menu[$i],’desc’=>’This title will display in the header menu. It is required’);

    Thank you.

    I’ve the same problem and for now I’ve solved with Google translator plugin

    Hi kostamorph13,

    Did you solved languages problem with onetone ? I have the same problem and I’m searching solution how to do fully multilanguage with onetone . If you found solution , can you share ?

    Theme Author MageeWP

    (@magictheme)

    Hello,

    In the menu slug, put English title there, then the no-english section name in the menu can be valid.

    Thread Starter kostasmorph13

    (@kostasmorph13)

    Hello Rimokas,

    I used mqtranslate and made some alternations to the code of header.php to solve my problem.
    After the following line in the header.php:
    $section_num = onetone_options_array( ‘section_num’ );

    add the following:

    IF (qtrans_getLanguage()==”EL”) {
    $kyrioarray[0]=’ΑΡΧΙΚΗ’;
    $kyrioarray[1]=’ΣΧΕΤΙΚΑ ΜΕ ΕΜΑΣ’;
    $kyrioarray[2]=’BUS TOURS’;
    $kyrioarray[3]=’BOAT TOURS’;
    $kyrioarray[4]=’ΔΙΟΡΓΑΝΩΣΕΙΣ ΓΑΜΩΝ’;
    $kyrioarray[5]=’MINI BUS LTS’;
    $kyrioarray[6]=’RENT A CAR’;
    $kyrioarray[7]=’ΕΠΙΚΟΙΝΩΝΙΑ & ΤΟΠΟΘΕΣΙΑ’;
    }
    else
    {
    $kyrioarray[0]=’HOME’;
    $kyrioarray[1]=’ABOUT US’;
    $kyrioarray[2]=’BUS TOURS’;
    $kyrioarray[3]=’BOAT TOURS’;
    $kyrioarray[4]=’WEDDING ORGANIZATION’;
    $kyrioarray[5]=’MINI BUS LTS’;
    $kyrioarray[6]=’RENT A CAR’;
    $kyrioarray[7]=’CONTACT & LOCATION’;
    }

    The second language i use is Greek.
    Then after the line below:

    if(trim($section_slug) !=””){
    $sanitize_title = $section_slug;
    }

    add this:

    for ($x=0; $x<=1; $x++) {
    $kyriomenu=$kyrioarray[$i];
    }

    and in the following line add the $kyriomenu like that:

    $onepage_menu .= ‘<li id=”onetone-‘.$sanitize_title.'” class=”onetone-menuitem”>
    <span>’.$kyriomenu.'</span>
    ‘;

    Thank you MageeWP for your answer.I’ll try it soon.

    Regards,
    Kostasmorph13

    Thread Starter kostasmorph13

    (@kostasmorph13)

    Problem solved with the code above.

    Can you tell us how to do it with WPML?

    Hi,

    thank you for the solution.
    It is still working with the latest wordpress version and onetone version ? Maybe I need the pro version ?

    I use wordpress 4.2.1 and Onetone 1.4.4 and qTranslate-X 3.2.9 (don’t work with mqtranslate too)
    I keep trying and understand why it doesn’t work. (no more web site whith this solution)

    Ok, I finally find.
    With the free version of Onetone and qTranslate-X

    Use this code for any text you need to translate :

    [:en]English Text test[:][:fr]Test de texte en francais[:]

    It’s work for the header, no need to use the code above.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Home page and onetone homepage menu in 2 languages’ is closed to new replies.