Search Results for

    Show / Hide Table of Contents

    Class TUStreamContext

    Represents "global" settings related to a TU stream, e.g. during import. Wraps access to language and field information.

    Inheritance
    System.Object
    TUStreamContext
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.IO.Streams
    Assembly: Sdl.LanguagePlatform.IO.dll
    Syntax
    public class TUStreamContext

    Constructors

    TUStreamContext()

    Initializes a new instance with invariant cultures and empty field declarations.

    Declaration
    public TUStreamContext()

    TUStreamContext(CultureCode, CultureCode)

    Initializes a new instance with the specified source cultures and empty field declarations.

    Declaration
    public TUStreamContext(CultureCode sourceCulture, CultureCode targetCulture)
    Parameters
    Type Name Description
    Sdl.Core.Globalization.CultureCode sourceCulture
    Sdl.Core.Globalization.CultureCode targetCulture

    TUStreamContext(CultureCode, CultureCode, FieldDefinitions)

    Initializes a new instance with the specified source cultures and field declarations.

    Declaration
    public TUStreamContext(CultureCode sourceCulture, CultureCode targetCulture, FieldDefinitions fields)
    Parameters
    Type Name Description
    Sdl.Core.Globalization.CultureCode sourceCulture

    The source culture to filter the TMX stream for. If null, the invariant culture will be used. The invariant culture means that no filtering takes place.

    Sdl.Core.Globalization.CultureCode targetCulture

    The target culture to filter the TMX stream for. If null, the invariant culture will be used. The invariant culture means that no filtering takes place.

    FieldDefinitions fields

    Pre-defined field declarations, or null.

    TUStreamContext(LanguagePair)

    Initializes a new instance with the specified language direction and empty field declarations.

    Declaration
    public TUStreamContext(LanguagePair languageDirection)
    Parameters
    Type Name Description
    LanguagePair languageDirection

    TUStreamContext(LanguagePair, FieldDefinitions)

    Initializes a new instance with the specified language direction and field declarations.

    Declaration
    public TUStreamContext(LanguagePair languageDirection, FieldDefinitions fields)
    Parameters
    Type Name Description
    LanguagePair languageDirection
    FieldDefinitions fields

    Properties

    CheckMatchingSublanguages

    Indicates whether the process should check if the sublanguages match.

    Declaration
    public bool CheckMatchingSublanguages { get; set; }
    Property Value
    Type Description
    System.Boolean

    FieldDefinitions

    The predefined or collected field definitions.

    Declaration
    public FieldDefinitions FieldDefinitions { get; }
    Property Value
    Type Description
    FieldDefinitions

    MayAddNewFields

    Whether or not the importer may add new fields to the TM.

    Declaration
    public bool MayAddNewFields { get; set; }
    Property Value
    Type Description
    System.Boolean

    SourceCulture

    The source culture to filter for in the TMX stream.

    Declaration
    public CultureCode SourceCulture { get; }
    Property Value
    Type Description
    Sdl.Core.Globalization.CultureCode

    TargetCulture

    The target culture to filter for in the TMX stream.

    Declaration
    public CultureCode TargetCulture { get; }
    Property Value
    Type Description
    Sdl.Core.Globalization.CultureCode

    On this page

    Back to top Generated by DocFX