Support » Plugin: qTranslate X » Change the Menu Label text

  • Resolved Webmaster_crawl

    (@webkingashu)



    Hello,
    I just installed and wondering how can i chang the menu label text of language switcher navigation item.

    Details:

    Added Language Switcher Menu item in my main menu, The switch button is named as “Language” and the label does not changes even defining custom label in w p menu label option.

    Is it being inserted by js or something else??
    I know the url #qtransLangSwLM# however giving any custom menu item this link ignores the menu item label and “Language” is displayed in english instead .

    Please refer snapshot to understand

    View post on imgur.com

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Gunu

    (@grafcom)

    @Webmaster_crawl,

    Word Language should change/translate when switching language. (?)

    You can hide the word Language (not change) with:

    #qtransLangSw?title=none

    Ok Got it.

    Also can you point me to the plugin code file where this label is hard coded “Language” so that i can change it to something else.

    Thanks

    Plugin Author Gunu

    (@grafcom)

    @Webmaster_crawl,

    you can use the .po and .mo files (in folder qtranslate-x – lang)from the different languages and changes it there. But after an update that will be replaced again.

    Plugin Author John Clause

    (@johnclause)

    I agree, @Webmaster_crawl, indeed it should take the label from the place you pointed out. This is an older code from the time when we had no good multilingual menu editing. We will consider changing it sooner or later. Meanwhile, take @gunu‘s advice, or change it in the code at line

    $item->title=__(‘Language’,’qtranslate’);

    in file qtranslate_frontend.php. Thank you.

    Thanks @Jogn & @gunu.

    I did too figured that out while going adventurous with my dev server 😉

    I had to hide the flags as well as try the AL option.

    So in qtranslate_frontendphp

    function qtranxf_wp_get_nav_menu_items( $items, $menu, $args ){}

    I played with some variables and it worked 🙂

    In Future we can add easy admin options for this as well , what say 🙂

    At all, very good plugin . Keep the good work guys. I just rated it 5star 😉

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change the Menu Label text’ is closed to new replies.