Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Sets the segment editable flag out of configurable other data, normally segment meta databased on values set in the segment meta table. Which meta value does influence the editable state of the segment is configurable in database.

The here mentioned segment meta data is translate5 specific and has nothing to do with meta data of 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 is found in target (all source terms are blue).

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.

Configuration

Config nameDefault valueDescription
runtimeOptions.plugins.LockSegmentsBasedOnConfig.metaToLock.notTranslated00 or 1; decides, if segments with metadata "notTranslated" will be locked from editing by this plugin.
runtimeOptions.plugins.LockSegmentsBasedOnConfig.metaToLock.transitLockedForRefMat00 or 1; decides, if segments with metadata "transitLockedForRefMat" will be locked from editing by this plugin.
runtimeOptions.plugins.LockSegmentsBasedOnConfig.metaToLock.noMissingTargetTermOnImport00 or 1; decides, if segments with metadata "noMissingTargetTermOnImport" will be locked from editing by this plugin.