Is there a way to update/pretranslate only some source or translation lists by macro?

Hi,

in my workflow, I'm using a macro tor updating and leveraging the source string lists, filtering some strings and to update and pretranslate the target string lists afterwards.

Unfortunately, I didn't found a possibility to update and leverage the source lists as a collection - not by updating/leveraging each source list one by one instead of all source lists as a collection.
And I didn't found a possibility to update and pretranslate the target string lists - for a single language - as a collection instead of one by one, too.

Please be so kind to let me know, how updating, leveraging and pretranslating can be run as a single action by a macro instead of updating, laveraging and pretranslating each string list one by one.
If you have any further questions, please don't hesitate to let me know.
Thank you very much in advance for your support.

Kind regards and have a nice day.
Nils

emoji
Parents Reply
  • PslTransList.Leverage is a method that can be called file by file only. Running Leverage on a batch of translation or source lists is just possible using the UI. So a collection cannot help here, because the Leverage must also be called file by file in the methods of the collection class.

    What might help regarding performance is that fact that each method that runs on complete lists (like Leverage) will automatically save its changes when it ends. When your project is on a shared network drive and unpacked, that might take ages. To prevent this, please use

    prj.SuspendSaving
    For Each TranslationList In Project.TransLists
        If TranslationList.Language.LangID = Language.LangID Then
            TranslationList.Leverage(EnglishProject)
        End If
    Next
    prj.ResumeSaving

    This might already help to boost performance.

    emoji
Children