| ITranslationMemoryLanguageDirection Interface |
Namespace: Sdl.LanguagePlatform.TranslationMemoryApi
The ITranslationMemoryLanguageDirection type exposes the following members.
| Name | Description | |
|---|---|---|
| CanReverseLanguageDirection |
Gets a flag which indicates whether the translation provider supports
searches in the reversed language direction.
(Inherited from ITranslationProviderLanguageDirection.) | |
| SourceLanguage |
Gets the source language.
(Inherited from ITranslationProviderLanguageDirection.) | |
| TargetLanguage |
Gets the target language.
(Inherited from ITranslationProviderLanguageDirection.) | |
| 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).
(Inherited from ITranslationProviderLanguageDirection.)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.
(Inherited from ITranslationProviderLanguageDirection.)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.
(Inherited from ITranslationProviderLanguageDirection.) | |
| 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.
(Inherited from ITranslationProviderLanguageDirection.) | |
| 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.
(Inherited from ITranslationProviderLanguageDirection.) | |
| 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 |
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.
| |
| 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:
| |
| 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.
| |
| 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 |
Performs a segment search.
(Inherited from ITranslationProviderLanguageDirection.) | |
| SearchSegments |
Performs a search for an array of segments.
(Inherited from ITranslationProviderLanguageDirection.) | |
| SearchSegmentsMasked |
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).
(Inherited from ITranslationProviderLanguageDirection.) | |
| SearchText |
Performs a text search.
(Inherited from ITranslationProviderLanguageDirection.) | |
| SearchTranslationUnit |
Performs a translation unit search.
(Inherited from ITranslationProviderLanguageDirection.) | |
| SearchTranslationUnits |
Performs a translation unit search for an array of translation units.
(Inherited from ITranslationProviderLanguageDirection.) | |
| SearchTranslationUnitsMasked |
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.
(Inherited from ITranslationProviderLanguageDirection.) | |
| 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.
(Inherited from ITranslationProviderLanguageDirection.)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.
(Inherited from ITranslationProviderLanguageDirection.)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.
|