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
    System.String

    MaximumCopyrightLength

    MaximumCopyrightLength represents the maximum copyright length that is supported.

    Declaration
    int MaximumCopyrightLength { get; }
    Property Value
    Type Description
    System.Int32

    MaximumDescriptionLength

    MaximumDescriptionLength represents the maximum description length that is supported.

    Declaration
    int MaximumDescriptionLength { get; }
    Property Value
    Type Description
    System.Int32

    MaximumNameLength

    MaximumNameLength represents the maximum name length that is supported.

    Declaration
    int MaximumNameLength { get; }
    Property Value
    Type Description
    System.Int32

    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
    System.String errorMessage

    An error message

    Returns
    Type Description
    System.Boolean

    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
    System.String translationMemoryCopyright

    translation memory copyright

    System.String errorMessage

    error message

    Returns
    Type Description
    System.Boolean

    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
    System.String translationMemoryDescription

    translation memory description

    System.String errorMessage

    error message

    Returns
    Type Description
    System.Boolean

    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
    System.String translationMemoryName

    translation memory name

    System.String errorMessage

    error message

    Returns
    Type Description
    System.Boolean

    whether the translation memory name is valid

    On this page

    • 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