Search Results for

    Show / Hide Table of Contents

    Class TranslationMemoryExporter

    This class implements exporting translation units into TMX files.

    Inheritance
    System.Object
    Exporter
    TranslationMemoryExporter
    Inherited Members
    Exporter.Export(IExportOrigin, String, Boolean)
    Exporter.TmxExportFormat
    Exporter.FilterExpression
    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.TranslationMemoryApi
    Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
    Syntax
    public class TranslationMemoryExporter : Exporter

    Constructors

    TranslationMemoryExporter()

    Initializes a new instance of the TranslationMemoryExporter class.

    Declaration
    public TranslationMemoryExporter()

    TranslationMemoryExporter(ITranslationMemoryLanguageDirection)

    Initializes a new instance of the TranslationMemoryExporter class with the specified languageDirection.

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

    The translation memory language direction to export from.

    Fields

    DefaultTranslationUnitChunkSize

    Defines the default size for a chunk of translation units to be processed in one roundtrip through the import/export process. The default chunk size is 50.

    Declaration
    public const int DefaultTranslationUnitChunkSize = 25
    Field Value
    Type Description
    System.Int32

    MaxTranslationUnitChunkSize

    Defines the maximum allowed chunk size. The maximum allowed chunk size is 200.

    Declaration
    public const int MaxTranslationUnitChunkSize = 200
    Field Value
    Type Description
    System.Int32

    Properties

    ChunkSize

    Gets or sets the size of the translation unit chunk size

    Declaration
    public int ChunkSize { get; set; }
    Property Value
    Type Description
    System.Int32

    The size of the chunk.

    Remarks

    The exporter implementation has always ignored this value. It is left in this class following refactoring, purely to retain binary compatibility

    TranslationMemoryLanguageDirection

    Gets or sets the translation memory language direction.

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

    The translation memory language direction.

    Methods

    Export(String, Boolean)

    Starts the export process with the configured settings into a file with the specified name. This method supports GZip compressed files, such as: export.tmx.gz

    Declaration
    public void Export(string fileName, bool overwriteExisting)
    Parameters
    Type Name Description
    System.String fileName

    Name of the file.

    System.Boolean overwriteExisting

    if set to true [overwrite existing].

    Events

    BatchExported

    Occurs when ever a batch is imported, set Cancel = True to stop the export.

    Declaration
    public event EventHandler<BatchExportedEventArgs> BatchExported
    Event Type
    Type Description
    System.EventHandler<BatchExportedEventArgs>
    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

    On this page

    • Constructors
      • TranslationMemoryExporter()
      • TranslationMemoryExporter(ITranslationMemoryLanguageDirection)
    • Fields
      • DefaultTranslationUnitChunkSize
      • MaxTranslationUnitChunkSize
    • Properties
      • ChunkSize
      • TranslationMemoryLanguageDirection
    • Methods
      • Export(String, Boolean)
    • Events
      • BatchExported
    Back to top Generated by DocFX