Interface IConversionContext
Namespace: Sdl.TranslationStudioAutomation.IntegrationApi.Packaging
Assembly: Sdl.TranslationStudioAutomation.IntegrationApi.dll
Syntax
public interface IConversionContext
Methods
CheckForExistingProject(Guid)
Returns the FileBasedProject object associated to the given ID if the project is loaded within the Studio context
Declaration
IProject CheckForExistingProject(Guid guid)
Parameters
Type | Name | Description |
---|---|---|
Guid | guid | Unique identifier (Guid) of the project to be searched for |
Returns
Type | Description |
---|---|
IProject | Null if the project does not exist in the Trados Studio context |
CreatePackage(String, Language, DateTime, String, Guid)
Creates a Package object that can be manipulated before being imported into Trados Studio
Declaration
IPackage CreatePackage(string projectName, Language sourceLanguage, DateTime createdAt, string createdBy, Guid originalProjectGuid)
Parameters
Type | Name | Description |
---|---|---|
String | projectName | |
Language | sourceLanguage | |
DateTime | createdAt | |
String | createdBy | |
Guid | originalProjectGuid |
Returns
Type | Description |
---|---|
IPackage | The PackageProject to be manipulated |
OpenPackage(String)
Creates a Package object based on physical package
Declaration
IPackage OpenPackage(string packageFilePath)
Parameters
Type | Name | Description |
---|---|---|
String | packageFilePath |
Returns
Type | Description |
---|---|
IPackage |