1

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 }

closed as off-topic by Mark Kaplun, birgire, Pieter Goosen, Johannes Pille, Nicolai Oct 5 '14 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, Nicolai
If this question can be reworded to fit the rules in the help center, please edit the question.

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

From qTranslate's official support forums

The function to get the current language is qtrans_getLanguage()

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