Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author sbouey

    (@sbouey)

    Hi,

    yes with the screen capture i see the problem

    1. I have tested locally with the last version and the url is well translated
    2. can you make me a capture of the FAlang > Settings > Translate option
    3. for the url translation check in Falang > Settings > Translate Options > Page , _menu_item_url normally it’s done automatically, it’s necessesary to translate the url

    Stéphane

    Thread Starter nadine

    (@ninablue)

    Hi,

    Thank you for your fast reply.

    1. Just for clarification: it’s not about the URL being translated but the link title (as seen in the screenshot).
    2. I’m not exactly sure if this is what you wanted but here is a screenshot.
      https://link.storjshare.io/jxukedjfngonhqkbbnfoyqakabpq/nextcloud%2Ffalang-translate-options.PNG
    3. So, you say that I need to translate the URL? Because the url is just an anchor and it’s the same for both languages. So, it’s not translated currently.

    Thanks again.

    Plugin Author sbouey

    (@sbouey)

    Sorry i was not clear, your problem is not due to the url.

    Can you try to browse your site in private mode in case of cache problem

    what is your theme ? perhaps a theme problem

    Stéphane

    Thread Starter nadine

    (@ninablue)

    Ok, I opened the site in private mode but it’s still the same. So, it doesn’t seem to be a caching problem. My theme is YOOtheme 4.0.7 . I also use the Falang for YOOtheme plugin on that site. Hope this helps.

    Plugin Author sbouey

    (@sbouey)

    Hi,

    Yootheme i know it, the are an extra plugin use to transalte Yootheme page directly in each elements Falang for Yootheme lite , available on www.remarpro.com

    can you check in your template you use the mainmenu (or your specific menu) and not a menu created directly in yootheme

    https://snipboard.io/TGVB6M.jpg

    Stéphane

    Plugin Author sbouey

    (@sbouey)

    Sorry , you are right there a problem with Yootheme template and the menu type custom link the title is not translated. the custom link is translated. i will look why , the fix will probably be added in Falang for Yootheme builder lite

    Stéphane

    Plugin Author sbouey

    (@sbouey)

    In fact this is quite stupid , i have put this feature in the pro version of Falang for Yootheme, it’s why i have this problem on the test site and not on the other. it’s not well documented on my site.

    Thread Starter nadine

    (@ninablue)

    Thank you for investigating. So, this means that I have to buy the Pro version just to translate this one link? An info box for the user would be great to let him/her know that the translation will not be considered or that you disable the translation text field completely. Thank you.

    Plugin Author sbouey

    (@sbouey)

    Hi, here is the code i use in the pro version , you will not buy the pro version only for this,

    add_filter('falang_translate_nav_menu_item',array($this,'falang_translate_nav_menu_item'),10) ;

    you have to change the filter to something like :

    add_filter('falang_translate_nav_menu_item',falang_translate_nav_menu_item') ;

    and the function

    function falang_translate_nav_menu_item($menu_item){
    if ($menu_item->type == 'custom'){
    $menu_item->title = $menu_item->post_title;
    }
    return $menu_item;
    }

    Stéphane

    • This reply was modified 1 year, 4 months ago by sbouey. Reason: inlide code not well formated
    Thread Starter nadine

    (@ninablue)

    It’s been some time. I just wanted to say thank you. The filter works. ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Custom menu item is not translated correctly’ is closed to new replies.