Class TranslationMemoryImporter
This class exposes functionality to import a bilingual TMX file or a bilingual document into a translation memory.
Inherited Members
Namespace: SdlSdl.LanguagePlatformTranslationMemoryApi
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 |
---|---|
EventHandlerBatchImportedEventArgs |
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