FileBasedTranslationMemoryLanguageDirection Class |
Namespace: Sdl.LanguagePlatform.TranslationMemoryApi
The FileBasedTranslationMemoryLanguageDirection type exposes the following members.
Name | Description | |
---|---|---|
CanReverseLanguageDirection |
Gets a flag which indicates whether the translation provider supports
searches in the reversed language direction.
| |
LanguageDirection |
Gets the language direction of the translation memory.
| |
SourceLanguage |
Gets the source language.
| |
TargetLanguage |
Gets the target language.
| |
TranslationProvider |
Gets the translation memory to which this language direction belongs.
|
Name | Description | |
---|---|---|
AddOrUpdateTranslationUnits |
Adds an array of translation units to the database. If hash codes of the previous translations are provided,
a found translation will be overwritten. If none is found, or the hash is 0 or the collection is null,
the operation behaves identical to AddTranslationUnits(TranslationUnit, ImportSettings).
If the provider doesn't support adding/updating, the implementation should return a reasonable ImportResult but should not throw an exception. | |
AddOrUpdateTranslationUnitsMasked |
Adds an array of translation units to the database, but will only add those
for which the corresponding mask field is true. If the previous translation hashes are provided,
existing translations will be updated if the target segment hash changed.
If the provider doesn't support adding/updating, the implementation should return a reasonable ImportResult but should not throw an exception. | |
AddTranslationUnit |
Adds a translation unit to the database. If the provider doesn't support adding/updating, the
implementation should return a reasonable ImportResult but should not throw an exception.
| |
AddTranslationUnits |
Adds an array of translation units to the database. If the provider doesn't support adding/updating, the
implementation should return a reasonable ImportResult but should not throw an exception.
| |
AddTranslationUnitsMasked |
Adds an array of translation units to the database, but will only add those
for which the corresponding mask field is true. If the provider doesn't support adding/updating, the
implementation should return a reasonable ImportResult but should not throw an exception.
| |
ApplyFieldsToTranslationUnit |
Applies the specified field values to the translation unit identified by the specified
translationUnitId.
| |
ApplyFieldsToTranslationUnits |
Applies the specified field values to the translation units identified by the specified
translationUnitIds collection.
| |
DeleteAllTranslationUnits |
Deletes all translation units from the TM.
| |
DeleteTranslationUnit |
Deletes the translation unit with the specified translationUnitId from the TM.
| |
DeleteTranslationUnits |
Deletes the translation units with the specified IDs from the translation memory.
| |
DeleteTranslationUnitsWithIterator |
Deletes all translation units in the TM, using an iterator. The iterator will
process only a fixed maximum number of translation units (MaxCount)
and then the call will return, giving the client an opportunity to discontinue
the process or update the UI before the next round-trip.
Optionally, a filter can be set on the iterator which then will only delete those TUs which satisfy the filter condition. | |
EditTranslationUnits(EditScript, EditUpdateMode) |
Iteratively applies an EditScript to all translation
units in the current translation memory.
| |
EditTranslationUnits(EditScript, EditUpdateMode, FilterExpression) |
Iteratively applies an EditScript to all translation
units in the current translation memory. A filter condition can be sued in which case only
those translation units which match the filter will be edited.
| |
EditTranslationUnits(EditScript, EditUpdateMode, PersistentObjectToken) |
Applies an EditScript to the translation units identified by the
identifiers in the translationUnitIds collection.
| |
EditTranslationUnitsWithIterator |
Applies an EditScript to the translation units, using an iterator.
| |
Equals |
Determines whether the specified Object is equal to this instance.
(Overrides ObjectEquals(Object).) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetDuplicateTranslationUnits |
Returns a set of potentially duplicated translation units in the TM, using a special
DuplicateIterator. A group of TUs are considered potential duplicates
of each other if the internal hash values for their source segments are identical.
There may be several reasons for this being the case:
| |
GetHashCode |
Returns a hash code for this instance.
(Overrides ObjectGetHashCode.) | |
GetTranslationUnit |
Retrieves the translation unit with the specified translationUnitId from the
translation memory.
| |
GetTranslationUnitCount |
Returns the number of translation units in this TM. Note that the computation of the TU
count may be a time-consuming operation for some back-end storage systems.
| |
GetTranslationUnits |
Retrieves a set of translation units, using an iterator. At most
MaxCount translation units will be returned in one
round-trip.
Remarks
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
PreviewEditTranslationUnits |
Iteratively applies an EditScript to all translation
units in the current translation memory. A filter condition can be sued in which case only
those translation units which match the filter will be edited.
| |
PreviewEditTranslationUnitsWithIterator |
Applies the specified edit script to the translation units in a TM, but unlike EditTranslationUnitsWithIterator(EditScript, EditUpdateMode, RegularIterator),
the TUs will not be updated in the TM, but modified copies of the TUs will be returned to the caller. This
can be used to "preview" the changes the edit script would apply.
| |
ReindexTranslationUnits |
Re-indexes the translation memory, using an iterator so that the client can update
progress indicators or discontinue the process.
The same iterator instance should be passed in subsequent calls, in order to obtain the next page, and so on. | |
SearchSegment(SearchSettings, Segment) |
Performs a segment search.
| |
SearchSegment(SearchSettings, SubsegmentSearchSettings, SubsegmentSearchCondition, Segment) | ||
SearchSegments(SearchSettings, Segment) |
Performs a search for an array of segments.
| |
SearchSegments(SearchSettings, SubsegmentSearchSettings, SubsegmentSearchCondition, Segment) | ||
SearchSegmentsMasked(SearchSettings, Segment, Boolean) |
Performs a search for an array of segments, specifying a mask which specifies which segments should actually be
searched (only those for which the corresponding mask bit is true are searched). If the mask is null, the method
behaves identically to SearchSegments(SearchSettings, Segment). Passing a mask only makes sense in document search contexts (IsDocumentSearch
set to true).
| |
SearchSegmentsMasked(SearchSettings, SubsegmentSearchSettings, SubsegmentSearchCondition, Segment, Boolean) | ||
SearchText |
Performs a text search.
| |
SearchTranslationUnit(SearchSettings, TranslationUnit) |
Performs a translation unit search.
| |
SearchTranslationUnit(SearchSettings, SubsegmentSearchSettings, SubsegmentSearchCondition, TranslationUnit) | ||
SearchTranslationUnits(SearchSettings, TranslationUnit) |
Performs a translation unit search for an array of translation units.
| |
SearchTranslationUnits(SearchSettings, SubsegmentSearchSettings, SubsegmentSearchCondition, TranslationUnit) | ||
SearchTranslationUnitsMasked(SearchSettings, TranslationUnit, Boolean) |
Similar to SearchTranslationUnits(SearchSettings, TranslationUnit), but allows passing a mask which specifies which TUs are actually searched. This is useful
in document search contexts where some TUs are passed which should be used to establish a (text) context, but which should not be
processed.
| |
SearchTranslationUnitsMasked(SearchSettings, SubsegmentSearchSettings, SubsegmentSearchCondition, TranslationUnit, Boolean) | ||
SubsegmentSearchSegment |
Performs a subsegment search on the given segment
| |
SubsegmentSearchSegments |
Performs a subsegment search on the given array of segments
| |
SupportedSubsegmentMatchTypes | ||
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UpdateTranslationUnit |
Updates the properties and fields of an existing translation unit if the source and target segments are unchanged or
adds a new translation unit otherwise. If the provider doesn't support adding/updating, the
implementation should return a reasonable ImportResult but should not throw an exception.
The translation unit should be initialized in a previous call to the translation memory, so that the ID property is set to a valid value. | |
UpdateTranslationUnits |
Updates the properties and fields of an array of existing translation units if the source and target segments are unchanged or
adds new translation units otherwise. If the provider doesn't support adding/updating, the
implementation should return a reasonable ImportResult but should not throw an exception.
The translation units should be initialized in previous calls to the translation memory, so that their ID properties are set to valid values. | |
UpdateTranslationUnitsMasked |
Updates (adds, overwrites, or merges) the specified translation units.
|