[dokuwiki] Re: Google translate...

  • From: Robin Getz <rgetz@xxxxxxxxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Mon, 25 Oct 2010 11:01:08 -0400

On Sat 23 Oct 2010 11:30, TNHarris pondered:
> On 10/22/2010 11:16 AM, Robin Getz wrote:
> >
> > 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).
> >
> 
> I'd think you could wrap[1] the blocks in <div class="notranslate">. 
> It'd take a few extra keystrokes, but not all code blocks are computer 
> code. 

<code> maybe...

but:

<code lang> or <file lang foo.c> is specifically computer code

I can restrict it to that if that is the solution we agree to..

> Or you could suggest to Google that they recognize computer  
> languages and exclude it from translation. (Maybe even extract the 
> comments from the code.) Of course if they didn't respond to your bug 
> report, I wonder how well you'd do with a feature request.

The dokuwiki code I can impact -- the google code I'm not kidding myself...



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

Other related posts: