• Resolved ron-moss

    (@ron-moss)


    I’m using both qTranslate 1.1.4 and Breadcrumb NavXT 3.0.1. Everything works fine, except(there seems always an exception), the categories I made.
    The breadcrumb show both languague tags here..
    So for example:
    home [lang_de]Toplinks[/lang_de][lang_nl]Toplinks[/lang_nl] Sitemaps, en not:
    home – toplinks – sitemaps
    I found something here: https://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=23. But can’t wordk it out. Can someone help me with this?
    Thanks Ron

Viewing 11 replies - 1 through 11 (of 11 total)
  • Having the same problem. Would LOVE assistance on this.

    hey guys, i don′t read exactly your issue, but i posted this on the breadcrumb plugin page that could be solve your′s, here:

    qTranslate does not use the get_category filter, which it needs to in order to affect categories for Breadcrumb NavXT (there is no other filter that fits how I have to retrieve the categories). I may have a patch for qTranslate available this weekend.

    Ok so here’s the scoop.

    I installed the latest SVN version of qTranslate and it does not even work with WordPress 2.7 (as far as I can tell) so I can not make any modifications for it to work with the get_category filter (unable to even test as I’m using WordPress 2.7 on all my installs).

    -John Havlik

    Here’s a temporary solution:

    //qTranslate compatibility filter
    if(function_exists('qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage') && function_exists('bcn_display'))
    {
    echo qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage(bcn_display(true));
    }

    Now this will only work with Breadcrumb NavXT SVN trunk and 3.0.2 (will be released later next week). It is essentially the code that was used in 2.1.4 for qtranslate support. Note this probably will not work with qTranslate 2.0 (which hopefully will support the get_category filter).

    Thread Starter ron-moss

    (@ron-moss)

    thank you mtekk, but where do i have to place this fine piece of php?
    and you mean version 1.1.4 for qtranslate not?

    It should work with qTranslate 1.x, but will not work with qTranslate 2.x. You should use the provided code instead of what ever code you were using to generate the breadcrumb trail (replace your old calling code with it). Also, you need to use the trunk version of Breadcrumb NavXT for this to work.

    Thread Starter ron-moss

    (@ron-moss)

    mtekk, I tried it today with the trunk version of Breadcrumb NavXT, but it doesn’t work with the code you provided. I think because i’m using advanced use with ‘bcn_breadcrumb_trail'(in my own template) and not ‘bcn_display’ function. You also have a filter for this?

    ron,

    What you need to do is to replace

    echo qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage(bcn_display(true));

    with

    echo qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($breadcrumb_trail->display(true));

    this assumes $breadcrumb_trail is a bcn_breadcrumb_trail object.

    Thread Starter ron-moss

    (@ron-moss)

    Thank you mtekk! Solved
    I replaced(in the Advanced Usage code) the code
    $breadcrumb_trail->display();

    with

    echo qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($breadcrumb_trail->display(true));

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘qtranslate and Breadcrumb NavXT’ is closed to new replies.