Featured Content Gallery | WordPress Plugin | iePlexus

FCG and qTranslate

New releases, ideas for the future, and known issues

FCG and qTranslate

PostBy julian on Wed Jul 01, 2009 6:52 am

Hi,

We're using qTranslate for multilingual purposes on many of our sites.

I made a small amendment in gallery.php in order to make it work with this plugin.

Instead of
Code: Select all
<p><?php $key="featuredtext"; echo get_post_meta($post->ID, $key, true); ?></p>


I put
Code: Select all
<p><?php $key="featuredtext";  $output = get_post_meta($post->ID, $key, true);          if(function_exists('qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage')) $output = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($output);
echo $output; ?>
</p>


Then in the custom field for featuredtext I put
Code: Select all
[:se]Swedish text[:en]English text

since we're using english and swedish on this site.

You could do the same for title/h2.
Hope it helps someone.
Wordpress design and development
http://www.julian.se/en
julian
 
Posts: 5
Joined: Tue Jun 30, 2009 7:35 pm

Re: FCG and qTranslate

Thank you for using the Featured Content Gallery Forum
 

Return to Development, Improvement, and Conflicts

Who is online

Users browsing this forum: No registered users and 0 guests