Namespace Sdl.LanguagePlatform.TranslationMemory.EditScripts
Classes
EditAction
Represents a single edit action which can be applied to a TU.
EditActionChangeFieldValue
An EditAction which is used to change a field's value.
EditActionDeleteAllFieldValues
Deletes all field values, optionally including system fields, such as context information. Will not alter core system fields (creation date, use count, etc.)
EditActionDeleteFieldValue
Deletes the fields' values from the TU. Will do nothing on core system fields, but does reset TU contexts, if defined. Note that the field itself will not be deleted from the TM's setup.
EditActionDeleteTags
An edit action which will remove all tags from the TU's segments. Depending on the placeholder replacement mode, textholder tags are either deleted or kept. It is recommended to keep text placeholders, as otherwise the linguistic structure of the segment may be corrupted.
EditActionRenameField
Renames a field or a field's picklist values. System fields cannot be renamed. The subsequent processor needs to know how to handle renamed fields - i.e. an importer would need to be allowed to add new fields on-the-fly unless the TM is already set up. If fields or picklist values are renamed, in-place editing in a UI may fail unless the renamed objects are already defined in the TM's setup.
If a field is renamed but a value with that renamed field value already exists, the original field value will be dropped. Note that the field type will remain as is.
The action can also be used to rename picklist values. If the PicklistValueMap is non-null, then that mapping will be applied to the values of picklist fields. If you only want to rename the picklist values, but not the field itself, set ToName to the same value as FromName.
EditActionSearchReplace
An edit action to run a search/replace operation. Note that the search pattern will generally not be found if the text is interrupted by tags.
EditScript
An edit script is an ordered collection of edit actions which can be applied to a translation unit.
EditScriptApplier
Applies an edit script to a translation unit.
Enums
Continuation
Enumerates the ways how to continue the interpretation of an edit script if an action was executed.
EditUpdateMode
Enumerates the ways how a translation unit that has been changed by an edit script should be updated in the TM.
Mode
Describes the different modes how field values can be changed.
PatternType
Describes the type of search and/or replace patterns.