Basically I have my own theme and my own settings page. In that settings page I have a textfield which contains a Welcome Text to show at the top of the website.

Now, I want this theme to works with qTranslate. To make the content of this textfield multi-language, it would be easy just to let the user add the qTranslate tags by himself within it.

However, internally, while I'm rendering the Welcome Text, which function of qTranslate should I call? It would be perfect if I could pass to it only the text (with the tags) in argument, and depending on the current language qTranslate would give me back the right part of the text.

Thanks a lot for your help :)

1 Answer 1



You can use _e(); function to echo your variable and __(); to return your variable. Qtranslate hooks into these functions and translates following your input.

  • Excellent, that was easy and exactly what I was looking for. I didn't look much into that issue it seems. Thanks :)
    – TigrouMeow
    Dec 25, 2011 at 12:33

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.