Class TranslationMemoryExporter
This class implements exporting translation units into TMX files.
Inherited Members
Namespace: SdlSdl.LanguagePlatformTranslationMemoryApi
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 |
---|---|
int |
MaxTranslationUnitChunkSize
Defines the maximum allowed chunk size.
Declaration
public const int MaxTranslationUnitChunkSize = 200
Field Value
Type | Description |
---|---|
int |
Properties
ChunkSize
Gets or sets the size of the translation unit chunk size
Declaration
public int ChunkSize { get; set; }
Property Value
Type | Description |
---|---|
int | 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, bool)
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 |
---|---|---|
string | fileName | Name of the file. |
bool | 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 |
---|---|
EventHandlerBatchExportedEventArgs |
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