Forum Moderators: phranque

Message Too Old, No Replies

Does 'Google Translate' mess with the html?

         

smithaa02

9:56 pm on Aug 28, 2007 (gmt 0)

10+ Year Member



For all my other pages, google translate works perfectly, but for the following code, google seems to really mess things up.

This:
**************************************
<span class="nameofbusiness">Business Name</span>¦<span class="content1">Phone Number</span>¦<span class="content2">204 5th St., City, State 99999</span>
**************************************
...becomes this:
**************************************
<span class="content2">St. de</span> <span class="nameofbusiness">Name¦Phone</span> <span class="content1">Number¦204</span> <span class="content2">5to del</span> <span class="nameofbusiness">negocio</span><span class="content2">, ciudad, estado 99999</span>
**************************************
The content 2 class jumped to the beginning and was split into multiple section which mess up everything on my end.

Anybody know of a way to fix this?

balam

1:23 am on Aug 29, 2007 (gmt 0)

10+ Year Member



> Anybody know of a way to fix this?

I'd suggest bringing this to Google's attention; after all, it's their software that buggers it up...

jomaxx

1:35 am on Aug 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



.

balam

2:33 am on Aug 29, 2007 (gmt 0)

10+ Year Member



?

jomaxx

3:26 am on Aug 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I had replied that it was probably due to Google stripping out the markup, then doing the translation and having to move some phrasing around due to language conventions, and then trying to put the markup back in intelligibly.

Anyway I didn't phrase it too well initially, then started re-editing the post and getting into specifics, until the whole thing was a mess. Eventually I got fed up and just nulled out the whole post.

smithaa02

1:34 pm on Aug 29, 2007 (gmt 0)

10+ Year Member



I think I fixed it... If I use divs and apply inline styles to those divs, that seems to do the trick. I believe google is trying to be clever in the translation by rearranging words because the order in which somethings are said in Spanish are switched up. It sees the spans and believes this rearranging will be no big deal, but it messes everything up. Divs being block level elements are probably deemed to dangerous by Google Translate to mess with...