Class TranslationMemoryImporter
This class exposes functionality to import a bilingual TMX file or a bilingual document into a translation memory.
Inherited Members
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 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 |
---|---|---|
System.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 |
---|---|---|
System.String | file |
Returns
Type | Description |
---|---|
System.Boolean |
Events
BatchImported
Occurs when a TU batch is imported
Declaration
public event EventHandler<BatchImportedEventArgs> BatchImported
Event Type
Type | Description |
---|---|
System.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