Forums

qTranslate with Smooth Slider (5 posts)

  1. QuestionBoy
    Member
    Posted 5 months ago #

    I installed and got qTranslate fully functional. I then realized that although it was translating the posts, it was not translating the Smooth Slider plugin content. Is there a way to fix it so the Slider content is translated as well?

  2. QuestionBoy
    Member
    Posted 5 months ago #

    I found a very odd work around. I am confused because it works seamlessly for the $post_title but then requires a workaround for the $slider_excerpt?

    What I did was in the Smooth Slider j.php files (around line 173) I wrapped the textual variables with the qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage()

    so $post_title became qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($post_title)

    same for $slider_excerpt

    Now this change made the titles works just fine, but for some reason the excerpt themselves still displayed each language concatenated. to solve this last delema, I merely added the language shortcode to each post text.

    So I start every english post with [:en] and every french post with [:fr]

    And voila, it works. I still am hoping to remedy the problem so I don't need this last step and would love it if anyone can make any suggestions.

  3. Jan.lipavsky@gmail.com
    Member
    Posted 4 months ago #

    working for me with post_title,

    thnks

  4. PatrizioRD
    Member
    Posted 3 months ago #

    Thanks QuestionBoy,

    your workaround works good to me too, with both title and content.

  5. aleksand
    Member
    Posted 2 months ago #

    Thanks,
    workaround works good, with both title and content.
    In addition to this, if you want title of the post in Smooth Slider to reference to your post in your current language, on the same line QuestionBoy specified change $permalink into qtrans_convertURL($permalink)
    --
    use qtrans_convertURL() to parse the urls.
    http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=1133&hilit=link+to+language#p4438

Reply

You must log in to post.

About this Topic