Skip to content

Exclusions

Exclusion rules tell Omnalingo what to skip. You can exclude entire pages or sections of your site by URL, and you can exclude specific elements on a page using CSS selectors. This is useful for content that should always stay in the source language — payment forms, admin tools, live chat widgets, legal notices with jurisdiction-specific language, and so on.


What they do: Stop Omnalingo from scanning entire pages or sections of your site. Excluded URLs are never scanned, so their content never enters the translation database.

How to add one:

  1. Open Settings → Exclusions.
  2. In the URL exclusions field, enter one URL or URL pattern per line.
  3. Save.

Pattern matching: You can use * as a wildcard. For example:

  • /checkout/ — excludes only the exact checkout page
  • /account/* — excludes all pages under /account/
  • /wp-admin/* — excludes all WordPress admin pages (though these are already excluded by default)

When to use URL exclusions:

  • Payment and checkout pages where you don’t want any text manipulation
  • Password-protected or members-only sections you’re not ready to translate
  • Landing pages with A/B testing content you want to manage separately
  • Any page that third-party scripts own entirely

What they do: Skip specific elements within a page during scanning. The matched element and all content inside it are ignored — Omnalingo won’t extract any text from that element.

How to add one:

  1. Open Settings → Exclusions.
  2. In the CSS selector field, enter one selector per line.
  3. Save.

Selector examples:

SelectorWhat it excludes
.no-translateAny element with that class
#site-creditsThe element with that ID
code, preCode blocks
[data-no-translate]Elements with that HTML attribute
.sidebar .widget-areaWidget areas inside a sidebar
nav.admin-barA specific navigation element

Default selectors (set automatically on installation):

  • #wpadminbar — The WordPress toolbar shown to logged-in users. This is handled by WordPress itself and shouldn’t go through Omnalingo.
  • .woocommerce-review__author — WooCommerce reviewer display names. These are personal names and should not be translated.

When to use CSS selector exclusions:

  • Live chat widgets (the widget container)
  • User-generated content (comments, reviews, forum posts)
  • Third-party embed containers (maps, booking widgets, social feeds)
  • Code samples or technical output that must stay verbatim
  • Specific repeated elements like copyright footers

Exclusions prevent content from being scanned and added to the database. They do not retroactively remove content that was already scanned before the rule was added.

If you add an exclusion rule for content that was previously scanned:

  • The content remains in the database and continues to be served as a translation.
  • Future scans will not pick up changes to that content.
  • To fully remove already-scanned content, delete the relevant strings from the translation editor.

Exclusions vs. Glossary “Never Translate” Rules

Section titled “Exclusions vs. Glossary “Never Translate” Rules”

These two features solve different problems:

Exclusion RulesGlossary “Never Translate”
ScopeEntire element and all its childrenA specific word or phrase
Applied atScan time — content never enters the databaseTranslation time — content is scanned but the term is left untranslated in output
Best forSkipping a whole widget, section, or pageKeeping a brand name or code term untranslated within otherwise-translated text