Reputation: 137
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
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
Reputation: 11
Try this one: http://www.superawesomejquery.com/plugins/2_jquery-google-translate-plugin/
Upvotes: 0