• Home
  • Blog
  • Showcase
  • Setup Docs
    • Sunshine Help
    • Flex Help
  • Support
    • Support Area
    • Contact us
    • Feedback
  • Connect
    • Newsletter
    • Twitter
    • Facebook
  • My Account
  • Flex
  • Sunshine
Support : Simple Pro Themes

Support : Simple Pro Themes

[Resolved] 2nd Word Menu Translation ?

If you have purchased a product, please enter the email address that you used to register at time of purchase.
Log In
Lost Password

Create an Account
  • Your username must be unique, and cannot be changed later.
  • We use your email address to email you a secure password and verify your account.

Support › Forums › Flex Theme › 2nd Word Menu Translation ?

Tagged: menu, translation

  • This topic has 2 replies, 2 voices, and was last updated 5 years, 8 months ago by lindebjerg.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • October 17, 2016 at 11:22 am #1396
    lindebjerg
    Participant

    The word โ€œMenuโ€ in the mobile secondary menu before footer are not translated on this site: http://museon.lindebjerg.de/
    I have made a post before about this problem and I thought I had solved it. But now when I use the secondary menu, I still see the word “Menu” in the mobile version of the secondary menu?

    I have made some changes like I wrote here: https://support.simpleprothemes.com/forums/topic/the-word-menu-translation/

    But I cannot find a separate part in the functions.php to translate the word “Menu” for the secondary menu?

    Best Regards,
    Jesper

    October 17, 2016 at 1:39 pm #1397
    Chinmoy Paul
    Moderator

    open functions.php file and replace

    wp_localize_script( 'flex-global-js', 'WP', array( 'AJAX_URL' => admin_url( 'admin-ajax.php'), 'NONCE' => wp_create_nonce( 'flex_ajax_pg_nonce' ) ));

    WITH

      wp_localize_script( 
        'flex-global-js', 
        'WP', 
        array( 
          'AJAX_URL'  => admin_url( 'admin-ajax.php'), 
          'NONCE'     => wp_create_nonce( 'flex_ajax_pg_nonce' ),
          'menuL10n'  => __( 'Menu', 'flex' )
        )
      );

    =======================

    Next open global.js file and replace

    $( '.nav-secondary .genesis-nav-menu, .nav-header .genesis-nav-menu' ).before('<div class="responsive-menu-icon"><span>MENU</span></div>');

    WITH

    $( '.nav-secondary .genesis-nav-menu, .nav-header .genesis-nav-menu' ).before('<div class="responsive-menu-icon"><span>' + WP.menuL10n + '</span></div>');

    October 25, 2016 at 7:34 am #1418
    lindebjerg
    Participant

    thanks Paul, now it works ๐Ÿ™‚

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Copyright © 2022 · Simple PRO Themes for Genesis Framework · About · FAQs · Contact · Affiliates