Class TranslationMemoryExporter
This class implements exporting translation units into TMX files.
Inherited Members
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.
Declaration
public const int DefaultTranslationUnitChunkSize = 25
Field Value
Type | Description |
---|---|
System.Int32 |
MaxTranslationUnitChunkSize
Defines the maximum allowed chunk size.
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.
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 |
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