Interface IXliffDocument
The root element of an XLIFF document is <xliff>. It contains a collection of <file> elements. Typically, each <file> element contains a set of <unit> elements that contain the text to be translated in the <source> child of one or more <segment> elements. Translations are stored in the <target> child of each <segment> element.
Namespace: UnityEditor.Localization.Plugins.XLIFF.Common
Assembly: Unity.Localization.Editor.dll
Syntax
public interface IXliffDocument
Properties
| Name | Description |
|---|---|
| FileCount | The number of files in the document. |
| SourceLanguage | The language that was translated from to TargetLanguage |
| TargetLanguage | The language that was translated to from SourceLanguage. |
| Version | The XLIFF version. |
Methods
| Name | Description |
|---|---|
| AddFile(IFile) | Adds a new file to the document. |
| AddNewFile() | Add a new files to the document and returns it. |
| GetFile(int) | Returns the file for the requested index. |
| RemoveFile(IFile) | Remove the files from the document. |
| Serialize(Stream) | Serialize the document into XLIFF. |