0

I have a set of links, each with an image - how can I show different links depending on the language selected (using qTranslate) - the images have text on them..

At the moment I show these links using the rotating links widget.

Are there any plugins to help with this? or do I need to resort to PHP?

1 Answer 1

4

You can get the current language with qtranslate using the function qtrans_getLanguage(); and then use it like this for conditionally showing content:

    <?php  
        if ( qtrans_getLanguage() == 'en' ) {
          //put your code in here
        }
        elseif ( qtrans_getLanguage() == 'de' ) {
          //put your code in here
        }
    ?>
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.