O
O
Oleg2017-09-03 20:38:34
PHP
Oleg, 2017-09-03 20:38:34

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

1 answer(s)
E
empr, 2017-09-03
@empr

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 question

Ask a Question

731 491 924 answers to any question