Search Results for

    Show / Hide Table of Contents

    Class TranslationMemoryImporter

    This class exposes functionality to import a bilingual TMX file or a bilingual document into a translation memory.

    Inheritance
    object
    ImporterAsync
    Importer
    TranslationMemoryImporter
    Inherited Members
    Importer.Import(string, IImportDestination)
    Importer.OnBatchImportedAsync(ImportStatistics, ImportResults)
    ImporterAsync.DefaultTranslationUnitChunkSize
    ImporterAsync.MaxTranslationUnitChunkSize
    ImporterAsync.MinTranslationUnitChunkSize
    ImporterAsync.Buffer
    ImporterAsync.ErrorOutput
    ImporterAsync.BadTuCount
    ImporterAsync._batchImportedAsync
    ImporterAsync.ImportAsync(string, IImportDestinationAsync)
    ImporterAsync.GetDefaultFileTypeManager()
    ImporterAsync.Flush(ImportStatistics, IImportDestinationAsync)
    ImporterAsync.OutputErrorTuAsync(TranslationUnit, ImportResult)
    ImporterAsync.Statistics
    ImporterAsync.FileTypeManager
    ImporterAsync.CanChangeImportFile
    ImporterAsync.TranslationMemoryUserIdSetting
    ImporterAsync.ChunkSize
    ImporterAsync.Exclusive
    ImporterAsync.ImportSettings
    ImporterAsync.InvalidTranslationUnitsExportPath
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.TranslationMemoryApi
    Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
    Syntax
    public class TranslationMemoryImporter : Importer

    Constructors

    TranslationMemoryImporter()

    Initializes a new instance of the TranslationMemoryImporter class.

    Declaration
    public TranslationMemoryImporter()

    TranslationMemoryImporter(ITranslationMemoryLanguageDirection)

    Initializes a new instance of the TranslationMemoryImporter class.

    Declaration
    public TranslationMemoryImporter(ITranslationMemoryLanguageDirection languageDirection)
    Parameters
    Type Name Description
    ITranslationMemoryLanguageDirection languageDirection

    The language direction.

    Properties

    TranslationMemoryLanguageDirection

    Gets or sets the translation memory language direction.

    Declaration
    public ITranslationMemoryLanguageDirection TranslationMemoryLanguageDirection { get; }
    Property Value
    Type Description
    ITranslationMemoryLanguageDirection

    The translation memory language direction.

    Methods

    GetServerImportStatus()

    Checks the server for the import status

    Declaration
    public ServerImportStatus GetServerImportStatus()
    Returns
    Type Description
    ServerImportStatus

    Import(string)

    Starts the import from the specified file.

    Declaration
    public void Import(string fileName)
    Parameters
    Type Name Description
    string fileName

    The file name.

    IsSupportedByTmServiceImport(string)

    Check if the file is supported for TMService import

    Declaration
    public static bool IsSupportedByTmServiceImport(string file)
    Parameters
    Type Name Description
    string file
    Returns
    Type Description
    bool

    Events

    BatchImported

    Occurs when a TU batch is imported

    Declaration
    public event EventHandler<BatchImportedEventArgs> BatchImported
    Event Type
    Type Description
    EventHandler<BatchImportedEventArgs>
    Remarks

    Hides the base class event (which our handler re-fires through this one) so that existing client code will see no namespace change after refactoring

    In this article
    • Constructors
      • TranslationMemoryImporter()
      • TranslationMemoryImporter(ITranslationMemoryLanguageDirection)
    • Properties
      • TranslationMemoryLanguageDirection
    • Methods
      • GetServerImportStatus()
      • Import(string)
      • IsSupportedByTmServiceImport(string)
    • Events
      • BatchImported
    Back to top Generated by DocFX