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(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

    TUStreamContext(CultureInfo, CultureInfo)

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

    Declaration
    public TUStreamContext(CultureInfo sourceCulture, CultureInfo targetCulture)
    Parameters
    Type Name Description
    System.Globalization.CultureInfo sourceCulture
    System.Globalization.CultureInfo targetCulture

    TUStreamContext(CultureInfo, CultureInfo, FieldDefinitions)

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

    Declaration
    public TUStreamContext(CultureInfo sourceCulture, CultureInfo targetCulture, FieldDefinitions fields)
    Parameters
    Type Name Description
    System.Globalization.CultureInfo 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.

    System.Globalization.CultureInfo 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.

    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 CultureInfo SourceCulture { get; }
    Property Value
    Type Description
    System.Globalization.CultureInfo

    TargetCulture

    The target culture to filter for in the TMX stream.

    Declaration
    public CultureInfo TargetCulture { get; }
    Property Value
    Type Description
    System.Globalization.CultureInfo

    On this page

    • Constructors
      • TUStreamContext()
      • TUStreamContext(LanguagePair)
      • TUStreamContext(LanguagePair, FieldDefinitions)
      • TUStreamContext(CultureInfo, CultureInfo)
      • TUStreamContext(CultureInfo, CultureInfo, FieldDefinitions)
    • Properties
      • CheckMatchingSublanguages
      • FieldDefinitions
      • MayAddNewFields
      • SourceCulture
      • TargetCulture
    Back to top Generated by DocFX