Answer the question
In order to leave comments, you need to log in
Exclude terms when translating through google translator when parsing?
Help mi. There is a donor w3schools.com
So the situation is as follows.
Wrote a parser through google translator. At the very least it translates.
But the question arose how to exclude terms from the translation?
There is only an idea to find-create an array from programming terms.
But I can’t even imagine how to process it less resource-intensive.
Answer the question
In order to leave comments, you need to log in
The answer is already contained in the post - create an array of terms. This will not be a resource-intensive operation, after all we are not in 1999.
Also note that in the layout of the specified site, many phrases that clearly should not be translated are wrapped in elements of the form <code class="w3-codespan" /> .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question