Click or drag to resize
FileBasedTranslationMemory Class
Represents a bilingual file-based translation memory.
Inheritance Hierarchy
SystemObject
  Sdl.LanguagePlatform.TranslationMemoryApiAbstractLocalTranslationMemory
    Sdl.LanguagePlatform.TranslationMemoryApiFileBasedTranslationMemory

Namespace: Sdl.LanguagePlatform.TranslationMemoryApi
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi (in Sdl.LanguagePlatform.TranslationMemoryApi.dll) Version: 1.6.0.0 (1.14.4157.0)
Syntax
public class FileBasedTranslationMemory : AbstractLocalTranslationMemory, 
	IAlignableTranslationMemory, ITranslationMemory2015, ITranslationMemory, ITranslationProvider

The FileBasedTranslationMemory type exposes the following members.

Constructors
  NameDescription
Public methodFileBasedTranslationMemory(String)
Opens an existing file-based translation memory.
Public methodFileBasedTranslationMemory(Uri)
Opens an existing file-based translation memory given the Uri for a FileBasedTranslationMemory class.
Public methodFileBasedTranslationMemory(String, String)
Opens an existing file-based translation memory and unlocks it with the specified password.
Public methodFileBasedTranslationMemory(String, String, CultureInfo, CultureInfo, FuzzyIndexes, BuiltinRecognizers, TokenizerFlags, WordCountFlags)
Creates a new file-based translation memory.
Public methodFileBasedTranslationMemory(String, String, CultureInfo, CultureInfo, FuzzyIndexes, BuiltinRecognizers, TokenizerFlags, WordCountFlags, Boolean)
Creates a new file-based translation memory.
Top
Properties
  NameDescription
Public propertyAlignedPredatedTranslationUnitCount
Gets the number of TUs that were added after the model used to align them was built, but before the latest model was built.
Public propertyAlignerDefinition
Gets the AlignerDefinition that has been set for this TM, or null if there is none
Public propertyCanBuildModel
Indicates whether the TM has enough data for the translation model associated with it to be built
Public propertyCopyright
Gets or sets the copyright string for this translation memory.
(Inherited from AbstractLocalTranslationMemory.)
Public propertyCreationDate
Gets the creation date of this translation memory.
(Inherited from AbstractLocalTranslationMemory.)
Public propertyCreationUserName
Gets the creation user of this translation memory.
(Inherited from AbstractLocalTranslationMemory.)
Public propertyDescription
Gets or sets a general description of the translation memory.
(Inherited from AbstractLocalTranslationMemory.)
Public propertyExpirationDate
Gets or sets the expiration date for this translation memory.
(Inherited from AbstractLocalTranslationMemory.)
Public propertyFGASupport
Returns the status of fine-grained-alignment support for the TM
Public propertyFieldDefinitions
Gets the custom fields defined for this TM.
(Inherited from AbstractLocalTranslationMemory.)
Public propertyFilePath
Gets the file path.
Public propertyFuzzyIndexes
Gets or sets the set of fuzzy indices defined on this TM.
(Inherited from AbstractLocalTranslationMemory.)
Public propertyFuzzyIndexStatisticsRecomputedAt
Gets the time of the last fuzzy index statistics recomputation of this TM, if available.
(Inherited from AbstractLocalTranslationMemory.)
Public propertyFuzzyIndexStatisticsSize
Gets the size of the TM at the point of the last fuzzy index statistics recomputation, if available.
(Inherited from AbstractLocalTranslationMemory.)
Public propertyFuzzyIndexTuningSettings
Gets or sets the fuzzy index tuning settings for the TM.
(Inherited from AbstractLocalTranslationMemory.)
Public propertyHasAdministratorPassword
Gets a value indicating whether this instance has an administrator password.
Public propertyHasMaintenancePassword
Gets a value indicating whether this instance has maintenance password.
Public propertyHasReadOnlyPassword
Gets a value indicating whether this instance has read only password.
Public propertyHasReadWritePassword
Gets a value indicating whether this instance has read write password.
Public propertyIsProtected
Gets a value indicating whether this instance is protected one or more passwords.
Public propertyIsReadOnly (Inherited from AbstractLocalTranslationMemory.)
Public propertyIsUnlockedWithSufficientPermissions
Determines whether the file based translation memory has been unlocked with sufficient permissions to be deemed available. When null, no attempt has been made to unlock the file based translation memory and obtain sufficient permission. When false, an attempt has been made to unlock the file based translation memory and obtain sufficient permission that failed. When true, an attempt has been made to unlock the file based translation memory and obtain sufficient permission that succeeded. If this is false then StatusInfo. Available will be false with a message "Not unlocked with sufficient permissions." This property should be set by the calling code after the user has been challenged.
Public propertyLanguageDirection
Gets the one language direction contained in this translation memory.
(Inherited from AbstractLocalTranslationMemory.)
Public propertyLanguageResourceBundles
Gets the language resources which are associated with this TM.
(Inherited from AbstractLocalTranslationMemory.)
Public propertyModelDetails
Provides details of the translation model associated with this file-based TM
Public propertyName
Gets the name of the translation memory.
(Inherited from AbstractLocalTranslationMemory.)
Public propertyRecognizers
Gets or sets the recognizers which are enabled for this TM.
Remarks
Note that changing recognizers may require reindexing. In addition, in some cases duplicate TUs may be in the TM if recognizers are enabled which have been disabled before.
(Inherited from AbstractLocalTranslationMemory.)
Public propertyShouldAlign
Indicates whether 'quick' alignment (i.e. alignment of any unaligned TUs, plus postdated TUs for which a newer model is now available) is recommended
Public propertyShouldBuildModel
Indicates whether a build (or rebuild) of the translation model is recommended
Public propertyStatusInfo
Gets the status info for the translation memory. A file-based translation memory is considered available if the translation memory file exists and if the translation memory has been unlocked by calling Unlock(String) (in case the translation memory) is password protected.
(Overrides AbstractLocalTranslationMemoryStatusInfo.)
Public propertySupportedLanguageDirections
Gets the list of language directions which are supported by this translation memory.
(Inherited from AbstractLocalTranslationMemory.)
Public propertySupportsConcordanceSearch
SupportsConcordanceSearch. Always true for TMs.
(Inherited from AbstractLocalTranslationMemory.)
Public propertySupportsDocumentSearches
SupportsDocumentSearches. Always true for TMs.
(Inherited from AbstractLocalTranslationMemory.)
Public propertySupportsFilters
SupportsFilters. Always true for TMs.
(Inherited from AbstractLocalTranslationMemory.)
Public propertySupportsFuzzySearch
SupportsFuzzySearch. Always true for TMs.
(Inherited from AbstractLocalTranslationMemory.)
Public propertySupportsMultipleResults
SupportsMultipleResults. Always true for TMs.
(Inherited from AbstractLocalTranslationMemory.)
Public propertySupportsPenalties
SupportsPenalties. Always true for TMs.
(Inherited from AbstractLocalTranslationMemory.)
Public propertySupportsPlaceables
SupportsPlaceables. Always true for TMs.
(Inherited from AbstractLocalTranslationMemory.)
Public propertySupportsScoring
SupportsScoring. Always true for TMs.
(Inherited from AbstractLocalTranslationMemory.)
Public propertySupportsSearchForTranslationUnits
SupportsSearchForTranslationUnits. Always true for TMs.
(Inherited from AbstractLocalTranslationMemory.)
Public propertySupportsSourceConcordanceSearch
SupportsSourceConcordanceSearch. Always true for TMs.
(Inherited from AbstractLocalTranslationMemory.)
Public propertySupportsStructureContext
SupportsStructureContext. Always true for TMs.
(Inherited from AbstractLocalTranslationMemory.)
Public propertySupportsTaggedInput
SupportsTaggedInput. Always true for TMs.
(Inherited from AbstractLocalTranslationMemory.)
Public propertySupportsTargetConcordanceSearch
SupportsTargetConcordanceSearch. Returns
true
if this translation memory has a word-based fuzzy index for the target language (see FuzzyIndexes).
(Inherited from AbstractLocalTranslationMemory.)
Public propertySupportsTranslation
SupportsTranslation. Always true for TMs.
(Inherited from AbstractLocalTranslationMemory.)
Public propertySupportsUpdate
SupportsUpdate. Always true for TMs.
(Inherited from AbstractLocalTranslationMemory.)
Public propertySupportsWordCounts
SupportsWordCounts. Always true for TMs.
(Inherited from AbstractLocalTranslationMemory.)
Public propertyTokenizerFlags
Gets or sets the flags affecting tokenizer behaviour for this TM.
Remarks
Note that changing tokenizer flags may require reindexing.
Public propertyTranslationMethod (Inherited from AbstractLocalTranslationMemory.)
Public propertyTranslationUnitNewerThanModelCount
Gets the number of TUs that have been added subsequent to the date of the translation model
Public propertyUnalignedTranslationUnitCount
Gets the number of TUs that do not have fine-grained alignment information.
Public propertyUri
Gets a URI which uniquely identifies this translation memory.
(Inherited from AbstractLocalTranslationMemory.)
Public propertyUserName
Sets the user name on the container to override the default windows user ID
Public propertyWordCountFlags
Gets or sets the flags affecting word count behaviour for this TM.
Top
Methods
  NameDescription
Public methodAlignTranslationUnits(Boolean, Boolean, RegularIterator)
Performs fine-grained alignment on translation units
Public methodAlignTranslationUnits(Boolean, Boolean, CancellationToken, IProgressInt32)
Performs bulk fine-grained alignment on translation units in a TM
Public methodBuildModel
Builds the translation model associated with this file-based TM
Public methodClearAlignmentData
Deletes any fine-grained alignment data from the TM
Public methodClearFuzzyCache
Clear the fuzzy cache of the TM
(Inherited from AbstractLocalTranslationMemory.)
Public methodClearModel
Protected methodCreateFileBasedTranslationMemoryLanguageDirection
Public methodDelete
Deletes this translation memory.
(Inherited from AbstractLocalTranslationMemory.)
Public methodEquals
Determines whether the specified Object is equal to this instance.
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberGetFileBasedTranslationMemoryFilePath
Gets the file-based translation memory file path from the given Uri.
Public methodStatic memberGetFileBasedTranslationMemoryName
Gets the file-based translation memory file name (excluding the path) from the given Uri.
Public methodStatic memberGetFileBasedTranslationMemoryScheme
Gets the file-based translation memory scheme.
Public methodStatic memberGetFileBasedTranslationMemoryUri
Gets the file-based translation memory Uri from the given file path.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ObjectGetHashCode.)
Public methodGetLanguageDirection
Gets a specified translation memory language direction.
(Inherited from AbstractLocalTranslationMemory.)
Public methodGetTranslationUnitCount
Gets the total translation unit count for all language directions in this translation memory.
(Inherited from AbstractLocalTranslationMemory.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValidAccessModes
Returns the list of access modes that are valid for the given permission. So if the password is set for one of the returned access modes, the specified permission will be granted. For example, if the permission is "batchedittu", the valid access modes would be Maintenance and Administrator.
Public methodHasAccessModePermission
Returns true if permission is granted to access the TM with the specified access mode.
Public methodHasPermission
Checks whether the current user has the specified permission on this translation memory.
(Overrides AbstractLocalTranslationMemoryHasPermission(String).)
Public methodStatic memberIsFileBasedTranslationMemory
Determines whether the given Uri represents a file-based translation memory.
Public methodIsPasswordSet
Determines whether a specified password is already in use on the TM.
Public methodLoadState
Loads previously serialized state information into this translation provider instance.
(Inherited from AbstractLocalTranslationMemory.)
Public methodMeasureModelFitness
Measures how well the model 'fits' the TM content, by counting out-of-vocabulary words
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnProgress(TranslationModelProgressEventArgs)
Protected methodOnProgress(Object, TranslationModelProgressEventArgs)
Public methodRecomputeFuzzyIndexStatistics
Synchronously recomputes the fuzzy index statistics of the TM.
(Inherited from AbstractLocalTranslationMemory.)
Public methodRefresh
Enforces the currently stored setup information to be refreshed. Note that this may initiate a full server/database roundtrip.
(Inherited from AbstractLocalTranslationMemory.)
Public methodRefreshStatusInfo
Refreshes the current status information.
(Overrides AbstractLocalTranslationMemoryRefreshStatusInfo.)
Public methodSave
Saves changes made to properties of this translation memory.
(Inherited from AbstractLocalTranslationMemory.)
Public methodSerializeState
Serializes any meaningful state information for this translation provider that can be stored in projects and sent around the supply chain.
(Inherited from AbstractLocalTranslationMemory.)
Public methodSetAdministratorPassword
Sets the administrator password and unlocks the TM so the TM is open in administrator mode.
Public methodSetMaintenancePassword
Sets the maintenance password.
Public methodSetReadOnlyPassword
Sets the read only password.
Public methodSetReadWritePassword
Sets the read write password.
Public methodShouldRecomputeFuzzyIndexStatistics
Gets a flag which indicates whether it is recommended to recompute the fuzzy index statistics (see RecomputeFuzzyIndexStatistics).
(Inherited from AbstractLocalTranslationMemory.)
Public methodSupportsLanguageDirection
Checks whether this translation provider supports the specified language direction.
(Inherited from AbstractLocalTranslationMemory.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUnlock
Unlocks the translation memory with the specified password.
Top
Events
  NameDescription
Public eventTranslationModelProgress
Reports the progress of building a translation model
Top
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments