Click or drag to resize
ServerBasedTranslationMemoryLanguageDirectionAddOrUpdateTranslationUnits Method
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.

Namespace: Sdl.LanguagePlatform.TranslationMemoryApi
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi (in Sdl.LanguagePlatform.TranslationMemoryApi.dll) Version: 1.6.0.0 (1.14.3880.0)
Syntax
public ImportResult[] AddOrUpdateTranslationUnits(
	TranslationUnit[] translationUnits,
	int[] previousTranslationHashes,
	ImportSettings settings
)

Parameters

translationUnits
Type: Sdl.LanguagePlatform.TranslationMemoryTranslationUnit
An arrays of translation units to be added.
previousTranslationHashes
Type: SystemInt32
If provided, a corresponding array of a the hash code of a previous translation.
settings
Type: Sdl.LanguagePlatform.TranslationMemoryImportSettings
The settings used for this operation.

Return Value

Type: ImportResult
An array of ImportResult objects, which mirrors the translation unit array. It has the exact same size and contains the status of each add operation for each particular translation unit with the same index within the array.

Implements

ITranslationProviderLanguageDirectionAddOrUpdateTranslationUnits(TranslationUnit, Int32, ImportSettings)
See Also
Community
Edit

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