Class TranslationMemorySettings
Settings group class for translation memory settings.
Inheritance
Namespace: Sdl.ProjectAutomation.Settings
Assembly: Sdl.ProjectAutomation.Settings.dll
Syntax
public class TranslationMemorySettings : SettingsGroup
Constructors
TranslationMemorySettings()
Default constructor. You should never create this object manually. Use GetSettingsGroup(String) instead.
Declaration
public TranslationMemorySettings()
Properties
AlignmentPenalty
Gets or set the penalty applied for a TU originating from alignment
Declaration
public Setting<int> AlignmentPenalty { get; }
Property Value
Type | Description |
---|---|
Setting<System.Int32> |
AutoLocalizationPenalty
Gets or set the penalty applied when auto localization took place to create a translation proposal. Default: 0.
Declaration
public Setting<int> AutoLocalizationPenalty { get; }
Property Value
Type | Description |
---|---|
Setting<System.Int32> |
CharacterWidthDifferencePenalty
Gets or set the penalty applied for a TU originating from character-width difference
Declaration
public Setting<int> CharacterWidthDifferencePenalty { get; }
Property Value
Type | Description |
---|---|
Setting<System.Int32> |
CharacterWidthDifferencePenaltyEnabled
Setting which determines whether the character-width difference penalty is applied
Declaration
public Setting<bool> CharacterWidthDifferencePenaltyEnabled { get; }
Property Value
Type | Description |
---|---|
Setting<System.Boolean> |
ConcordanceMaximumResults
Gets or set the concordance search maximum number of search results. Default: 30.
Declaration
public Setting<int> ConcordanceMaximumResults { get; }
Property Value
Type | Description |
---|---|
Setting<System.Int32> |
ConcordanceMinimumMatchValue
Gets or set the concordance search minimum match value. Default: 70.
Declaration
public Setting<int> ConcordanceMinimumMatchValue { get; }
Property Value
Type | Description |
---|---|
Setting<System.Int32> |
DatesAutoLocalizationEnabled
Gets or sets whether dates should be auto-localized when performing translations. Default: true
.
Declaration
public Setting<bool> DatesAutoLocalizationEnabled { get; }
Property Value
Type | Description |
---|---|
Setting<System.Boolean> |
DifferentFormattingPenalty
Gets or set the penalty applied when the formatting present in the translation unit differs from the formatting present in the document segment. Default: 1.
Declaration
public Setting<int> DifferentFormattingPenalty { get; }
Property Value
Type | Description |
---|---|
Setting<System.Int32> |
DTAMinimumMatchLengthWords
Gets or set the translation minimum match value. Default: 3.
Declaration
public Setting<int> DTAMinimumMatchLengthWords { get; }
Property Value
Type | Description |
---|---|
Setting<System.Int32> |
DTAMinimumSignificantWordsInMatch
Gets or set the translation minimum match value. Default: 3.
Declaration
public Setting<int> DTAMinimumSignificantWordsInMatch { get; }
Property Value
Type | Description |
---|---|
Setting<System.Int32> |
EnablePartialSubsegmentMatching
Specify whether or not the full subsegment matching is enabled
Declaration
public Setting<bool> EnablePartialSubsegmentMatching { get; }
Property Value
Type | Description |
---|---|
Setting<System.Boolean> |
Filters
Gets the filters applied when searching. The specified penalty will be applied to results that do not match the corresponding filter.
Declaration
public Setting<List<Filter>> Filters { get; }
Property Value
Type | Description |
---|---|
Setting<System.Collections.Generic.List<Filter>> |
HardFilter
Gets or sets the hard filter applied when searching. Only result that meet the specified filter criteria will be returned.
Declaration
public Setting<FilterExpression> HardFilter { get; }
Property Value
Type | Description |
---|---|
Setting<FilterExpression> |
LongDatePattern
Gets the long date pattern for auto-localization. The default is null
, which means the default long date pattern for the corresponding target language will be used.
Declaration
public Setting<string> LongDatePattern { get; }
Property Value
Type | Description |
---|---|
Setting<System.String> |
LongTimePattern
Gets the long time pattern for auto-localization. The default is null
, which means the default long time pattern for the corresponding target language will be used.
Declaration
public Setting<string> LongTimePattern { get; }
Property Value
Type | Description |
---|---|
Setting<System.String> |
MeasurementsAutoLocalizationEnabled
Gets or sets whether measurements should be auto-localized when performing translations. Default: true
.
Declaration
public Setting<bool> MeasurementsAutoLocalizationEnabled { get; }
Property Value
Type | Description |
---|---|
Setting<System.Boolean> |
MeasurementsFormattingCustomSpace
Gets or sets the unit separator char, which must be a whitespace char or the null
character (\0). The default is a standard space character.
Declaration
public Setting<char> MeasurementsFormattingCustomSpace { get; }
Property Value
Type | Description |
---|---|
Setting<System.Char> |
MeasurementsFormattingMode
Gets the measurements formatting mode. The default is Auto_FromDocument.
Declaration
public Setting<MeasurementsFormattingMode> MeasurementsFormattingMode { get; }
Property Value
Type | Description |
---|---|
Setting<MeasurementsFormattingMode> |
MissingFormattingPenalty
Gets or set the penalty applied when no formatting is present in the translation unit. Default: 1.
Declaration
public Setting<int> MissingFormattingPenalty { get; }
Property Value
Type | Description |
---|---|
Setting<System.Int32> |
MultipleTranslationsPenalty
Gets or set the penalty applied when multiple translations are found. Default: 1.
Declaration
public Setting<int> MultipleTranslationsPenalty { get; }
Property Value
Type | Description |
---|---|
Setting<System.Int32> |
NumbersAutoLocalizationEnabled
Gets or sets whether numbers should be auto-localized when performing translations. Default: true
.
Declaration
public Setting<bool> NumbersAutoLocalizationEnabled { get; }
Property Value
Type | Description |
---|---|
Setting<System.Boolean> |
ProjectSettings
Gets or sets the project settings applied when updating the translation memory. These field values will be merged with the existing field values in case a translation unit is updated.
Declaration
public Setting<FieldValues> ProjectSettings { get; }
Property Value
Type | Description |
---|---|
Setting<FieldValues> |
ShortDatePattern
Gets the short date pattern for auto-localization. The default is null
, which means the default short date pattern for the corresponding target language will be used.
Declaration
public Setting<string> ShortDatePattern { get; }
Property Value
Type | Description |
---|---|
Setting<System.String> |
ShortTimePattern
Gets the short time pattern for auto-localization. The default is null
, which means the default short time pattern for the corresponding target language will be used.
Declaration
public Setting<string> ShortTimePattern { get; }
Property Value
Type | Description |
---|---|
Setting<System.String> |
SourceTrackChangesLookupMode
Gets or set how to handle the segments with source track changes
Declaration
public Setting<SourceTrackChangesLookupMode> SourceTrackChangesLookupMode { get; }
Property Value
Type | Description |
---|---|
Setting<SourceTrackChangesLookupMode> |
StopSearchingWhenResultsFound
Gets or sets whether to stop searching when results have been found.
Declaration
public Setting<bool> StopSearchingWhenResultsFound { get; }
Property Value
Type | Description |
---|---|
Setting<System.Boolean> |
Remarks
"Stop searching" means that the cascade will not search the next translation provider when results have been found in the current translation provider.
TDBMinimumMatchLengthWords
Gets or set the translation minimum match value. Default: 2.
Declaration
public Setting<int> TDBMinimumMatchLengthWords { get; }
Property Value
Type | Description |
---|---|
Setting<System.Int32> |
TDBMinimumSignificantWordsInMatch
Gets or set the translation minimum match value. Default: 2.
Declaration
public Setting<int> TDBMinimumSignificantWordsInMatch { get; }
Property Value
Type | Description |
---|---|
Setting<System.Int32> |
TextReplacementPenalty
Gets or set the penalty applied when variable auto-substitutions applied, or text placeholder values copied from the document tag into the translation proposal. Default: 0.
Declaration
public Setting<int> TextReplacementPenalty { get; }
Property Value
Type | Description |
---|---|
Setting<System.Int32> |
TimesAutoLocalizationEnabled
Gets or sets whether times should be auto-localized when performing translations. Default: true
.
Declaration
public Setting<bool> TimesAutoLocalizationEnabled { get; }
Property Value
Type | Description |
---|---|
Setting<System.Boolean> |
TranslationFullSearch
Gets or set the setting which states whether to search for fuzzy matches even if an exact match is found. Default: false
.
Declaration
public Setting<bool> TranslationFullSearch { get; }
Property Value
Type | Description |
---|---|
Setting<System.Boolean> |
TranslationMaximumResults
Gets or set the translation maximum number of search results. default: 5.
Declaration
public Setting<int> TranslationMaximumResults { get; }
Property Value
Type | Description |
---|---|
Setting<System.Int32> |
TranslationMinimumMatchValue
Gets or set the translation minimum match value. Default: 70.
Declaration
public Setting<int> TranslationMinimumMatchValue { get; }
Property Value
Type | Description |
---|---|
Setting<System.Int32> |
VariablesAutoLocalizationEnabled
Gets or sets whether variables should be auto-localized when performing translations. Default: true
.
Declaration
public Setting<bool> VariablesAutoLocalizationEnabled { get; }
Property Value
Type | Description |
---|---|
Setting<System.Boolean> |
Methods
CreateAutoLocalizationSettings(CultureCode)
Creates an AutoLocalizationSettings object based on the settings stored in this settings group. This can be used as part of the SearchSettings specified when performing translation memory look-ups.
Declaration
public AutoLocalizationSettings CreateAutoLocalizationSettings(CultureCode targetLanguage)
Parameters
Type | Name | Description |
---|---|---|
Sdl.Core.Globalization.CultureCode | targetLanguage | The target language for which to create the auto-localization settings. This is only used to determine the default date and time patterns in case these have not been specified explicitly. |
Returns
Type | Description |
---|---|
AutoLocalizationSettings | An AutoLocalizationSettings object. |
CreateConcordanceSearchSettings(CultureCode)
Creates a SearchSettings object based on the setting values in this settings group, to be used for concordance search.
Declaration
public SearchSettings CreateConcordanceSearchSettings(CultureCode targetLanguage)
Parameters
Type | Name | Description |
---|---|---|
Sdl.Core.Globalization.CultureCode | targetLanguage |
Returns
Type | Description |
---|---|
SearchSettings | A SearchSettings object |
CreateSubsegmentRecallSearchSettings(SearchSettings)
Creates a SearchSettings object based on the setting values in this settings group, to be used for subsegment recall searches.
Declaration
public SubsegmentSearchSettings CreateSubsegmentRecallSearchSettings(SearchSettings searchSettings)
Parameters
Type | Name | Description |
---|---|---|
SearchSettings | searchSettings |
Returns
Type | Description |
---|---|
SubsegmentSearchSettings |
CreateTranslationSearchSettings(CultureCode)
Creates a SearchSettings object based on the setting values in this settings group, to use for standard segment search.
Declaration
public SearchSettings CreateTranslationSearchSettings(CultureCode targetLanguage)
Parameters
Type | Name | Description |
---|---|---|
Sdl.Core.Globalization.CultureCode | targetLanguage |
Returns
Type | Description |
---|---|
SearchSettings | A SearchSettings object based on the setting values in this settings group, to use for standard segment search. |
CreateTranslationSearchSettingsWithoutFilters(CultureCode)
Creates a SearchSettings object based on the setting values in this settings group, to use for standard segment search without filters.
Declaration
public SearchSettings CreateTranslationSearchSettingsWithoutFilters(CultureCode targetLanguage)
Parameters
Type | Name | Description |
---|---|---|
Sdl.Core.Globalization.CultureCode | targetLanguage |
Returns
Type | Description |
---|---|
SearchSettings | A SearchSettings object. |
GetDefaultLongDatePattern(CultureCode)
Gets the default long date pattern for the specified target language. This is used within the auto-localization settings when no specific long date pattern has been specified in LongDatePattern.
Declaration
public string GetDefaultLongDatePattern(CultureCode targetLanguage)
Parameters
Type | Name | Description |
---|---|---|
Sdl.Core.Globalization.CultureCode | targetLanguage | The target language. |
Returns
Type | Description |
---|---|
System.String | The long date pattern format string. |
GetDefaultLongTimePattern(CultureCode)
Gets the default long time pattern for the specified target language. This is used within the auto-localization settings when no specific long time pattern has been specified in LongTimePattern.
Declaration
public string GetDefaultLongTimePattern(CultureCode targetLanguage)
Parameters
Type | Name | Description |
---|---|---|
Sdl.Core.Globalization.CultureCode | targetLanguage | The target language. |
Returns
Type | Description |
---|---|
System.String | The long time pattern format string. |
GetDefaultShortDatePattern(CultureCode)
Gets the default short date pattern for the specified target language. This is used within the auto-localization settings when no specific short date pattern has been specified in ShortDatePattern.
Declaration
public string GetDefaultShortDatePattern(CultureCode targetLanguage)
Parameters
Type | Name | Description |
---|---|---|
Sdl.Core.Globalization.CultureCode | targetLanguage | The target language. |
Returns
Type | Description |
---|---|
System.String | The short date pattern format string. |
GetDefaultShortTimePattern(CultureCode)
Gets the default short time pattern for the specified target language. This is used within the auto-localization settings when no specific short time pattern has been specified in ShortTimePattern.
Declaration
public string GetDefaultShortTimePattern(CultureCode targetLanguage)
Parameters
Type | Name | Description |
---|---|---|
Sdl.Core.Globalization.CultureCode | targetLanguage | The target language. |
Returns
Type | Description |
---|---|
System.String | The short time pattern format string. |
GetDefaultValue(String)
Gets the default value.
Declaration
protected override object GetDefaultValue(string settingId)
Parameters
Type | Name | Description |
---|---|---|
System.String | settingId | The setting id. |
Returns
Type | Description |
---|---|
System.Object | A SearchSettings object |