Search Results for

    Show / Hide Table of Contents

    Interface ITranslationMemoryCreator

    Represents an object that can create translation memories. This is used to create output translation memories (see TranslationMemoryCreator).

    Namespace: Sdl.LanguagePlatform.TranslationMemoryApi.Upgrade
    Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
    Syntax
    public interface ITranslationMemoryCreator

    Properties

    DisplayName

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

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

    MaximumCopyrightLength

    MaximumCopyrightLength represents the maximum copyright length that is supported.

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

    MaximumDescriptionLength

    MaximumDescriptionLength represents the maximum description length that is supported.

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

    MaximumNameLength

    MaximumNameLength represents the maximum name length that is supported.

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

    Methods

    CreateEmptyTranslationMemory(ITranslationMemorySetupOptions)

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

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

    The setup information.

    Returns
    Type Description
    ITranslationMemory

    The newly created translation memory.

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

    In this article
    • Properties
      • DisplayName
      • MaximumCopyrightLength
      • MaximumDescriptionLength
      • MaximumNameLength
    • Methods
      • CreateEmptyTranslationMemory(ITranslationMemorySetupOptions)
      • IsValid(out string)
      • IsValidCopyright(string, out string)
      • IsValidDescription(string, out string)
      • IsValidName(string, out string)
    Back to top Generated by DocFX