Faq Can i skip certain words or sentences to be translated?
Can i skip certain words or sentences to be translated?

Yes, it's possible to exclude sentences that include specific words or an entire phrase, as well as to exclude sentences based on HTML elements and CSS selectors.


gptranslate exclude

The most powerful solution is to wrap text to not translate into an element having a specific class and add its CSS selectors for elements to exclude, for example:

<span class="notranslate">Text to not translate</span>


You are free to choose the HTML structure for wrapping elements as well as the name of the class. CSS selectors are also applicable to existing elements, so wrapping text could not always be necessary.

The system operates based on elements and tags. Specifically, the setting text states: 'Words for elements to exclude.' This means that if an element contains an excluded word or a part of it, the entire element will be excluded. To prevent certain text from being translated, it must be wrapped in a separate, designated tag element.
It's also possible to automatically wrap excluded words by enabling the option 'Auto-wrap excluded words'. With this system, the plugin takes into account the entire process without the need of manual operations, wrapping and isolating excluded words from sentences. gptranslate exclude
gptranslate exclude