Support » Plugin: mqTranslate » mqTranslate not working in widgets

  • Resolved bublelicious


    I am using the latest version of wordpress and the Di’verso theme by “Your Inspiration Themes” and I am using mQtranslate to make it multilingual. I am having problems getting the text in the widgets translated. I insert the correct <!– –> code to enclose the different language translation, but as soon as I save, wordpress strips the tags out and just joins the two translations together so if I write <!--:en-->Calendar<!--:--><!--:it-->Calendario<!--:--> the display result on the page will be “CalendarCalendario”.
    How do i solve this? Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • hi, continuing this post… its possible to translate the widgets?
    tks, marujobhz

    Plugin Author chsxf


    We will see how this is possible to translate widgets.

    Do not expect this feature to appear in the upcoming update for WP 3.8 but maybe in the one after.

    Plugin Author chsxf


    After some investigation, it appeared that qTranslate includes a widget translation support, so mqTranslate includes it also.

    You can use quicktags to specify different translations in your widgets.
    Example for a category widget title:
    [:fr]Mes Cat├ęgories[:en]My Categories

    However, for this to work, widgets titles and text elements must be filtered using the widget_title et widget_text filters. So it may not work with all widgets out of the box and source code may need some update to support translations.

    I tried this and it works:
    [:en]My English Title[:fr]My French Title

    ah, perfect!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘mqTranslate not working in widgets’ is closed to new replies.