| ITranslationProviderLanguageDirection Methods |
The ITranslationProviderLanguageDirection type exposes the following members.
| 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.
| |
| SearchSegment |
Performs a segment search.
| |
| SearchSegments |
Performs a search for an array of segments.
| |
| 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).
| |
| SearchText |
Performs a text search.
| |
| SearchTranslationUnit |
Performs a translation unit search.
| |
| SearchTranslationUnits |
Performs a translation unit search for an array of translation units.
| |
| 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.
| |
| 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. |