[dokuwiki] Re: Google translate...

  • From: Robin Getz <rgetz@xxxxxxxxxxxxxxxxxxxx>
  • To: Andreas Haerter <dokuwiki@xxxxxxxxxxxxxxxxxx>
  • Date: Fri, 22 Oct 2010 11:16:51 -0400

On Fri 22 Oct 2010 11:06, Andreas Haerter pondered:
> Am 22.10.2010 16:11, schrieb Robin Getz:
> > <pre class="notranslate" class="code">
> 
> <pre class="code notranslate"> may be better ;-)

Yeah, I tried this - but then google stops translating, and doesn't start 
again when the </pre> end tag is hit... (notranslate also needs to be first 
for it to work at all).

What I sent is the only version I could make work, without effecting:
 - syntax highlighting
 - the stop/start of the google translate over code/indented sections.

I asked on the google translate mailing list, and never received a reply.

http://groups.google.com/group/google-translate-general/browse_thread/thread/a1cdbc3afcbf1c6e/6cd585f54c0b8458?#6cd585f54c0b8458

The above patch (although a little fragile, which I can add a comment to) 
seems to work.

-Robin
-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: