Segment Chooser Tutorial
From Lingotek
The Segment Chooser allows you to filter and choose which segments in a document will be translated.
To access the Segment Chooser, go to the Document Details page for the document you would like to edit, and click Actions > Segment Chooser
Non-XML documents
For non-XML documents, the Segment Chooser will simply display all of the segments in the document, and you can choose segments that you do not want translated. If you uncheck the "Translate" checkbox on a segment, then the segment will be grayed out in the interface. The segments that are grayed out will not be shown to translators or reviewers, and when the document is downloaded they will be exported with the source text unchanged.
XML documents
For XML documents, you can use the Segment Chooser to filter out segments with certain element or attribute names.
At the top left of the interface is a box titled "Labels in Document". This box is populated with all of the elements and attributes in the document that have one or more segments associated with them.
For example, if a portion of your XML document looked like this
<element1> <element2 attribute1="true"> This is translatable text. </element2> <element3 attribute1="false"/> </element1>
then the Labels in Document box would show
element2 element2/@attribute1 @attribute1 element3 element3/@attribute1
Double-clicking an element or attribute in the Labels in Document box will move it to the Labels Removed box, and will mark all segments associated with that element or attribute as non-translatable.
In the above example, if you double-clicked element2, then it would move over to the Labels Removed box, and the segment "This is translatable text" would be marked as non-translatable. If you double-clicked @attribute1, then the segments "true" and "false" would both be marked as non-translatable. If you double-clicked element2/@attribute1, however, only "true" would be marked as non-translatable, because it is the only segment that is both in element2 and attached to attribute1.
Saving a template
If you will be using the Segment Chooser on similar XML documents in the future, then you can create a template.
To create a template:
- Move all of the elements and attributes that you want to remove into the Labels Removed box.
- Type a name for the template in the "Save as Template" text box
- Click Save
- This will save the list of elements and attributes in the Labels Removed box. When you apply this template to another document, then any segments associated with those labels and attributes will be removed. You can add new labels by typing in the element or attribute name in the "Add Label" box.
To use an existing template:
On the project page:
- Select the documents that you want to apply the template to.
- Select "Apply Segment Chooser Template" from the Document Actions dropdown.
- Select the template you want to use.
- Click apply
In the Segment Chooser:
- Choose the template name from the dropdown box. The template will automatically be applied to the document.
