Support » Plugin: mqTranslate » Add mqtranslate to other Fields of Pages?

Viewing 5 replies - 1 through 5 (of 5 total)
  • I resolved whit:
    esc_html(qtrans_use(qtrans_getLanguage(), $post->post_title, true));

    😉

    Plugin Author chsxf

    (@chsxf)

    If you want to display specifically the post title or content, you should definetely use the_title() and the_content(). Those two functions are filtered by mqTranslate.

    For any other text, you can use the much simpler (but longer):
    qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage([YOUR_TRANSLATED_TEXT_OR_VARIABLE_HERE]);

    Hello chsxf,
    I’m using mqtranslate for my website. I checked the box that says “Detect browser’s langauge and redirect accordingly”. The problem is that it is only effective with mobiles and tablets, not with computers. Could you tell me how can I solve this problem?
    Thank You!

    Hi chsxf,

    How can I translate a title in widgets?

    I’ve tried the <!--:en-->Cart<!--:--><!--:it-->Carrello<!--:--> but it strips out the <!--:--> tags and shows both text options…

    Can you help?

    Many thanks,

    Ginestra

    try like this:

    [:en]Cart[:it]carrello

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add mqtranslate to other Fields of Pages?’ is closed to new replies.