I'm actually using the qTranslate plugin to translate my website. It works really well with everything except one thing. the titles of my sidebar widgets.

Actually, to translate some words we need to put tags like this:

<!--:en-->My English Title<!--:--><!--:fr-->My French Title<!--:-->

When I use this in the content of my widget it works well. But in the title when I save the widget. It actually remove my tags and just displays:

My English TitleMy French Title

Anyone know how to fix this?

  • 1
    There's been years since I last worked with xLanguage... Just checking it now and it hasn't been updated since 2009-06-09! Searching in the backups cannot find an example on how to deal with this... IMHO, painful as it may be, you should plan a plugin migration ASAP :( – brasofilo Oct 18 '12 at 3:08
  • What plugin do you suggest? – kschaeffler Oct 18 '12 at 8:12
  • 1
    Take a look here: wordpress.stackexchange.com/a/51803/12615 – brasofilo Oct 18 '12 at 11:23
  • Sorry I was actually already using qTranslate and my problem was with qTranslate and not xLanguage... I'm gonna edit the question and give the answer – kschaeffler Oct 19 '12 at 10:44
  • Well, that's a misspell..! – brasofilo Oct 19 '12 at 10:51

I just found the answer and instead of putting this in the Title:

<!--:en-->My English Title<!--:--><!--:fr-->My French Title<!--:-->

We need to put this code:

[:en]My English Title[:fr]My French Title

and qTranslate does the rest :)

| improve this answer | |
  • 1
    A few years later, it should be [:en]My English Title[:fr]My French Title[:], with a closing "tag" – a.l.e Jun 6 '17 at 9:44

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