I
I
Ivan Petrov2018-04-10 22:13:52
Machine translation from one language to another
Ivan Petrov, 2018-04-10 22:13:52

How to translate html page through google translate keeping html code?

Tell me how you can translate an html page through google translate, while saving all the html code without any changes?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2018-04-10
@xmoonlight

1. We get the source document in the source language and save it to ourselves.
2. We make a list of all text nodes with saving the path of each node in the markup of the source document.
3. We translate a clean text through any translator.
4. We replace the corresponding nodes in the source text with the translation.
5. Hooray! Profit!
And, of course, you need to automate the whole process!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question