Class PseudoTranslateSettings
Settings group class for the Pseudo-translate automatic task settings.
Inherited Members
Namespace: Sdl.ProjectAutomation .Settings
Assembly: Sdl.ProjectAutomation.Settings.dll
Syntax
public class PseudoTranslateSettings : SettingsGroup, ISettingsGroup, INotifyPropertyChanged, IEditableObject
Constructors
PseudoTranslateSettings()
Default constructor. You should never create this object manually. Use Get
Declaration
public PseudoTranslateSettings()
Properties
AppendEnd
If true
, the string specified by Append
Declaration
public Setting<bool> AppendEnd { get; }
Property Value
AppendEndString
The string that will be appended to the end of each pseudo-translation, if Append
Declaration
public Setting<string> AppendEndString { get; }
Property Value
AppendStart
If true
, the string specified by Append
Declaration
public Setting<bool> AppendStart { get; }
Property Value
AppendStartString
The string that will be appended to the start of each pseudo-translation, if Append
Declaration
public Setting<string> AppendStartString { get; }
Property Value
AppendToUnit
Whether to append Append
Declaration
public Setting<AppendToUnitType> AppendToUnit { get; }
Property Value
Type | Description |
---|---|
Setting<Append |
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
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
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
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 |
---|---|---|
string | settingId | The setting id. |
Returns
Type | Description |
---|---|
object | The default value, or null if no default value is available. |