[qT2] Widget title translation bug

Having Problems? Need Help? Post here!

[qT2] Widget title translation bug

Postby lorenzodetomasi » Tue Dec 23, 2008 2:38 pm

I have installed qT2 (great plugin! :-), everything is ok, except widget titles, that are not translated. I have used
Code: Select all
<!--:en-->english title<!--:--><!--:it-->Italian title<!--:-->

Look at http://isotype.org/it/
Has someone else the same problem?
Thanks
lorenzodetomasi
 
Posts: 32
Joined: Tue Jun 24, 2008 11:24 am

Re: [qT2] Widget title translation bug

Postby fuzzfais » Wed Dec 24, 2008 11:34 am

Indeed, I'm seeing the same error on my site. The interim solution was to enter the widget titles bilingually with a slash between the words, but I'd love to see this fixed.
EDIT: It wouldn't hurt if widget editor would respect qTranslate tags. When I add a widget text-box, I enter the text in both languages with tags. Next time I use the editor, it just loads the default language boxes and removes the second language, so each time I use the widget editor, I have to copy-paste all bilingual boxes over and over again.
fuzzfais
 
Posts: 3
Joined: Wed Jul 30, 2008 8:07 am

Re: [qT2] Widget title translation bug

Postby andyolivares » Wed Dec 24, 2008 1:58 pm

Same here... unable to translate widget titles using language tags... also, the same error when using language tags in the blog description (slogan)...
andyolivares
 

Re: [qT2] Widget title translation bug

Postby Derice » Thu Dec 25, 2008 2:56 pm

Same issue here.
Derice
 
Posts: 35
Joined: Sat Jul 19, 2008 8:25 am

Re: [qT2] Widget title translation bug

Postby jmparis » Sat Dec 27, 2008 5:35 pm

Maybe this patch can help you : viewtopic.php?f=3&t=333#p1534
it addresses the issue on the bloginfo. Similar to your bug.

JM
jmparis
 
Posts: 57
Joined: Mon Dec 22, 2008 5:06 pm
Location: France

Re: [qT2] Widget title translation bug

Postby zevs » Sun Dec 28, 2008 8:24 am

no, it does not help. I have the same problem with widget title.
zevs
 

Re: [qT2] Widget title translation bug

Postby Qian Qin » Sun Jan 04, 2009 1:48 pm

translation of widget title is currently not really possible (i am working on an easy way to fix this). but there is a (complicated) walkaround:
1. disbale auto-update of .mo files
2. add translations to .mo files manually
Qian Qin
Site Admin
 
Posts: 889
Joined: Thu Jun 19, 2008 12:14 pm
Location: Germany

Re: [qT2] Widget title translation bug

Postby RioSif » Mon Jan 05, 2009 9:07 am

Open the widget file --> Find:

"echo $before_widget.$before_title.$title.$after_title;"

Replace it to:

"echo $before_widget.$before_title;
_e("<!--:el-->greek text<!--:--><!--:en-->english text<!--:-->");
echo $after_title;"
RioSif
 

Re: [qT2] Widget title translation bug

Postby lorenzodetomasi » Thu Jan 08, 2009 11:01 am

Qian, what is the problem with filters for translation using language tags (<!--:en-->English title<!--:--><!--:it-->Italian title<!--:-->) in widget titles? I don't understand why, if it works with post titles, it doesn't it work with blog titles? I'm not talking about .po/.mo translations, but about custom widget titles in widget options…
Thanks :-)
lorenzodetomasi
 
Posts: 32
Joined: Tue Jun 24, 2008 11:24 am

Re: [qT2] Widget title translation bug

Postby Qian Qin » Thu Jan 08, 2009 4:56 pm

wordpress uses striptags to get rid of any HTML/XML from titles before it calls the filter. So qTranslate doesn't get the correct information with the language tags (which are XML comments).
Qian Qin
Site Admin
 
Posts: 889
Joined: Thu Jun 19, 2008 12:14 pm
Location: Germany

Next

Return to qTranslate Support Forum

Who is online

Users browsing this forum: Google [Bot], MSNbot Media, Yahoo [Bot] and 4 guests