Table of Contents

Class TransUnit

Namespace
SunamoDevCode.FileFormats
Assembly
SunamoDevCode.dll

Represents a trans-unit element in an XLF (XML Localization Interchange File Format) file.

public class TransUnit
Inheritance
TransUnit
Inherited Members
Extension Methods

Fields

TransUnitTagName

The XML tag name for trans-unit elements.

public const string TransUnitTagName = "trans-unit"

Field Value

string

Properties

Id

Gets or sets the unique identifier for this translation unit.

public string Id { get; set; }

Property Value

string

Source

Gets or sets the source text (original language). The setter automatically decodes, trims, and HTML-encodes the value.

public string Source { get; set; }

Property Value

string

Target

Gets or sets the target text (translated language). The setter automatically decodes, trims, and HTML-encodes the value.

public string Target { get; set; }

Property Value

string

Translate

Gets or sets a value indicating whether this unit should be translated.

public bool Translate { get; set; }

Property Value

bool

XmlSpace

Gets or sets the xml:space attribute value (typically "preserve").

public string XmlSpace { get; set; }

Property Value

string

Methods

ToString(IXmlGeneratorDC)

Converts this trans-unit to an XML string representation.

public string ToString(IXmlGeneratorDC generator)

Parameters

generator IXmlGeneratorDC

XML generator to use for creating the XML.

Returns

string

XML string representation of the trans-unit.