Batch editing of Project Settings Templates in Studio 2021

I have a lot of different project settings templates in Studio 2021 (relating to the kinds of penalties applied and which TMs are accessed, as well as in terms of Lookup/Concordance/Update) and typically would like to be able to add 2 file-based TMs to each and remove 1 file-based TM from each, or to change the drives they are stored on. Is there a way to do this in batches?

Would there be any particular risk to changing the .sdltpl file - e.g. by changing the yellow highlighted part in Notepad++?

<CascadeEntryItem PerformConcordanceSearch="true" Penalty="0" PerformUpdate="true" PerformNormalSearch="true">
<MainTranslationProviderItem Uri="sdltm.file:///XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.sdltm" Enabled="true" />

Thanks for any suggestions!

Michael Bailey

emoji
Parents
  • Hi ,

    I’ve never done that, but I think it should work.

    I believe that editing a TM path should have no problem, but adding a new TM in Notepad++ can be a bit tricky.

    Also, I’ve opened a couple of my project templates in Notepad++, and TM paths are in 2 different locations. Here are the XPaths:

    • /ProjectTemplate/LanguageDirections/LanguageDirection/CascadeItem/CascadeEntryItem/MainTranslationProviderItem/@Uri
    • /ProjectTemplate/CascadeItem/CascadeEntryItem/MainTranslationProviderItem/@Uri

    It don’t know if your project templates are different...

    When you say you have a lot of templates, I guess you have a lot… :-) I mean, that I wouldn’t go this manual way if there were only 20 project templates.

    Of course, I’d keep a backup and test one project template before implementing the changes to all project templates.

    emoji
Reply
  • Hi ,

    I’ve never done that, but I think it should work.

    I believe that editing a TM path should have no problem, but adding a new TM in Notepad++ can be a bit tricky.

    Also, I’ve opened a couple of my project templates in Notepad++, and TM paths are in 2 different locations. Here are the XPaths:

    • /ProjectTemplate/LanguageDirections/LanguageDirection/CascadeItem/CascadeEntryItem/MainTranslationProviderItem/@Uri
    • /ProjectTemplate/CascadeItem/CascadeEntryItem/MainTranslationProviderItem/@Uri

    It don’t know if your project templates are different...

    When you say you have a lot of templates, I guess you have a lot… :-) I mean, that I wouldn’t go this manual way if there were only 20 project templates.

    Of course, I’d keep a backup and test one project template before implementing the changes to all project templates.

    emoji
Children