Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I used qtranslate for make my website multilingual, In fact this plugin just make an option for my content to has another translate, but how can i use it in my code? for example:

if ( $language == "ar" ) {
 // somthing }
share|improve this question

closed as off-topic by Mark Kaplun, birgire, Pieter Goosen, Johannes Pille, ialocin Oct 5 at 19:25

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Your question should be specific to WordPress. Generic PHP/JS/HTML/CSS questions might be better asked at Stack Overflow or another appropriate site of the Stack Exchange network. Third party plugins and themes are off topic." – Mark Kaplun, birgire, Pieter Goosen, Johannes Pille, ialocin
If this question can be reworded to fit the rules in the help center, please edit the question.

    
Are you referring to qTranslate ??? –  Zlatev Oct 5 '12 at 9:30
    
yes but i cant find any result –  sparkmood Oct 5 '12 at 10:04

1 Answer 1

From qTranslate's official support forums

The function to get the current language is qtrans_getLanguage()

share|improve this answer

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