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