Interface IFileBasedTranslationMemory
Represents an file based Translation Memory
Inherited Members
Namespace: SdlSdl.LanguagePlatformTranslationMemoryApi
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
Syntax
public interface IFileBasedTranslationMemory : IAlignableTranslationMemory, ITranslationMemory2015, ITranslationMemory, ITranslationProvider, ISupportPlaceables, IReindexableTranslationMemory, ILocalTranslationMemory, IAdvancedContextTranslationMemory
Properties
CanBuildModel
Returns true if the TM has enough data for the translation model associated with it to be built
Declaration
bool CanBuildModel { get; }
Property Value
Type | Description |
---|---|
bool |
FGASupport
Returns the status of fine-grained-alignment support for the TM
Declaration
FGASupport FGASupport { get; set; }
Property Value
Type | Description |
---|---|
FGASupport |
ModelDetails
Provides details of the translation model associated with this file-based TM
Declaration
TranslationModelDetails ModelDetails { get; }
Property Value
Type | Description |
---|---|
TranslationModelDetails |
ShouldBuildModel
Indicates whether a build (or rebuild) of the translation model is recommended
Declaration
bool ShouldBuildModel { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
AlignTranslationUnits(TranslationUnit[])
Attempt to performs fine-grained alignment on a list of translation units as if they were part of the translation memory.
Declaration
AlignResult[] AlignTranslationUnits(TranslationUnit[] tus)
Parameters
Type | Name | Description |
---|---|---|
TranslationUnit | tus | Array of Translation Units |
Returns
Type | Description |
---|---|
AlignResult | Array of AlignResult enums reflecting the result of each alignment attempt. |
BuildModel()
Builds the translation model associated with this file-based TM
Declaration
void BuildModel()
ClearModel()
Clears the translation model
Declaration
void ClearModel()
Save(IProgress<TranslationMemoryProgress>, CancellationToken)
Performs a save operation
Declaration
void Save(IProgress<TranslationMemoryProgress> progress, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IProgressTranslationMemoryProgress | progress | |
CancellationToken | cancellationToken |
Events
TranslationModelProgress
Reports the progress of building a translation model
Declaration
event EventHandler<TranslationModelProgressEventArgs> TranslationModelProgress
Event Type
Type | Description |
---|---|
EventHandlerTranslationModelProgressEventArgs |