previous page + qtranslate : back to default language

Community Forums Forums General Discussion previous page + qtranslate : back to default language

This topic is: not resolved

This topic contains 2 replies, has 1 voice, and was last updated by  virginie 1 year, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #34447

    virginie
    Participant
    Post count: 7

    Hello,

    I’m using qtranslate plugin 2.5.34 with genesis 1.9.1 et News Theme 2.1. Everything works fine except for Previous Link Page. First page/number always return to default language.

    I tried several patch from qtranslate forum but nothing worked. Does anyone had this problem before and/or fix it?

    exemple : http://ymamj.org/blogue/en/category/article/page/2

    if I go back to page 1, it change to default language French
     thank you
     

     

     

    #34582

    virginie
    Participant
    Post count: 7

    note : I used Genesis Featured page widget as first page.

    #34799

    virginie
    Participant
    Post count: 7

    If I look at the source code, I see the link for page 2 : http://ymamj.org/blogue/en/category/article/page/2

    and for page 1 is : http://ymamj.org/blogue/en/category/article/

    if  I go back from page 2 to page 1, link http://ymamj.org/blogue/en/category/article/

    change to http://ymamj.org/blogue/category/article/

    even if we read the English link in the source code as http://ymamj.org/blogue/en/category/article/

    I tried this function but its not working – maybe something is missing to be compatible with genesis :

    add_filter('get_pagenum_link', 'qtranslate_next_previous_fix');

    function qtranslate_next_previous_fix($url) {
    $aUrl = explode(“/”.qtrans_getLanguage(),$url);
    if (isset($aUrl[1]))
    $url=qtrans_convertURL($aUrl[1]);
    return $url;
    }

    thank you

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.