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 |
---|---|
File |
The number of files in the document. |
Source |
The language that was translated from to Target |
Target |
The language that was translated to from Source |
Version | The XLIFF version. |
Methods
Name | Description |
---|---|
Add |
Adds a new file to the document. |
Add |
Add a new files to the document and returns it. |
Get |
Returns the file for the requested index. |
Remove |
Remove the files from the document. |
Serialize(Stream) | Serialize the document into XLIFF. |