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

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

Parameters

translationUnits
Type: Sdl.LanguagePlatform.TranslationMemoryTranslationUnit
An arrays of translation units to be added.
previousTranslationHashes
Type: SystemInt32
Corresponding hash codes of a previous translation (0 if unknown). The parameter may be null.
settings
Type: Sdl.LanguagePlatform.TranslationMemoryImportSettings
The settings used for this operation.
mask
Type: SystemBoolean
A boolean array with the same cardinality as the TU array, specifying which TUs to add.

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.
See Also
Community
Edit

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