nw5280
nw5280

Reputation: 137

Alternative to Google translate API

I am using the Google translate API, but it seems to destroy the css of the webpage. For example, it gets rid of background images. Has anyone an alternative idea? I tried looking for a JQuery solution that translates the text inline, without reloading the page, but could not find anything that works sufficiently.

Thx!

Upvotes: 1

Views: 1742

Answers (2)

Mike Hedman
Mike Hedman

Reputation: 1441

I would guess that you are sending the text of what you want translated, and then replacing the text using something like jQuery. The problem with this is that this "washes out" your embedded html. Try sending the html instead, and Google will include it in the translated text, something like $().html() rather than $().text().

Showing us some code would really help.

Mike

Upvotes: 1

Related Questions