• Resolved Paula

    (@paulalatifa)


    Hi,

    I’m building a site for a client and it was requested the site was bilingual so I used qTranslate to set it up.

    Feature Slideshow is on the main page showing sub-pages from a particular parent and is correctly grabbing the titles (also the translated ones) but when I use the shorttags ([:en] and [:nl]) in the description area for a page it just copies them to the description on the slideshow.

    I also used normal tags (<!–:en–><!–:–>) and that also didn’t work.

    Can anyone help?

    Cheers,
    Paula

    http://wordpress.org/extend/plugins/feature-slideshow/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Paula

    (@paulalatifa)

    Maybe this page can help you:

    http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=294

    sorry, I’m to new to PHP to understand what they’re saying there…

    Thread Starter Paula

    (@paulalatifa)

    Okay, so I fixed it myself.

    I defined this function in future-slideshow.php:

    function cut_content_fat($text, $chars, $points = "...") {
    	$length = strlen($text);
    	if($length <= $chars) {
    		return $text;
    	} else {
    		return substr($text, 0, $chars)." ".$points;
    	}
    }

    Then, in feature_slideshow_body.php I found this:

    <span>' . $metadata['feature_slideshow_description'][0] . '</span>

    and replaced it with:

    <span>' . cut_content_fat($excerpt, 80, "...") . '</span>

    I defined $excerpt:

    $excerpt = get_the_excerpt();
    (I put this just a little above $return = in the future-slideshow.php file)

    Hope this helps people.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Feature Slideshow] Qtranslate descriptions not translated?’ is closed to new replies.