Hi,
I've developed a MT provider plugin (running on Trados Studio 2022 - v17.1), which includes a BatchTask function for reporting the finalized translations.
For this reporting function, it's important to know the correct ProjectID.
This generally works well *except* when the MT Provider plugin is used to pretranslate a file during the project creation wizard. According to our testing, it appears the ProjectID (accessible via SdlTradosStudio.Application.GetController<ProjectsController>()) at that point is still that of the previously opened project.
It's easy to understand why this might be so, but unfortunately it really does not fit with my use case.
Is there any way to establish the new ProjectID at this point? Or is there any way for the MT Provider plugin (e.g. TranslationProviderLanguageDirection function) to detect it is being called from the Project creation wizard so that alternative arrangements can be made?
Many thanks,
Jon