Comment 7 for bug 124287

Revision history for this message
Ten (ten) wrote :

Currently libtranslate with google as a service returns erroneous markup:

" onmouseover="this.style.backgroundColor='#ebeff9'" onmouseout="this.style.backgroundColor='#fff'">

To fix this edit:

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

And set your pre/post markers to this:

        <pre-marker text="&lt;span title="/>
        <pre-marker text="onmouseover="/>
        <pre-marker text="onmouseout="/>
        <pre-marker text="&gt;"/>
        <post-marker text="&lt;br&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;"/>