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
Properties
Id
Gets or sets the unique identifier for this translation unit.
public string Id { get; set; }
Property Value
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
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
Translate
Gets or sets a value indicating whether this unit should be translated.
public bool Translate { get; set; }
Property Value
XmlSpace
Gets or sets the xml:space attribute value (typically "preserve").
public string XmlSpace { get; set; }
Property Value
Methods
ToString(IXmlGeneratorDC)
Converts this trans-unit to an XML string representation.
public string ToString(IXmlGeneratorDC generator)
Parameters
generatorIXmlGeneratorDCXML generator to use for creating the XML.
Returns
- string
XML string representation of the trans-unit.