Skip to main content

Introducing Formengine - The New Formbuilder, try for FREE formengine.io.

Class Translation

Represent a localization record in a process scheme

Inheritance

↳ object

    ↳ Translation

Inherited Members

Equals(object)

Equals(object, object)

GetHashCode()

GetType()

ReferenceEquals(object, object)

ToString()

Namespace: OptimaJet.Workflow.Core.Model

Assembly: OptimaJet.Workflow.Core.dll

Syntax
public sealed class Translation

Constructors

Translation()

Declaration
public Translation()

Translation(string, string, LocalizeType, string, bool)

Declaration
public Translation(string name, string value, LocalizeType type, string culture, bool isDefault = false)
Parameters
TypeNameDescription
stringname
stringvalue
LocalizeTypetype
stringculture
boolisDefault

Properties

ObjectName

System name

Declaration
public string ObjectName { get; set; }
Property value
TypeDescription
string

Value

Localized name

Declaration
public string Value { get; set; }
Property value
TypeDescription
string

Type

Type of localized resource LocalizeType

Declaration
[JsonConverter(typeof(StringEnumConverter))]
public LocalizeType Type { get; set; }
Property value
TypeDescription
LocalizeType

Culture

Culture name

Declaration
public string Culture { get; set; }
Property value
TypeDescription
string

IsDefault

If true specifies that the record will be used by default in case of absence of a record with specific culture

Declaration
public bool IsDefault { get; set; }
Property value
TypeDescription
bool

Methods

Create(string, string, string, string, string)

Create Translation object

Declaration
public static Translation Create(string name, string type, string culture, string value, string isDefault)
Parameters
TypeNameDescription
stringnameSystem name
stringtypeType of localized resource <xref href="OptimaJet.Workflow.Core.Model.LocalizeType" data-throw-if-not-resolved="false"></xref>
stringcultureCulture name
stringvalueLocalized name
stringisDefaultIf true specifies that the record will be used by default in case of absence of a record with specific culture
Returns
TypeDescription
TranslationTranslation object

Create(string, LocalizeType, string, string, bool)

Create Translation object

Declaration
public static Translation Create(string name, LocalizeType type, string culture, string value, bool isDefault = false)
Parameters
TypeNameDescription
stringnameSystem name
LocalizeTypetype
stringcultureCulture name
stringvalueLocalized name
boolisDefault
Returns
TypeDescription
TranslationTranslation object

Create(string, LocalizeType, CultureInfo, string, bool)

Create Translation object

Declaration
public static Translation Create(string name, LocalizeType type, CultureInfo culture, string value, bool isDefault = false)
Parameters
TypeNameDescription
stringnameSystem name
LocalizeTypetype
CultureInfoculture
stringvalueLocalized name
boolisDefault
Returns
TypeDescription
TranslationTranslation object

Clone()

Declaration
public Translation Clone()
Returns
TypeDescription
Translation

Extension Methods