WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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
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
up vote 11 down vote accepted

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 :)

share|improve this answer

protected by toscho Feb 5 '15 at 22:06

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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