Class PseudoTranslateSettings
Settings group class for the Pseudo-translate automatic task settings.
Inherited Members
Namespace: SdlSdl.ProjectAutomationSettings
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 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 |
---|---|
Settingbool |
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 |
---|---|
Settingstring |
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 |
---|---|
Settingbool |
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 |
---|---|
Settingstring |
AppendToUnit
Whether to append AppendStartString and AppendEndString to each segment, or to each paragraph.
Declaration
public Setting<AppendToUnitType> AppendToUnit { get; }
Property Value
Type | Description |
---|---|
SettingAppendToUnitType |
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 |
---|---|
Settingbool |
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 |
---|---|
Settingdouble |
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 |
---|---|
Settingbool |
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. |