Dear All,
My goal is to automate locking segment(s) (based on XML tags) on SDL project before translators start their job. I tried to archive it through Project Template but unfortunately it is not possible (SDL Studio 2019 SR3). Maybe I miss something?
Thanks to Project Template I am able to "mark" segments which I want to lock. Next step is to create small app which will do the job in sdlxliff file.
So:
- I created: public class ParagraphUnitsProcessor : AbstractBilingualContentProcessor where I get the Collection of IParagraphUnit from sdlxliff
- I iterate through the collection, select segments based on XML tags from source, and get SegmentPairs from IParagraphUnit
- I iterate through SegmentPairs and lock the segment as follow
segmentPair.Properties.IsLocked = true;
segmentPair.Properties.ConfirmationLevel = Sdl.Core.Globalization.ConfirmationLevel.Unspecified;
I miss the part (basically do not know) is the way how to save the job, so that next time the project is launched segments will be locked.
Would you be so kind and let me know if what I did since now is correct and how to save the locked segments?
Do I need to use Visitor for this task?
Thank you so much!
Kind regards,
Michal.