How to determine current active language in qtranslate plugin?

I have a situation where I want to give specific style to my Navigation Menu when the website is in German language.

My website works well in English language but when I switch to German, it causes a css problem.

Read More

So how do I determine which language is currently active with qTranslate plugin?

Related posts

Leave a Reply

2 comments

  1. I have found a possible solution:

    if ( 'de' === $GLOBALS['q_config']['language'])
    {
        echo "<style>#nav li a { margin-left:3px !important; }</style>"; // menu bar width fix
    }
    

    This works well for my menu items being not looking wired.