somehow mariodebian's solution didn't work for me

what worked for me was

        #2

to solve the problem

sudo gedit /usr/share/libtranslate/services.xml

then look for the lines containing

<text-translation 
url="http://www.google.com/translate_t?text=${text:escape}&amp;langpair=${from}|${to}&amp;ie=utf8&amp;oe=utf8">
 <pre-marker text="&lt;div id="/>
 <pre-marker text="result_box"/>
 <pre-marker text="&gt;"/>
 <post-marker text="&lt;/div&gt;"/>
      </text-translation>

and replace them with

<text-translation 
url="http://www.google.com/translate_t?text=${text:escape}&amp;langpair=${from}|${to}&amp;ie=utf8&amp;oe=utf8">
     <pre-marker text="id="/>
     <pre-marker text="result_box"/>
     <pre-marker text="mouseover"/>
     <pre-marker text="&gt;"/>
     <post-marker text="&lt;"/>
       </text-translation>

save and restart gnome-translate

-- 
Google service doesn't work in libtranslate
https://bugs.launchpad.net/bugs/124287
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to