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
    
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
add comment

1 Answer 1

From qTranslate's official support forums

The function to get the current language is qtrans_getLanguage()

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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