Class PseudoTranslateSettings
Settings group class for the Pseudo-translate automatic task settings.
Inheritance
Namespace: Sdl.ProjectAutomation.Settings
Assembly: Sdl.ProjectAutomation.Settings.dll
Syntax
public class PseudoTranslateSettings : SettingsGroup
Constructors
PseudoTranslateSettings()
Default constructor. You should never create this object manually. Use GetSettingsGroup(String) instead.
Declaration
public PseudoTranslateSettings()
Properties
AppendEnd
If true
, the string specified by AppendEndString will be appended to
the end of each pseudo-translated string.
Declaration
public Setting<bool> AppendEnd { get; }
Property Value
Type | Description |
---|---|
Setting<System.Boolean> |
AppendEndString
The string that will be appended to the end of each pseudo-translation, if AppendEnd is true.
Declaration
public Setting<string> AppendEndString { get; }
Property Value
Type | Description |
---|---|
Setting<System.String> |
AppendStart
If true
, the string specified by AppendStartString will be appended to
the start of each pseudo-translated string.
Declaration
public Setting<bool> AppendStart { get; }
Property Value
Type | Description |
---|---|
Setting<System.Boolean> |
AppendStartString
The string that will be appended to the start of each pseudo-translation, if AppendStart is true.
Declaration
public Setting<string> AppendStartString { get; }
Property Value
Type | Description |
---|---|
Setting<System.String> |
AppendToUnit
Whether to append AppendStartString and AppendEndString to each segment, or to each paragraph.
Declaration
public Setting<AppendToUnitType> AppendToUnit { get; }
Property Value
Type | Description |
---|---|
Setting<AppendToUnitType> |
DeterministicPseudoTranslation
When generating pseudo-translations using the internal dictionaries, if this setting is true
then the same translations will be generated every time pseudo-translate is run. Otherwise,
random words will be used.
Declaration
public Setting<bool> DeterministicPseudoTranslation { get; }
Property Value
Type | Description |
---|---|
Setting<System.Boolean> |
ExpansionLimit
The factor by which the length of pseudo-translated content will differ to the source content. For example 1.3 would mean the pseudo-translations would be 30% longer than the source text.
Declaration
public Setting<double> ExpansionLimit { get; }
Property Value
Type | Description |
---|---|
Setting<System.Double> |
UseDictionary
If true
, internal dictionaries will be used to generate content in the target language.
If a dictionary is not available for the target language, the English dictionary will be used.
If false
, dollar signs will be used to represent characters in the pseudo-translations.
Declaration
public Setting<bool> UseDictionary { get; }
Property Value
Type | Description |
---|---|
Setting<System.Boolean> |
Methods
GetDefaultValue(String)
Gets the default value for the sepcified settings. Always returns null. Override this method in extending classes to define default setting values.
Declaration
protected override object GetDefaultValue(string settingId)
Parameters
Type | Name | Description |
---|---|---|
System.String | settingId | The setting id. |
Returns
Type | Description |
---|---|
System.Object | The default value, or null if no default value is available. |