Skipping parts of the page
Translator and Einfache Sprache Plugin
If there are any elements, that should be excluded from the Translation and Einfache Sprache, you can add the ptp-translate-skip class.
Example
<main>
<h1>Welcome</h1>
<p>This paragraph will be simplified.</p>
<div class="ptp-translate-skip">This legal disclaimer stays untouched.</div>
</main>
Leichte Sprache plugin
Skip Elements
If there are sections inside the target container
that you want to exclude from simplification, you can use the class
ptp-simplify-skip.
Example:
<main>
<h1>Welcome</h1>
<p>This paragraph will be simplified.</p>
<div class="ptp-simplify-skip">
This legal disclaimer will not be included in Leichte Sprache.
</div>
</main>
Any element with the ptp-simplify-skip class (and its children) will be ignored.
In addition, you can specify selectors in your configuration:
skipSelectorsto ignore elements by CSS selector.skipTextSelectorsto ignore elements by their text using the pattern<tag>|<Text>.
Skip urls
To skip entire URLs, use:
noTranslateHandles: List of complete URLs where translation should be disabled. Matches ignore www. prefixes.noTranslateUrls: List of URL handles which disable translation. If the current page URL contains one of these handles, pressing the button will show a default message instead of translated content.