Capturing Visual Context

Overwriting Existing Context with HTML Classes

You can control context overwrite by marking your site code with Smartling HTML classes. This is especially useful when automating or using context tools, such as Smartling's Content Capture Chrome Extension.

To override context for an entire page:

Add the two classes sl-override-context and sl-translate to the page’s HTML tag.

To override context for specific elements on the page:

  1. Add the sl-notranslate class to the HTML tag of the page.
  2. Add the two classes sl-override-context and sl-translate to the elements you want to override context for. Any nested child elements will also be overwritten.

Was this article helpful?