Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter globalreporter

    (@globalreporter)

    Any chance to have a feedback on this?

    What system/plugin are you using to make the site multi-language? If you are using qTranslate plugin you just need some minor changes to make the slider multi-language. In case this is your case this changes made in “slider-versions/smooth_1.php” worked for me:

    • (line 10)
      change $post_title = stripslashes($post->post_title); to this
      $post_title = stripslashes(qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($post->post_title));
    • (line 14)
      change
      $slider_content = $post->post_content;
      to this
      $slider_content = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($post->post_content);
    • (around line 232)
      change
      $sldr_title = get_smooth_slider_name($slider_id);
      to this
      $sldr_title = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage(get_smooth_slider_name($slider_id));
    • (around line 234)
      change
      else $sldr_title = $smooth_slider['title_text'];
      to this
      else $sldr_title = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($smooth_slider['title_text']);

    Thanks killernaggy!! this works perfectly!!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to make the slider multi-language?’ is closed to new replies.