|Sets the segment editable flag based on configurable other data, usually segment meta data.|
|Type||Core plug-in (delivered with translate5 core)|
Sets the segment editable flag based on values set in the segment meta table. The meta values influencing the editable state of the segment can be configured in the database.
The segment meta data mentioned here is specific to translate5 and has nothing to do with meta data of the imported file format.
Currently three meta fields are used by this plugin:
- notTranslated: Currently for transit files only. Set to true for segments where transit status is "not translated" or target field is empty.
- transitLockedForRefMat: Set to true for segments where transit status is "locked for ref mat".
- noMissingTargetTermOnImport: Set to true if for each term in source a translation from the TBX file is found in target (all source terms are blue or brown).
All three states are set on task import. Based on this three meta states this plug-in can be configured to lock the segment or not.
|Config name||Default value||Description|
|runtimeOptions.plugins.LockSegmentsBasedOnConfig.metaToLock.notTranslated||0||0 or 1; decides if segments with metadata "notTranslated" will be locked from editing by this plugin. (Transit only)|
|runtimeOptions.plugins.LockSegmentsBasedOnConfig.metaToLock.transitLockedForRefMat||0||0 or 1; decides if segments with metadata "transitLockedForRefMat" will be locked from editing by this plugin. (Transit only)|
|runtimeOptions.plugins.LockSegmentsBasedOnConfig.metaToLock.noMissingTargetTermOnImport||0||0 or 1; decides if segments with metadata "noMissingTargetTermOnImport" will be locked from editing by this plugin.|