Hi Josh, I finally got around to do some more testing on this and I'm running across some strange behavior.
ON A MAC: In Google Chrome (5.0.375.127) & Safari (Version 5.0.1 (5533.17.8)) clicking on the links won't translate the page. The select menu will work though. In Firefox (3.6.8) clicking on the link won't translate the page. But if you refresh the page after clicking the link (so that #googtrans/en/ ja is in the URL) then the page successfully translates. The select menu also works here. I tried this on an HTML page with nothing else but a paragraph for testing. Here is my page: http://bit.ly/bW9Euu Am I overlooking something very obvious or using this incorrectly? Many thanks, -Tim On Aug 3, 11:13 am, TimG wrote: > Thanks Josh, that worked perfectly! =) > > All the best, > -Tim > > On Aug 3, 10:56 am, Josh (Google Employee) wrote: > > > > > Hi Tim, > > > If you put the translate Element code on a page, like you already > > tried, and you link to that page with "#googtrans/en/ja" on the end of > > the URL, it will open an immediately translate. > > For example,http://www.yourdomain.com/yourpage.html#googtrans/en/ja > > Would open the urlhttp://www.yourdomain.com/yourpage.htmland > > immediately translate it from English to Japanese. > > > Hope that helps, > > Josh > > > On Jul 31, 1:02 pm, TimG wrote: > > > > Hello! > > > > I added the code for the language select box from this page to my > > > website: > > > >http://translate.google.com/translate_tools?hl=en&layout=1&eotf=1&sl=... > > > > It works beautifully! When I select a language I get this nice blue > > > loading bar at the top of the page that I can close/X out of. Plus > > > the URL in my browser does not change, which is great. > > > > When I try adding a plain hyperlink to translate the current page, > > > like this... > > > > <a > > > href="http://translate.google.com/translate?u=http://www.example.com&langpa...">Español</a> > > > > ...to translate from English to Spanish, I get different behavior. > > > The page refreshes, my URL is changed, I have a larger, more clunky, > > > white top bar that I can't escape from without hitting the back button > > > a number of times. > > > > My question is can I get the same behavior for the hyperlinks as I get > > > from the select box? > > > > I am building a site that targets English, Chinese, & Spanish speakers > > > but would ALSO like to have the select box so that more languages are > > > available. Breaking out the Spanish and Chinese links helps bring > > > attention to my target audience while making the site appear more > > > "multi-lingual" instead of having the languages hidden in a select > > > box. > > > > Thanks for reading! > > > -Tim -- You received this message because you are subscribed to the Google Groups "General" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-translate-general?hl=en.
