First of all, I wish to thank Wyn James, who managed to get the slideshow to work on his multilingual wordpress site, and was kind enough to give me the solution.
The slideshow wasn’t developped to be used in a multilingual environment, and therefore it’s not possible to add more than one caption to each slide. So you might have your whole site in more languages, but the captions would always be in that one language.
But there is a solution!
This solution works with the qTranslate plugin. It might work with other multilingual plugins as well. I don’t know, you’ll have to try.
To make your slideshow multilingual, install and activate the qTranslate plugin, and the Widget Logic plugin.
Add the qTranslate widget to your sidebar.
Then add a slideshow widget for each language, giving each the captions in that language.
At the end of the usual slideshow settings, you’ll find a new one called ‘Widget logic’. Put the following code in there:
(function_exists('qtrans_getLanguage') && qtrans_getLanguage()=="xx")
You must put the code of the desired language instead of the xx.
For example, ‘en’ is english, ‘de’ is german, ‘it’ is italian, ‘nl’ is dutch, ‘fr’ is french, ‘es’ is spanish.
Try it, it works great. And let me know if you can’t get it to work.
Recent Comments