Search Results for

    Show / Hide Table of Contents

    Class AbstractTranslationMemoryCreator

    Inheritance
    object
    AbstractTranslationMemoryCreator
    Implements
    ITranslationMemoryCreator
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.TranslationMemoryApi.Upgrade
    Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
    Syntax
    public abstract class AbstractTranslationMemoryCreator : ITranslationMemoryCreator

    Constructors

    AbstractTranslationMemoryCreator()

    Declaration
    protected AbstractTranslationMemoryCreator()

    Properties

    DisplayName

    Gets a friendly description of the output translation memory, which can be used to display to the user.

    Declaration
    public abstract string DisplayName { get; }
    Property Value
    Type Description
    string

    MaximumCopyrightLength

    MaximumCopyrightLength represents the maximum copyright length that is supported.

    Declaration
    public virtual int MaximumCopyrightLength { get; }
    Property Value
    Type Description
    int

    MaximumDescriptionLength

    MaximumDescriptionLength represents the maximum description length that is supported.

    Declaration
    public virtual int MaximumDescriptionLength { get; }
    Property Value
    Type Description
    int

    MaximumNameLength

    MaximumNameLength represents the maximum name length that is supported.

    Declaration
    public virtual int MaximumNameLength { get; }
    Property Value
    Type Description
    int

    Methods

    CreateEmptyTranslationMemory(ITranslationMemorySetupOptions)

    Creates a new empty translation memory based on the specified setup information.

    Declaration
    public ITranslationMemory CreateEmptyTranslationMemory(ITranslationMemorySetupOptions setup)
    Parameters
    Type Name Description
    ITranslationMemorySetupOptions setup

    The setup information.

    Returns
    Type Description
    ITranslationMemory

    The newly created translation memory.

    CreateEmptyTranslationMemory(string, IEnumerable<LanguagePair>, FuzzyIndexes, BuiltinRecognizers, TokenizerFlags, WordCountFlags, FGASupport, TextContextMatchType, bool, bool)

    Declaration
    protected abstract ITranslationMemory CreateEmptyTranslationMemory(string name, IEnumerable<LanguagePair> languageDirections, FuzzyIndexes indexes, BuiltinRecognizers recognizers, TokenizerFlags tokenizerFlags, WordCountFlags wordCountFlags, FGASupport fgaSupport, TextContextMatchType textContextMatchType, bool UsesIdContextMatch, bool usesLegacyHashes)
    Parameters
    Type Name Description
    string name
    IEnumerable<LanguagePair> languageDirections
    FuzzyIndexes indexes
    BuiltinRecognizers recognizers
    TokenizerFlags tokenizerFlags
    WordCountFlags wordCountFlags
    FGASupport fgaSupport
    TextContextMatchType textContextMatchType
    bool UsesIdContextMatch
    bool usesLegacyHashes
    Returns
    Type Description
    ITranslationMemory

    IsValid(out string)

    Determines whether the translation memory creator is valid. It returns false and a user-friendly localised error message if it is not.

    Declaration
    public abstract bool IsValid(out string errorMessage)
    Parameters
    Type Name Description
    string errorMessage

    An error message

    Returns
    Type Description
    bool

    whether translation memory creator valid

    IsValidCopyright(string, out string)

    Determines whether the translation memory copyright is valid. It returns false and a user-friendly localised error message if it is not.

    Declaration
    public virtual bool IsValidCopyright(string translationMemoryCopyright, out string errorMessage)
    Parameters
    Type Name Description
    string translationMemoryCopyright

    translation memory copyright

    string errorMessage

    error message

    Returns
    Type Description
    bool

    whether the translation memory copyright is valid

    IsValidDescription(string, out string)

    Determines whether the translation memory description is valid. It returns false and a user-friendly localised error message if it is not.

    Declaration
    public virtual bool IsValidDescription(string translationMemoryDescription, out string errorMessage)
    Parameters
    Type Name Description
    string translationMemoryDescription

    translation memory description

    string errorMessage

    error message

    Returns
    Type Description
    bool

    whether the translation memory description is valid

    IsValidName(string, out string)

    Determines whether the translation memory name is valid. It returns false and a user-friendly localised error message if it is not.

    Declaration
    public virtual bool IsValidName(string translationMemoryName, out string errorMessage)
    Parameters
    Type Name Description
    string translationMemoryName

    translation memory name

    string errorMessage

    error message

    Returns
    Type Description
    bool

    whether the translation memory name is valid

    Implements

    ITranslationMemoryCreator
    In this article
    • Constructors
      • AbstractTranslationMemoryCreator()
    • Properties
      • DisplayName
      • MaximumCopyrightLength
      • MaximumDescriptionLength
      • MaximumNameLength
    • Methods
      • CreateEmptyTranslationMemory(ITranslationMemorySetupOptions)
      • CreateEmptyTranslationMemory(string, IEnumerable<LanguagePair>, FuzzyIndexes, BuiltinRecognizers, TokenizerFlags, WordCountFlags, FGASupport, TextContextMatchType, bool, bool)
      • IsValid(out string)
      • IsValidCopyright(string, out string)
      • IsValidDescription(string, out string)
      • IsValidName(string, out string)
    • Implements
    Back to top Generated by DocFX