Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
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
show 1 more comment

1 Answer 1

up vote 7 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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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