Forums

[resolved] qtranslate and Breadcrumb NavXT (12 posts)

  1. ron moss
    Member
    Posted 1 year ago #

    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: http://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

  2. greggo
    Member
    Posted 1 year ago #

    Having the same problem. Would LOVE assistance on this.

  3. arriba
    Member
    Posted 1 year ago #

    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:

  4. arriba
    Member
    Posted 1 year ago #

  5. mtekk
    Member
    Posted 1 year ago #

    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.

  6. mtekk
    Member
    Posted 1 year ago #

    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

  7. mtekk
    Member
    Posted 1 year ago #

    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).

  8. ron moss
    Member
    Posted 1 year ago #

    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?

  9. mtekk
    Member
    Posted 1 year ago #

    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.

  10. ron moss
    Member
    Posted 11 months ago #

    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?

  11. mtekk
    Member
    Posted 11 months ago #

    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.

  12. ron moss
    Member
    Posted 11 months ago #

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

    with

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

Topic Closed

This topic has been closed to new replies.

About this Topic