Click or drag to resize
ITranslationProviderLanguageDirection Methods

The ITranslationProviderLanguageDirection type exposes the following members.

Methods
  NameDescription
Public methodAddOrUpdateTranslationUnits
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.

Public methodAddOrUpdateTranslationUnitsMasked
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.

Public methodAddTranslationUnit
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.
Public methodAddTranslationUnits
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.
Public methodAddTranslationUnitsMasked
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.
Public methodSearchSegment
Performs a segment search.
Public methodSearchSegments
Performs a search for an array of segments.
Public methodSearchSegmentsMasked
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).
Public methodSearchText
Performs a text search.
Public methodSearchTranslationUnit
Performs a translation unit search.
Public methodSearchTranslationUnits
Performs a translation unit search for an array of translation units.
Public methodSearchTranslationUnitsMasked
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.
Public methodUpdateTranslationUnit
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.

Public methodUpdateTranslationUnits
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.

Top
See Also
Community
Edit

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