Class MergedProjectFile
Represents a merged translatable file, which consists of a number of child translatable files. This allows manipulating the content of all the child files within one physical SDLXLIFF file.
Inherited Members
Namespace: SdlSdl.ProjectAutomationCore
Assembly: Sdl.ProjectAutomation.Core.dll
Syntax
public class MergedProjectFile : ProjectFile
Remarks
To create a merged file, first add all the individual files to the project and subsequently call CreateMergedProjectFile(string, string, Guid[]) to create the merged file object. initially, the merge state (MergeState) of the file is NotMerged, which indicates that the merged SDLXLIFF file has not actually been created yet. In order to do this, you need to run a "Convert to Bilingual" task after which the merge state changes to Merged.
A merged project file with merge state Merged
can be used for all operations any other translatable project file can be used. The operation will then be performed on
the merged SDLXLIFF file.
The Generate Target Translation task (GenerateTargetTranslations) will effectively "split" the merged file again and produce all the native target language files. After this has happened, the merge state of the merged file changes to Split. After this point, no operations can be performed on the merged file anymore.
Properties
ChildFiles
Gets the translatable files this merged file consists of.
Declaration
public ProjectFile[] ChildFiles { get; }
Property Value
Type | Description |
---|---|
ProjectFile |
MergeState
Gets the current merge state of the file.
Declaration
public MergeState MergeState { get; }
Property Value
Type | Description |
---|---|
MergeState |