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
Syntaxpublic sealed class Translation
Constructors
Translation()
Declarationpublic Translation()
Translation(string, string, LocalizeType, string, bool)
Declarationpublic Translation(string name, string value, LocalizeType type, string culture, bool isDefault = false)
Type | Name | Description |
---|---|---|
string | name | |
string | value | |
LocalizeType | type | |
string | culture | |
bool | isDefault |
Properties
ObjectName
System name
Declarationpublic string ObjectName { get; set; }
Type | Description |
---|---|
string |
Value
Localized name
Declarationpublic string Value { get; set; }
Type | Description |
---|---|
string |
Type
Type of localized resource LocalizeType
Declaration[JsonConverter(typeof(StringEnumConverter))]
public LocalizeType Type { get; set; }
Type | Description |
---|---|
LocalizeType |
Culture
Culture name
Declarationpublic string Culture { get; set; }
Type | Description |
---|---|
string |
IsDefault
If true specifies that the record will be used by default in case of absence of a record with specific culture
Declarationpublic bool IsDefault { get; set; }
Type | Description |
---|---|
bool |
Methods
Create(string, string, string, string, string)
Create Translation object
Declarationpublic static Translation Create(string name, string type, string culture, string value, string isDefault)
Type | Name | Description |
---|---|---|
string | name | System name |
string | type | Type of localized resource <xref href="OptimaJet.Workflow.Core.Model.LocalizeType" data-throw-if-not-resolved="false"></xref> |
string | culture | Culture name |
string | value | Localized name |
string | isDefault | If true specifies that the record will be used by default in case of absence of a record with specific culture |
Type | Description |
---|---|
Translation | Translation object |
Create(string, LocalizeType, string, string, bool)
Create Translation object
Declarationpublic static Translation Create(string name, LocalizeType type, string culture, string value, bool isDefault = false)
Type | Name | Description |
---|---|---|
string | name | System name |
LocalizeType | type | |
string | culture | Culture name |
string | value | Localized name |
bool | isDefault |
Type | Description |
---|---|
Translation | Translation object |
Create(string, LocalizeType, CultureInfo, string, bool)
Create Translation object
Declarationpublic static Translation Create(string name, LocalizeType type, CultureInfo culture, string value, bool isDefault = false)
Type | Name | Description |
---|---|---|
string | name | System name |
LocalizeType | type | |
CultureInfo | culture | |
string | value | Localized name |
bool | isDefault |
Type | Description |
---|---|
Translation | Translation object |
Clone()
Declarationpublic Translation Clone()
Type | Description |
---|---|
Translation |